2024.10.22 10:05:13.365817 [ 669 ] {} Context: Server was built in debug mode. It will work slowly. 2024.10.22 10:05:13.368150 [ 669 ] {} Context: The setting 'allow_remote_fs_zero_copy_replication' is enabled for MergeTree tables. But the feature of 'zero-copy replication' is under development and is not ready for production. The usage of this feature can lead to data corruption and loss. The setting should be disabled in production. 2024.10.22 10:05:17.070013 [ 669 ] {} Context: The setting 'merge_tree_metadata_cache' is enabled. But the feature of 'metadata cache in RocksDB' is experimental and is not ready for production. The usage of this feature can lead to data corruption and loss. The setting should be disabled in production. See the corresponding report at https://github.com/ClickHouse/ClickHouse/issues/51182 2024.10.22 10:05:17.771080 [ 669 ] {} KeeperLogStore: No logs exists in /var/lib/clickhouse/coordination/logs. It's Ok if it's the first run of clickhouse-keeper. 2024.10.22 10:05:17.771802 [ 669 ] {} KeeperLogStore: Removing all changelogs 2024.10.22 10:05:17.773222 [ 669 ] {} KeeperServer: Got 1000000000000000 value for setting 'reserved_log_items' which is bigger than int32_t max value, lowering value to 2147483647. 2024.10.22 10:05:17.776985 [ 669 ] {} KeeperStateManager: No state was read 2024.10.22 10:05:17.777123 [ 669 ] {} RaftInstance: invalid election timeout lower bound detected, adjusted to 0 2024.10.22 10:05:17.777205 [ 669 ] {} RaftInstance: invalid election timeout upper bound detected, adjusted to 0 2024.10.22 10:05:17.828428 [ 889 ] {} RaftInstance: Election timeout, initiate leader election 2024.10.22 10:05:17.904358 [ 669 ] {} Access(local_directory): File /var/lib/clickhouse/access/users.list doesn't exist 2024.10.22 10:05:17.904469 [ 669 ] {} Access(local_directory): Recovering lists in directory /var/lib/clickhouse/access/ 2024.10.22 10:05:18.253962 [ 669 ] {} Context: Table system.session_log is enabled. It's unreliable and may contain garbage. Do not use it for any kind of security monitoring. 2024.10.22 10:07:32.804386 [ 1025 ] {} ZooKeeperClient: Code: 33. DB::Exception: Cannot read all data. Bytes read: 0. Bytes expected: 4. (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:117: void DB::readPODBinary(int&, DB::ReadBuffer&) @ 0x0000000013999f02 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:1099: void DB::readBinary(int&, DB::ReadBuffer&) @ 0x0000000013999ebd in /usr/bin/clickhouse 9. /build/src/IO/ReadHelpers.h:1136: void DB::readBinaryEndian<(std::endian)64206, int>(int&, DB::ReadBuffer&) @ 0x000000001e60277d in /usr/bin/clickhouse 10. /build/src/IO/ReadHelpers.h:1149: void DB::readBinaryBigEndian(int&, DB::ReadBuffer&) @ 0x000000001e60273d in /usr/bin/clickhouse 11. /build/src/Common/ZooKeeper/ZooKeeperIO.h:51: void Coordination::read(int&, DB::ReadBuffer&) @ 0x000000001e5fdbbd in /usr/bin/clickhouse 12. /build/src/Common/ZooKeeper/ZooKeeperImpl.cpp:284: void Coordination::ZooKeeper::read(int&) @ 0x000000001f30be14 in /usr/bin/clickhouse 13. /build/src/Common/ZooKeeper/ZooKeeperImpl.cpp:744: Coordination::ZooKeeper::receiveEvent() @ 0x000000001f30124c in /usr/bin/clickhouse 14. /build/src/Common/ZooKeeper/ZooKeeperImpl.cpp:710: Coordination::ZooKeeper::receiveThread() @ 0x000000001f300cc4 in /usr/bin/clickhouse 15. /build/src/Common/ZooKeeper/ZooKeeperImpl.cpp:356: Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1::operator()() const @ 0x000000001f306af8 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&>()()) std::__invoke[abi:v15000]> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&) @ 0x000000001f306ad5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&, std::tuple<>&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001f306ab9 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&, std::tuple<>&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&, std::tuple<>&) @ 0x000000001f306a1d in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'()::operator()() @ 0x000000001f306945 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'()&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&) @ 0x000000001f3068b5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'()&) @ 0x000000001f306895 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001f306875 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001f306840 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:07:32.918203 [ 1024 ] {} ZooKeeperClient: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:52340 -> [::1]:9181). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Common/ZooKeeper/ZooKeeperCommon.cpp:51: Coordination::ZooKeeperRequest::write(DB::WriteBuffer&) const @ 0x000000001f2cf9e5 in /usr/bin/clickhouse 9. /build/src/Common/ZooKeeper/ZooKeeperImpl.cpp:645: Coordination::ZooKeeper::sendThread() @ 0x000000001f2fffbc in /usr/bin/clickhouse 10. /build/src/Common/ZooKeeper/ZooKeeperImpl.cpp:355: Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0::operator()() const @ 0x000000001f3062b8 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&>()()) std::__invoke[abi:v15000]> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&) @ 0x000000001f306295 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&, std::tuple<>&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001f306279 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&, std::tuple<>&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&, std::tuple<>&) @ 0x000000001f3061dd in /usr/bin/clickhouse 14. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&&)::'lambda'()::operator()() @ 0x000000001f306105 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0>()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&&)::'lambda'()&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&&) @ 0x000000001f306075 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&&)::'lambda'()&) @ 0x000000001f306055 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001f306035 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001f306000 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 21. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:07:33.088749 [ 1025 ] {} ZooKeeperClient: Poco::Exception. Code: 1000, e.code() = 107, Net Exception: Socket is not connected, Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/base/poco/Foundation/src/Exception.cpp:145: Poco::RuntimeException::RuntimeException(String const&, int) @ 0x000000002495e5e7 in /usr/bin/clickhouse 4. /build/base/poco/Foundation/src/Exception.cpp:164: Poco::IOException::IOException(String const&, int) @ 0x0000000024962727 in /usr/bin/clickhouse 5. /build/base/poco/Net/src/NetException.cpp:26: Poco::Net::NetException::NetException(String const&, int) @ 0x0000000024769587 in /usr/bin/clickhouse 6. /build/base/poco/Net/src/SocketImpl.cpp:995: Poco::Net::SocketImpl::error(int, String const&) @ 0x0000000024778ecb in /usr/bin/clickhouse 7. /build/base/poco/Net/src/SocketImpl.cpp:914: Poco::Net::SocketImpl::error() @ 0x0000000024777869 in /usr/bin/clickhouse 8. /build/base/poco/Net/src/SocketImpl.cpp:272: Poco::Net::SocketImpl::shutdown() @ 0x000000002477a292 in /usr/bin/clickhouse 9. /build/base/poco/Net/src/StreamSocket.cpp:109: Poco::Net::StreamSocket::shutdown() @ 0x000000002477dfbe in /usr/bin/clickhouse 10. /build/src/Common/ZooKeeper/ZooKeeperImpl.cpp:961: Coordination::ZooKeeper::finalize(bool, bool, String const&) @ 0x000000001f2f963a in /usr/bin/clickhouse 11. /build/src/Common/ZooKeeper/ZooKeeperImpl.cpp:732: Coordination::ZooKeeper::receiveThread() @ 0x000000001f3010c3 in /usr/bin/clickhouse 12. /build/src/Common/ZooKeeper/ZooKeeperImpl.cpp:356: Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1::operator()() const @ 0x000000001f306af8 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&>()()) std::__invoke[abi:v15000]> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&) @ 0x000000001f306ad5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&, std::tuple<>&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001f306ab9 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&, std::tuple<>&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&, std::tuple<>&) @ 0x000000001f306a1d in /usr/bin/clickhouse 16. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'()::operator()() @ 0x000000001f306945 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'()&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&) @ 0x000000001f3068b5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'()&) @ 0x000000001f306895 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001f306875 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001f306840 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:07:36.327786 [ 1138 ] {ec18a666-fc59-42dd-9bf1-87eeee9b4447} executeQuery: Code: 44. DB::Exception: Sorting key contains nullable columns, but merge tree setting `allow_nullable_key` is disabled. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58164) (comment: 02920_alter_column_of_projections.sql) (in query: CREATE TABLE t (`uid` Int16, `name` String, `age` Nullable(Int8), `i` Int16, `j` Int16, PROJECTION p1 (SELECT name, age, uniq(i), count(j) GROUP BY name, age)) ENGINE = MergeTree ORDER BY uid SETTINGS index_granularity = 1, min_bytes_for_wide_part = 752347107, ratio_of_defaults_for_sparse_serialization = 0., merge_max_block_size = 16070, prefer_fetch_merged_part_size_threshold = 4921296574, vertical_merge_algorithm_min_rows_to_activate = 1000000, vertical_merge_algorithm_min_columns_to_activate = 1, min_merge_bytes_to_use_direct_io = 1, index_granularity_bytes = 19610668, allow_vertical_merges_from_compact_to_wide_parts = true, marks_compress_block_size = 75059, primary_key_compress_block_size = 19117), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:477: DB::checkKeyExpression(DB::ExpressionActions const&, DB::Block const&, String const&, bool) @ 0x000000001de69cfe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:611: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de69530 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:606: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de69443 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 11. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 24. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:07:36.328862 [ 1138 ] {ec18a666-fc59-42dd-9bf1-87eeee9b4447} TCPHandler: Code: 44. DB::Exception: Sorting key contains nullable columns, but merge tree setting `allow_nullable_key` is disabled. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:477: DB::checkKeyExpression(DB::ExpressionActions const&, DB::Block const&, String const&, bool) @ 0x000000001de69cfe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:611: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de69530 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:606: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de69443 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 11. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 24. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:07:37.212666 [ 1138 ] {90d52b13-1e17-4061-8f1a-f575a624be34} DynamicQueryHandler: Code: 271. DB::Exception: Invalid zero byte count(s): 5 and 1. (CANNOT_DECOMPRESS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, unsigned int&) @ 0x000000001a93e86c in /usr/bin/clickhouse 6. /build/src/Compression/CompressionCodecFPC.cpp:419: DB::(anonymous namespace)::FPCOperation::decodePair(std::span, unsigned int&, unsigned int&) @ 0x000000001b819b9c in /usr/bin/clickhouse 7. /build/src/Compression/CompressionCodecFPC.cpp:387: DB::(anonymous namespace)::FPCOperation::decodeChunk(std::span, std::span) @ 0x000000001b8198cb in /usr/bin/clickhouse 8. /build/src/Compression/CompressionCodecFPC.cpp:279: DB::(anonymous namespace)::FPCOperation::decode(std::span, unsigned long) && @ 0x000000001b817635 in /usr/bin/clickhouse 9. /build/src/Compression/CompressionCodecFPC.cpp:508: DB::CompressionCodecFPC::doDecompressData(char const*, unsigned int, char*, unsigned int) const @ 0x000000001b817342 in /usr/bin/clickhouse 10. /build/src/Compression/ICompressionCodec.cpp:112: DB::ICompressionCodec::decompress(char const*, unsigned int, char*) const @ 0x000000001b826c1a in /usr/bin/clickhouse 11. /build/src/Compression/CompressedReadBufferBase.cpp:308: DB::CompressedReadBufferBase::decompress(DB::BufferBase::Buffer&, unsigned long, unsigned long) @ 0x000000001b7d6307 in /usr/bin/clickhouse 12. /build/src/Compression/CompressedReadBuffer.cpp:26: DB::CompressedReadBuffer::nextImpl() @ 0x000000001b7d471a in /usr/bin/clickhouse 13. /build/src/IO/ReadBuffer.h:71: DB::ReadBuffer::next() @ 0x000000000b21bd7c in /usr/bin/clickhouse 14. /build/src/IO/ReadBuffer.cpp:25: DB::(anonymous namespace)::ReadBufferWrapper::nextImpl() @ 0x000000001b39faaf in /usr/bin/clickhouse 15. /build/src/IO/ReadBuffer.h:71: DB::ReadBuffer::next() @ 0x000000000b21bd7c in /usr/bin/clickhouse 16. /build/src/IO/ReadBuffer.h:105: DB::ConcatReadBuffer::nextImpl() @ 0x000000001bd8db86 in /usr/bin/clickhouse 17. /build/src/IO/ReadBuffer.h:71: DB::ReadBuffer::next() @ 0x000000000b21bd7c in /usr/bin/clickhouse 18. /build/src/IO/ReadBuffer.h:91: DB::ReadBuffer::nextIfAtEnd() @ 0x00000000139a28b8 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1266: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b631f in /usr/bin/clickhouse 20. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 21. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 22. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:07:37.228433 [ 1138 ] {80c3c67d-a07d-4a0e-9f99-de28e6a47397} DynamicQueryHandler: Code: 271. DB::Exception: Invalid zero byte count(s): 1 and 6. (CANNOT_DECOMPRESS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, unsigned int&) @ 0x000000001a93e86c in /usr/bin/clickhouse 6. /build/src/Compression/CompressionCodecFPC.cpp:419: DB::(anonymous namespace)::FPCOperation::decodePair(std::span, unsigned int&, unsigned int&) @ 0x000000001b819b9c in /usr/bin/clickhouse 7. /build/src/Compression/CompressionCodecFPC.cpp:387: DB::(anonymous namespace)::FPCOperation::decodeChunk(std::span, std::span) @ 0x000000001b8198cb in /usr/bin/clickhouse 8. /build/src/Compression/CompressionCodecFPC.cpp:279: DB::(anonymous namespace)::FPCOperation::decode(std::span, unsigned long) && @ 0x000000001b817635 in /usr/bin/clickhouse 9. /build/src/Compression/CompressionCodecFPC.cpp:508: DB::CompressionCodecFPC::doDecompressData(char const*, unsigned int, char*, unsigned int) const @ 0x000000001b817342 in /usr/bin/clickhouse 10. /build/src/Compression/ICompressionCodec.cpp:112: DB::ICompressionCodec::decompress(char const*, unsigned int, char*) const @ 0x000000001b826c1a in /usr/bin/clickhouse 11. /build/src/Compression/CompressedReadBufferBase.cpp:308: DB::CompressedReadBufferBase::decompress(DB::BufferBase::Buffer&, unsigned long, unsigned long) @ 0x000000001b7d6307 in /usr/bin/clickhouse 12. /build/src/Compression/CompressedReadBuffer.cpp:26: DB::CompressedReadBuffer::nextImpl() @ 0x000000001b7d471a in /usr/bin/clickhouse 13. /build/src/IO/ReadBuffer.h:71: DB::ReadBuffer::next() @ 0x000000000b21bd7c in /usr/bin/clickhouse 14. /build/src/IO/ReadBuffer.cpp:25: DB::(anonymous namespace)::ReadBufferWrapper::nextImpl() @ 0x000000001b39faaf in /usr/bin/clickhouse 15. /build/src/IO/ReadBuffer.h:71: DB::ReadBuffer::next() @ 0x000000000b21bd7c in /usr/bin/clickhouse 16. /build/src/IO/ReadBuffer.h:105: DB::ConcatReadBuffer::nextImpl() @ 0x000000001bd8db86 in /usr/bin/clickhouse 17. /build/src/IO/ReadBuffer.h:71: DB::ReadBuffer::next() @ 0x000000000b21bd7c in /usr/bin/clickhouse 18. /build/src/IO/ReadBuffer.h:91: DB::ReadBuffer::nextIfAtEnd() @ 0x00000000139a28b8 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1266: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b631f in /usr/bin/clickhouse 20. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 21. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 22. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:07:37.652677 [ 935 ] {} test_dht4smwe.tableOut (800e46be-a26d-4de6-9ac4-19c8338d828b): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02916%2Ftest_dht4smwe%2Ftable%2Freplicas%2F1&part=all_0_0_0&client_protocol_version=8&compress=false&remote_fs_metadata=s3. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Could not exchange part all_0_0_0 as it's in preActive state (1000 ms) and it uses zero copy replication. This is expected behaviour and the client will retry fetching the part automatically. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:07:38.388651 [ 1139 ] {7066ed71-1aae-4c15-8b28-98236b305f87} executeQuery: Code: 36. DB::Exception: Too many groups for analysis of variance (should be no more than 1048576, got 18446744073709551615): While executing AggregatingTransform. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34232) (comment: 02874_analysis_of_variance_overflow.sql) (in query: SELECT analysisOfVariance(1, 18446744073709551615);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long const&, unsigned long&) @ 0x000000000b9019ec in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/Moments.h:463: DB::AnalysisOfVarianceMoments::add(double, unsigned long) @ 0x0000000017a9f63b in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionAnalysisOfVariance.h:54: DB::AggregateFunctionAnalysisOfVariance::add(char*, DB::IColumn const**, unsigned long, DB::Arena*) const @ 0x0000000017a9dd05 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/IAggregateFunction.h:541: DB::IAggregateFunctionHelper::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000017a9e58a in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:07:38.538435 [ 673 ] {bfe5955c-97f5-4624-a71d-1541772cf002} executeQuery: Code: 306. DB::Exception: Stack size too large. Stack address: 0x7f18de9fe000, frame address: 0x7f18dedfde10, stack size: 4194800, maximum stack size: 8388608. (TOO_DEEP_RECURSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34220) (comment: 02896_cyclic_aliases_crash.sql) (in query: SELECT val, val + 1 as prev, val + prev as val FROM ( SELECT 1 as val ) ;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, void*&, void const*&, unsigned long&, unsigned long&) @ 0x0000000013969224 in /usr/bin/clickhouse 6. /build/src/Common/checkStackSize.cpp:121: checkStackSize() @ 0x0000000013968d9c in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:75: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01d0fc in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01debe in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 18. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 19. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 20. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 21. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 22. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 23. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 24. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 25. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 26. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 27. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 28. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 29. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 30. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 31. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 2024.10.22 10:07:38.538456 [ 1139 ] {7066ed71-1aae-4c15-8b28-98236b305f87} TCPHandler: Code: 36. DB::Exception: Too many groups for analysis of variance (should be no more than 1048576, got 18446744073709551615): While executing AggregatingTransform. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long const&, unsigned long&) @ 0x000000000b9019ec in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/Moments.h:463: DB::AnalysisOfVarianceMoments::add(double, unsigned long) @ 0x0000000017a9f63b in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionAnalysisOfVariance.h:54: DB::AggregateFunctionAnalysisOfVariance::add(char*, DB::IColumn const**, unsigned long, DB::Arena*) const @ 0x0000000017a9dd05 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/IAggregateFunction.h:541: DB::IAggregateFunctionHelper::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000017a9e58a in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:07:38.539291 [ 673 ] {bfe5955c-97f5-4624-a71d-1541772cf002} TCPHandler: Code: 306. DB::Exception: Stack size too large. Stack address: 0x7f18de9fe000, frame address: 0x7f18dedfde10, stack size: 4194800, maximum stack size: 8388608. (TOO_DEEP_RECURSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, void*&, void const*&, unsigned long&, unsigned long&) @ 0x0000000013969224 in /usr/bin/clickhouse 6. /build/src/Common/checkStackSize.cpp:121: checkStackSize() @ 0x0000000013968d9c in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:75: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01d0fc in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01debe in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 18. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 19. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 20. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 21. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 22. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 23. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 24. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 25. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 26. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 27. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 28. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 29. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 30. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 31. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 2024.10.22 10:07:39.205913 [ 940 ] {} test_dht4smwe.tableOut (800e46be-a26d-4de6-9ac4-19c8338d828b): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02916%2Ftest_dht4smwe%2Ftable%2Freplicas%2F1&part=all_0_0_0&client_protocol_version=8&compress=false&remote_fs_metadata=s3. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Could not exchange part all_0_0_0 as it's in preActive state (1000 ms) and it uses zero copy replication. This is expected behaviour and the client will retry fetching the part automatically. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:07:40.328258 [ 942 ] {} test_dht4smwe.tableOut (800e46be-a26d-4de6-9ac4-19c8338d828b): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02916%2Ftest_dht4smwe%2Ftable%2Freplicas%2F1&part=all_0_0_0&client_protocol_version=8&compress=false&remote_fs_metadata=s3. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Could not exchange part all_0_0_0 as it's in preActive state (1000 ms) and it uses zero copy replication. This is expected behaviour and the client will retry fetching the part automatically. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:07:40.796336 [ 673 ] {883704c5-0506-4afa-99d3-936ca7f40cca} executeQuery: Code: 36. DB::Exception: Filesystem cache path /kek must lie inside default filesystem cache path `/var/lib/clickhouse/filesystem_caches/`: While processing disk(type = cache, max_size = '1Mi', path = '/kek', disk = 'local_disk'). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34284) (comment: 02842_filesystem_cache_validate_path.sql) (in query: CREATE TABLE test (`a` Int32) ENGINE = MergeTree ORDER BY tuple() SETTINGS disk = disk(type = cache, max_size = '1Mi', path = '/kek', disk = 'local_disk'), index_granularity = 51719, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 13168, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1000000, vertical_merge_algorithm_min_columns_to_activate = 1, min_merge_bytes_to_use_direct_io = 1, index_granularity_bytes = 10644296, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 30634, primary_key_compress_block_size = 29163), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&) @ 0x00000000124f632c in /usr/bin/clickhouse 6. /build/src/Disks/ObjectStorages/Cached/registerDiskCache.cpp:57: DB::registerDiskCache(DB::DiskFactory&, bool)::$_0::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bc2ddbb in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval>(), std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000], std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d557 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call, std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d4bd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d45d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::__call_impl (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d405 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb910fe in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb8e841 in /usr/bin/clickhouse 13. /build/src/Disks/DiskFactory.cpp:37: DB::DiskFactory::create(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb8e59d in /usr/bin/clickhouse 14. /build/src/Disks/getOrCreateDiskFromAST.cpp:49: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001e1b8064 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_0&>()(std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000])::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7f9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call)::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7f5d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7f1d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (std::map, std::less, std::allocator>>> const&)>::__call_impl)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7ee8 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) const @ 0x000000001be534fe in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (std::map, std::less, std::allocator>>> const&)>::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001bdee6bd in /usr/bin/clickhouse 21. /build/src/Interpreters/Context.cpp:3548: DB::Context::getOrCreateDisk(String const&, std::function (std::map, std::less, std::allocator>>> const&)>) const @ 0x000000001bddc898 in /usr/bin/clickhouse 22. /build/src/Disks/getOrCreateDiskFromAST.cpp:48: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr) @ 0x000000001e1b7663 in /usr/bin/clickhouse 23. /build/src/Disks/getOrCreateDiskFromAST.cpp:93: DB::(anonymous namespace)::DiskConfigurationFlattener::visit(std::shared_ptr&, DB::(anonymous namespace)::DiskConfigurationFlattener::Data&) @ 0x000000001e1b721b in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001e1b7080 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001e1b832e in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001e1b672a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001e1b65e5 in /usr/bin/clickhouse 28. /build/src/Disks/getOrCreateDiskFromAST.cpp:112: DB::getOrCreateDiskFromDiskAST(std::shared_ptr const&, std::shared_ptr) @ 0x000000001e1b5e78 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:67: DB::MergeTreeSettings::loadFromQuery(DB::ASTStorage&, std::shared_ptr) @ 0x000000001e15c239 in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:602: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35d7c1 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 2024.10.22 10:07:40.797688 [ 673 ] {883704c5-0506-4afa-99d3-936ca7f40cca} TCPHandler: Code: 36. DB::Exception: Filesystem cache path /kek must lie inside default filesystem cache path `/var/lib/clickhouse/filesystem_caches/`: While processing disk(type = cache, max_size = '1Mi', path = '/kek', disk = 'local_disk'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&) @ 0x00000000124f632c in /usr/bin/clickhouse 6. /build/src/Disks/ObjectStorages/Cached/registerDiskCache.cpp:57: DB::registerDiskCache(DB::DiskFactory&, bool)::$_0::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bc2ddbb in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval>(), std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000], std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d557 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call, std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d4bd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d45d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::__call_impl (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d405 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb910fe in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb8e841 in /usr/bin/clickhouse 13. /build/src/Disks/DiskFactory.cpp:37: DB::DiskFactory::create(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb8e59d in /usr/bin/clickhouse 14. /build/src/Disks/getOrCreateDiskFromAST.cpp:49: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001e1b8064 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_0&>()(std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000])::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7f9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call)::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7f5d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7f1d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (std::map, std::less, std::allocator>>> const&)>::__call_impl)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7ee8 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) const @ 0x000000001be534fe in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (std::map, std::less, std::allocator>>> const&)>::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001bdee6bd in /usr/bin/clickhouse 21. /build/src/Interpreters/Context.cpp:3548: DB::Context::getOrCreateDisk(String const&, std::function (std::map, std::less, std::allocator>>> const&)>) const @ 0x000000001bddc898 in /usr/bin/clickhouse 22. /build/src/Disks/getOrCreateDiskFromAST.cpp:48: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr) @ 0x000000001e1b7663 in /usr/bin/clickhouse 23. /build/src/Disks/getOrCreateDiskFromAST.cpp:93: DB::(anonymous namespace)::DiskConfigurationFlattener::visit(std::shared_ptr&, DB::(anonymous namespace)::DiskConfigurationFlattener::Data&) @ 0x000000001e1b721b in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001e1b7080 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001e1b832e in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001e1b672a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001e1b65e5 in /usr/bin/clickhouse 28. /build/src/Disks/getOrCreateDiskFromAST.cpp:112: DB::getOrCreateDiskFromDiskAST(std::shared_ptr const&, std::shared_ptr) @ 0x000000001e1b5e78 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:67: DB::MergeTreeSettings::loadFromQuery(DB::ASTStorage&, std::shared_ptr) @ 0x000000001e15c239 in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:602: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35d7c1 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 2024.10.22 10:07:40.817810 [ 673 ] {413c8802-eacf-4325-b2f5-2f25facc2c16} executeQuery: Code: 36. DB::Exception: Filesystem cache path /var/lib/clickhouse/filesystem_caches/../kek must lie inside default filesystem cache path `/var/lib/clickhouse/filesystem_caches/`: While processing disk(type = cache, max_size = '1Mi', path = '/var/lib/clickhouse/filesystem_caches/../kek', disk = 'local_disk'). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34284) (comment: 02842_filesystem_cache_validate_path.sql) (in query: CREATE TABLE test (`a` Int32) ENGINE = MergeTree ORDER BY tuple() SETTINGS disk = disk(type = cache, max_size = '1Mi', path = '/var/lib/clickhouse/filesystem_caches/../kek', disk = 'local_disk'), index_granularity = 51719, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 13168, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1000000, vertical_merge_algorithm_min_columns_to_activate = 1, min_merge_bytes_to_use_direct_io = 1, index_granularity_bytes = 10644296, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 30634, primary_key_compress_block_size = 29163), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&) @ 0x00000000124f632c in /usr/bin/clickhouse 6. /build/src/Disks/ObjectStorages/Cached/registerDiskCache.cpp:57: DB::registerDiskCache(DB::DiskFactory&, bool)::$_0::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bc2ddbb in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval>(), std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000], std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d557 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call, std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d4bd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d45d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::__call_impl (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d405 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb910fe in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb8e841 in /usr/bin/clickhouse 13. /build/src/Disks/DiskFactory.cpp:37: DB::DiskFactory::create(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb8e59d in /usr/bin/clickhouse 14. /build/src/Disks/getOrCreateDiskFromAST.cpp:49: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001e1b8064 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_0&>()(std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000])::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7f9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call)::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7f5d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7f1d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (std::map, std::less, std::allocator>>> const&)>::__call_impl)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7ee8 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) const @ 0x000000001be534fe in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (std::map, std::less, std::allocator>>> const&)>::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001bdee6bd in /usr/bin/clickhouse 21. /build/src/Interpreters/Context.cpp:3548: DB::Context::getOrCreateDisk(String const&, std::function (std::map, std::less, std::allocator>>> const&)>) const @ 0x000000001bddc898 in /usr/bin/clickhouse 22. /build/src/Disks/getOrCreateDiskFromAST.cpp:48: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr) @ 0x000000001e1b7663 in /usr/bin/clickhouse 23. /build/src/Disks/getOrCreateDiskFromAST.cpp:93: DB::(anonymous namespace)::DiskConfigurationFlattener::visit(std::shared_ptr&, DB::(anonymous namespace)::DiskConfigurationFlattener::Data&) @ 0x000000001e1b721b in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001e1b7080 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001e1b832e in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001e1b672a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001e1b65e5 in /usr/bin/clickhouse 28. /build/src/Disks/getOrCreateDiskFromAST.cpp:112: DB::getOrCreateDiskFromDiskAST(std::shared_ptr const&, std::shared_ptr) @ 0x000000001e1b5e78 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:67: DB::MergeTreeSettings::loadFromQuery(DB::ASTStorage&, std::shared_ptr) @ 0x000000001e15c239 in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:602: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35d7c1 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 2024.10.22 10:07:40.819085 [ 673 ] {413c8802-eacf-4325-b2f5-2f25facc2c16} TCPHandler: Code: 36. DB::Exception: Filesystem cache path /var/lib/clickhouse/filesystem_caches/../kek must lie inside default filesystem cache path `/var/lib/clickhouse/filesystem_caches/`: While processing disk(type = cache, max_size = '1Mi', path = '/var/lib/clickhouse/filesystem_caches/../kek', disk = 'local_disk'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&) @ 0x00000000124f632c in /usr/bin/clickhouse 6. /build/src/Disks/ObjectStorages/Cached/registerDiskCache.cpp:57: DB::registerDiskCache(DB::DiskFactory&, bool)::$_0::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bc2ddbb in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval>(), std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000], std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d557 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call, std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d4bd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d45d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::__call_impl (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d405 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb910fe in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb8e841 in /usr/bin/clickhouse 13. /build/src/Disks/DiskFactory.cpp:37: DB::DiskFactory::create(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb8e59d in /usr/bin/clickhouse 14. /build/src/Disks/getOrCreateDiskFromAST.cpp:49: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001e1b8064 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_0&>()(std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000])::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7f9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call)::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7f5d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7f1d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (std::map, std::less, std::allocator>>> const&)>::__call_impl)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7ee8 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) const @ 0x000000001be534fe in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (std::map, std::less, std::allocator>>> const&)>::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001bdee6bd in /usr/bin/clickhouse 21. /build/src/Interpreters/Context.cpp:3548: DB::Context::getOrCreateDisk(String const&, std::function (std::map, std::less, std::allocator>>> const&)>) const @ 0x000000001bddc898 in /usr/bin/clickhouse 22. /build/src/Disks/getOrCreateDiskFromAST.cpp:48: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr) @ 0x000000001e1b7663 in /usr/bin/clickhouse 23. /build/src/Disks/getOrCreateDiskFromAST.cpp:93: DB::(anonymous namespace)::DiskConfigurationFlattener::visit(std::shared_ptr&, DB::(anonymous namespace)::DiskConfigurationFlattener::Data&) @ 0x000000001e1b721b in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001e1b7080 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001e1b832e in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001e1b672a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001e1b65e5 in /usr/bin/clickhouse 28. /build/src/Disks/getOrCreateDiskFromAST.cpp:112: DB::getOrCreateDiskFromDiskAST(std::shared_ptr const&, std::shared_ptr) @ 0x000000001e1b5e78 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:67: DB::MergeTreeSettings::loadFromQuery(DB::ASTStorage&, std::shared_ptr) @ 0x000000001e15c239 in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:602: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35d7c1 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 2024.10.22 10:07:40.843218 [ 673 ] {d9f82655-58ac-414a-b1e6-d185c63c0818} executeQuery: Code: 36. DB::Exception: Filesystem cache path /var/lib/clickhouse/filesystem_caches/../kek must lie inside default filesystem cache path `/var/lib/clickhouse/filesystem_caches/`: While processing disk(type = cache, max_size = '1Mi', path = '../kek', disk = 'local_disk'). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34284) (comment: 02842_filesystem_cache_validate_path.sql) (in query: CREATE TABLE test (`a` Int32) ENGINE = MergeTree ORDER BY tuple() SETTINGS disk = disk(type = cache, max_size = '1Mi', path = '../kek', disk = 'local_disk'), index_granularity = 51719, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 13168, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1000000, vertical_merge_algorithm_min_columns_to_activate = 1, min_merge_bytes_to_use_direct_io = 1, index_granularity_bytes = 10644296, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 30634, primary_key_compress_block_size = 29163), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&) @ 0x00000000124f632c in /usr/bin/clickhouse 6. /build/src/Disks/ObjectStorages/Cached/registerDiskCache.cpp:57: DB::registerDiskCache(DB::DiskFactory&, bool)::$_0::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bc2ddbb in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval>(), std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000], std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d557 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call, std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d4bd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d45d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::__call_impl (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d405 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb910fe in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb8e841 in /usr/bin/clickhouse 13. /build/src/Disks/DiskFactory.cpp:37: DB::DiskFactory::create(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb8e59d in /usr/bin/clickhouse 14. /build/src/Disks/getOrCreateDiskFromAST.cpp:49: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001e1b8064 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_0&>()(std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000])::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7f9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call)::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7f5d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7f1d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (std::map, std::less, std::allocator>>> const&)>::__call_impl)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7ee8 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) const @ 0x000000001be534fe in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (std::map, std::less, std::allocator>>> const&)>::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001bdee6bd in /usr/bin/clickhouse 21. /build/src/Interpreters/Context.cpp:3548: DB::Context::getOrCreateDisk(String const&, std::function (std::map, std::less, std::allocator>>> const&)>) const @ 0x000000001bddc898 in /usr/bin/clickhouse 22. /build/src/Disks/getOrCreateDiskFromAST.cpp:48: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr) @ 0x000000001e1b7663 in /usr/bin/clickhouse 23. /build/src/Disks/getOrCreateDiskFromAST.cpp:93: DB::(anonymous namespace)::DiskConfigurationFlattener::visit(std::shared_ptr&, DB::(anonymous namespace)::DiskConfigurationFlattener::Data&) @ 0x000000001e1b721b in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001e1b7080 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001e1b832e in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001e1b672a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001e1b65e5 in /usr/bin/clickhouse 28. /build/src/Disks/getOrCreateDiskFromAST.cpp:112: DB::getOrCreateDiskFromDiskAST(std::shared_ptr const&, std::shared_ptr) @ 0x000000001e1b5e78 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:67: DB::MergeTreeSettings::loadFromQuery(DB::ASTStorage&, std::shared_ptr) @ 0x000000001e15c239 in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:602: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35d7c1 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 2024.10.22 10:07:40.844217 [ 673 ] {d9f82655-58ac-414a-b1e6-d185c63c0818} TCPHandler: Code: 36. DB::Exception: Filesystem cache path /var/lib/clickhouse/filesystem_caches/../kek must lie inside default filesystem cache path `/var/lib/clickhouse/filesystem_caches/`: While processing disk(type = cache, max_size = '1Mi', path = '../kek', disk = 'local_disk'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&) @ 0x00000000124f632c in /usr/bin/clickhouse 6. /build/src/Disks/ObjectStorages/Cached/registerDiskCache.cpp:57: DB::registerDiskCache(DB::DiskFactory&, bool)::$_0::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bc2ddbb in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval>(), std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000], std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d557 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call, std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d4bd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d45d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::__call_impl (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc2d405 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb910fe in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb8e841 in /usr/bin/clickhouse 13. /build/src/Disks/DiskFactory.cpp:37: DB::DiskFactory::create(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb8e59d in /usr/bin/clickhouse 14. /build/src/Disks/getOrCreateDiskFromAST.cpp:49: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001e1b8064 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_0&>()(std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000])::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7f9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call)::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7f5d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7f1d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (std::map, std::less, std::allocator>>> const&)>::__call_impl)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7ee8 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) const @ 0x000000001be534fe in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (std::map, std::less, std::allocator>>> const&)>::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001bdee6bd in /usr/bin/clickhouse 21. /build/src/Interpreters/Context.cpp:3548: DB::Context::getOrCreateDisk(String const&, std::function (std::map, std::less, std::allocator>>> const&)>) const @ 0x000000001bddc898 in /usr/bin/clickhouse 22. /build/src/Disks/getOrCreateDiskFromAST.cpp:48: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr) @ 0x000000001e1b7663 in /usr/bin/clickhouse 23. /build/src/Disks/getOrCreateDiskFromAST.cpp:93: DB::(anonymous namespace)::DiskConfigurationFlattener::visit(std::shared_ptr&, DB::(anonymous namespace)::DiskConfigurationFlattener::Data&) @ 0x000000001e1b721b in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001e1b7080 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001e1b832e in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001e1b672a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001e1b65e5 in /usr/bin/clickhouse 28. /build/src/Disks/getOrCreateDiskFromAST.cpp:112: DB::getOrCreateDiskFromDiskAST(std::shared_ptr const&, std::shared_ptr) @ 0x000000001e1b5e78 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:67: DB::MergeTreeSettings::loadFromQuery(DB::ASTStorage&, std::shared_ptr) @ 0x000000001e15c239 in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:602: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35d7c1 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 2024.10.22 10:07:41.389248 [ 936 ] {} test_dht4smwe.tableOut (800e46be-a26d-4de6-9ac4-19c8338d828b): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02916%2Ftest_dht4smwe%2Ftable%2Freplicas%2F1&part=all_0_0_0&client_protocol_version=8&compress=false&remote_fs_metadata=s3. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Could not exchange part all_0_0_0 as it's in preActive state (1000 ms) and it uses zero copy replication. This is expected behaviour and the client will retry fetching the part automatically. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:07:42.633592 [ 941 ] {} test_dht4smwe.tableOut (800e46be-a26d-4de6-9ac4-19c8338d828b): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02916%2Ftest_dht4smwe%2Ftable%2Freplicas%2F1&part=all_1_1_0&client_protocol_version=8&compress=false&remote_fs_metadata=s3. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Could not exchange part all_1_1_0 as it's in preActive state (1000 ms) and it uses zero copy replication. This is expected behaviour and the client will retry fetching the part automatically. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:07:43.435236 [ 672 ] {c80d8b99-969c-4253-9c58-f983e1e2f4dd} executeQuery: Code: 62. DB::Exception: Function isNotDistinctFrom takes two arguments, got 'isNotDistinctFrom()' instead: While processing isNotDistinctFrom(). (SYNTAX_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34258) (comment: 02861_join_on_nullsafe_compare.gen.sql) (in query: -- check illegal queries SELECT * FROM t1 JOIN t2 ON isNotDistinctFrom();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:102: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01bef4 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:07:43.436269 [ 672 ] {c80d8b99-969c-4253-9c58-f983e1e2f4dd} TCPHandler: Code: 62. DB::Exception: Function isNotDistinctFrom takes two arguments, got 'isNotDistinctFrom()' instead: While processing isNotDistinctFrom(). (SYNTAX_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:102: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01bef4 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:07:43.448137 [ 672 ] {a05d7faf-bbb1-43c3-ba54-1576ff9a36b2} executeQuery: Code: 62. DB::Exception: Function isNotDistinctFrom takes two arguments, got 'isNotDistinctFrom(a)' instead: While processing isNotDistinctFrom(a). (SYNTAX_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34258) (comment: 02861_join_on_nullsafe_compare.gen.sql) (in query: SELECT * FROM t1 JOIN t2 ON isNotDistinctFrom(t1.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:102: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01bef4 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:07:43.448931 [ 672 ] {a05d7faf-bbb1-43c3-ba54-1576ff9a36b2} TCPHandler: Code: 62. DB::Exception: Function isNotDistinctFrom takes two arguments, got 'isNotDistinctFrom(a)' instead: While processing isNotDistinctFrom(a). (SYNTAX_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:102: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01bef4 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:07:43.460950 [ 672 ] {42a39cc0-1a78-40cd-9543-ccf35c8620d5} executeQuery: Code: 62. DB::Exception: Function isNotDistinctFrom takes two arguments, got 'isNotDistinctFrom(a, t2.a, t2.b)' instead: While processing isNotDistinctFrom(a, t2.a, t2.b). (SYNTAX_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34258) (comment: 02861_join_on_nullsafe_compare.gen.sql) (in query: SELECT * FROM t1 JOIN t2 ON isNotDistinctFrom(t1.a, t2.a, t2.b);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:102: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01bef4 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:07:43.461903 [ 672 ] {42a39cc0-1a78-40cd-9543-ccf35c8620d5} TCPHandler: Code: 62. DB::Exception: Function isNotDistinctFrom takes two arguments, got 'isNotDistinctFrom(a, t2.a, t2.b)' instead: While processing isNotDistinctFrom(a, t2.a, t2.b). (SYNTAX_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:102: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01bef4 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:07:43.646820 [ 672 ] {e1896bd5-f912-4b92-b1f7-d1ed83c56812} executeQuery: Code: 42. DB::Exception: Number of arguments for function isNotDistinctFrom doesn't match: passed 1, should be 2: While processing isNotDistinctFrom(a). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34258) (comment: 02861_join_on_nullsafe_compare.gen.sql) (in query: SELECT isNotDistinctFrom(a) from t1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:07:43.648476 [ 672 ] {e1896bd5-f912-4b92-b1f7-d1ed83c56812} TCPHandler: Code: 42. DB::Exception: Number of arguments for function isNotDistinctFrom doesn't match: passed 1, should be 2: While processing isNotDistinctFrom(a). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:07:43.840329 [ 672 ] {c7401fba-f672-4a4e-bcb1-beff479c20df} executeQuery: Code: 48. DB::Exception: Function isNotDistinctFrom can be used only in the JOIN ON section. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34258) (comment: 02861_join_on_nullsafe_compare.gen.sql) (in query: SELECT isNotDistinctFrom(a, b) from t1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/isNotDistinctFrom.h:48: DB::FunctionIsNotDistinctFrom::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f838ac7 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc8e048 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc8da48 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001ebcdd87 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001ee33d66 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cacd7f1 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQuery.cpp:2769: DB::InterpreterSelectQuery::executeExpression(DB::QueryPlan&, std::shared_ptr const&, String const&) @ 0x000000001cac2042 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:1720: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9e05 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:07:43.841515 [ 672 ] {c7401fba-f672-4a4e-bcb1-beff479c20df} TCPHandler: Code: 48. DB::Exception: Function isNotDistinctFrom can be used only in the JOIN ON section. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/isNotDistinctFrom.h:48: DB::FunctionIsNotDistinctFrom::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f838ac7 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc8e048 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc8da48 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001ebcdd87 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001ee33d66 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cacd7f1 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQuery.cpp:2769: DB::InterpreterSelectQuery::executeExpression(DB::QueryPlan&, std::shared_ptr const&, String const&) @ 0x000000001cac2042 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:1720: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9e05 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:07:44.211055 [ 938 ] {} test_dht4smwe.tableOut (800e46be-a26d-4de6-9ac4-19c8338d828b): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02916%2Ftest_dht4smwe%2Ftable%2Freplicas%2F1&part=all_1_1_0&client_protocol_version=8&compress=false&remote_fs_metadata=s3. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Could not exchange part all_1_1_0 as it's in preActive state (1000 ms) and it uses zero copy replication. This is expected behaviour and the client will retry fetching the part automatically. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:07:45.406222 [ 935 ] {} test_dht4smwe.tableOut (800e46be-a26d-4de6-9ac4-19c8338d828b): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02916%2Ftest_dht4smwe%2Ftable%2Freplicas%2F1&part=all_1_1_0&client_protocol_version=8&compress=false&remote_fs_metadata=s3. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Could not exchange part all_1_1_0 as it's in preActive state (1000 ms) and it uses zero copy replication. This is expected behaviour and the client will retry fetching the part automatically. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:07:45.938553 [ 672 ] {3b8bd8c5-bc6d-41b8-9b8f-6598ffcb0739} executeQuery: Code: 42. DB::Exception: Function tupleConcat requires at least one argument.: While processing tupleConcat(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34380) (comment: 02833_tuple_concat.sql) (in query: SELECT tupleConcat();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/tupleConcat.cpp:36: DB::FunctionTupleConcat::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000127a9578 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:07:45.939647 [ 672 ] {3b8bd8c5-bc6d-41b8-9b8f-6598ffcb0739} TCPHandler: Code: 42. DB::Exception: Function tupleConcat requires at least one argument.: While processing tupleConcat(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/tupleConcat.cpp:36: DB::FunctionTupleConcat::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000127a9578 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:07:46.066866 [ 672 ] {d0969a5a-7858-45cd-8410-49893bb750e7} executeQuery: Code: 43. DB::Exception: Illegal type UInt8 of argument 2 of function tupleConcat: While processing tupleConcat((1, 'y'), 1). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34380) (comment: 02833_tuple_concat.sql) (in query: SELECT tupleConcat((1, 'y'), 1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x000000000b9017e8 in /usr/bin/clickhouse 6. /build/src/Functions/tupleConcat.cpp:47: DB::FunctionTupleConcat::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000127a9811 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:07:46.067739 [ 672 ] {d0969a5a-7858-45cd-8410-49893bb750e7} TCPHandler: Code: 43. DB::Exception: Illegal type UInt8 of argument 2 of function tupleConcat: While processing tupleConcat((1, 'y'), 1). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x000000000b9017e8 in /usr/bin/clickhouse 6. /build/src/Functions/tupleConcat.cpp:47: DB::FunctionTupleConcat::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000127a9811 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:07:52.736053 [ 1162 ] {11640ed3-00bc-4222-ac73-c1f98648aa13} executeQuery: Code: 43. DB::Exception: Illegal types Array(UInt8) and Array(UInt8) of arguments of function modulo: While processing [12, 13] % [5, 6]. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58722) (comment: 02812_pointwise_array_operations.sql) (in query: SELECT ([12,13] % [5,6]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1618: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000010ae88d2 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000010823e0f in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:07:52.737198 [ 1162 ] {11640ed3-00bc-4222-ac73-c1f98648aa13} TCPHandler: Code: 43. DB::Exception: Illegal types Array(UInt8) and Array(UInt8) of arguments of function modulo: While processing [12, 13] % [5, 6]. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1618: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000010ae88d2 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000010823e0f in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:07:52.920588 [ 1162 ] {4c4f65de-b3a9-46c3-8da9-4b85c4aed2c3} executeQuery: Code: 190. DB::Exception: Two arguments for function minus must have equal sizes: While processing [2, 3, 4] - [1, -2, 10, 29]. (SIZES_OF_ARRAYS_DONT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58722) (comment: 02812_pointwise_array_operations.sql) (in query: SELECT ([2,3,4]-[1,-2,10,29]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1195: DB::FunctionBinaryArithmetic::executeArrayImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106d24ec in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2135: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x00000000106d1a9e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106cedf6 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106cd9ec in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:1180: DB::FunctionBinaryArithmetic::executeArrayImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106d20ef in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:2135: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x00000000106d1a9e in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106cedf6 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106cd9ec in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:07:52.921982 [ 1162 ] {4c4f65de-b3a9-46c3-8da9-4b85c4aed2c3} TCPHandler: Code: 190. DB::Exception: Two arguments for function minus must have equal sizes: While processing [2, 3, 4] - [1, -2, 10, 29]. (SIZES_OF_ARRAYS_DONT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1195: DB::FunctionBinaryArithmetic::executeArrayImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106d24ec in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2135: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x00000000106d1a9e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106cedf6 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106cd9ec in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:1180: DB::FunctionBinaryArithmetic::executeArrayImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106d20ef in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:2135: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x00000000106d1a9e in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106cedf6 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106cd9ec in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:07:53.128968 [ 1162 ] {2f724564-294a-4280-81bb-54620c56016a} executeQuery: Code: 190. DB::Exception: Two arguments for function plus must have equal sizes: while executing 'FUNCTION plus(x : 0, y : 1) -> plus(x, y) Array(UInt64) : 2'. (SIZES_OF_ARRAYS_DONT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58722) (comment: 02812_pointwise_array_operations.sql) (in query: SELECT x, y, x+y FROM a;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1195: DB::FunctionBinaryArithmetic::executeArrayImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b8e96c in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2135: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b8df1e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b8b1f6 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 14. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 17. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 2024.10.22 10:07:53.130224 [ 1162 ] {2f724564-294a-4280-81bb-54620c56016a} TCPHandler: Code: 190. DB::Exception: Two arguments for function plus must have equal sizes: while executing 'FUNCTION plus(x : 0, y : 1) -> plus(x, y) Array(UInt64) : 2'. (SIZES_OF_ARRAYS_DONT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1195: DB::FunctionBinaryArithmetic::executeArrayImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b8e96c in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2135: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b8df1e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b8b1f6 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 14. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 17. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 2024.10.22 10:07:53.555237 [ 672 ] {4c94a07d-4db6-4eb2-9280-fbd9644828e5} executeQuery: Code: 36. DB::Exception: Argument 'ttl' must be a literal, get Identifier_k (value: k). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58748) (comment: 02811_invalid_embedded_rocksdb_create.sql) (in query: CREATE TABLE dict (`k` String, `v` String) ENGINE = EmbeddedRocksDB(k) PRIMARY KEY k;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String&&) @ 0x000000000b5b4728 in /usr/bin/clickhouse 6. /build/src/Storages/checkAndGetLiteralArgument.cpp:18: unsigned long DB::checkAndGetLiteralArgument(std::shared_ptr const&, String const&) @ 0x000000001da4e69a in /usr/bin/clickhouse 7. /build/src/Storages/RocksDB/StorageEmbeddedRocksDB.cpp:485: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001ae0751d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 14. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:07:53.556249 [ 672 ] {4c94a07d-4db6-4eb2-9280-fbd9644828e5} TCPHandler: Code: 36. DB::Exception: Argument 'ttl' must be a literal, get Identifier_k (value: k). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String&&) @ 0x000000000b5b4728 in /usr/bin/clickhouse 6. /build/src/Storages/checkAndGetLiteralArgument.cpp:18: unsigned long DB::checkAndGetLiteralArgument(std::shared_ptr const&, String const&) @ 0x000000001da4e69a in /usr/bin/clickhouse 7. /build/src/Storages/RocksDB/StorageEmbeddedRocksDB.cpp:485: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001ae0751d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 14. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:07:54.272217 [ 672 ] {9d493b9c-a5a4-458c-ac37-c714ad51a5f4} BackupsWorker: Failed to start backup S3('http://localhost:11111/test/backups/test_jv6bnzws/use_same_s3_credentials_for_base_backup_base_inc_2', 'test', '[HIDDEN]'): Code: 499. DB::Exception: The request signature we calculated does not match the signature you provided. Check your key and signing method. (S3_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b2043aa in /usr/bin/clickhouse 5. /build/src/IO/S3Common.h:46: DB::S3Exception::S3Exception(String const&, Aws::S3::S3Errors) @ 0x000000001adc1b4f in /usr/bin/clickhouse 6. /build/src/Backups/BackupIO_S3.cpp:92: DB::(anonymous namespace)::listObjects(DB::S3::Client&, DB::S3::URI const&, String const&) @ 0x000000001b377038 in /usr/bin/clickhouse 7. /build/src/Backups/BackupIO_S3.cpp:127: DB::BackupReaderS3::fileExists(String const&) @ 0x000000001b376dff in /usr/bin/clickhouse 8. /build/src/Backups/BackupImpl.cpp:394: DB::BackupImpl::readBackupMetadata() @ 0x000000001b35186e in /usr/bin/clickhouse 9. /build/src/Backups/BackupImpl.cpp:167: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b34fe72 in /usr/bin/clickhouse 10. /build/src/Backups/BackupImpl.cpp:97: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool) @ 0x000000001b34fb3d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&) @ 0x000000001b34d311 in /usr/bin/clickhouse 12. /build/src/Backups/registerBackupEngineS3.cpp:117: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b34cb23 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bebd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34be3d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdfd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdc5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b2ab63e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa75d in /usr/bin/clickhouse 19. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa401 in /usr/bin/clickhouse 20. /build/src/Backups/BackupImpl.cpp:181: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b34ff70 in /usr/bin/clickhouse 21. /build/src/Backups/BackupImpl.cpp:97: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool) @ 0x000000001b34fb3d in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&) @ 0x000000001b34d311 in /usr/bin/clickhouse 23. /build/src/Backups/registerBackupEngineS3.cpp:117: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b34cb23 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bebd in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34be3d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdfd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdc5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b2ab63e in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa75d in /usr/bin/clickhouse 30. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa401 in /usr/bin/clickhouse 31. /build/src/Backups/BackupImpl.cpp:181: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b34ff70 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:07:54.274118 [ 672 ] {9d493b9c-a5a4-458c-ac37-c714ad51a5f4} executeQuery: Code: 499. DB::Exception: The request signature we calculated does not match the signature you provided. Check your key and signing method. (S3_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58752) (comment: 02843_backup_use_same_s3_credentials_for_base_backup.sh) (in query: BACKUP TABLE data TO S3('http://localhost:11111/test/backups/test_jv6bnzws/use_same_s3_credentials_for_base_backup_base_inc_2', 'test', '[HIDDEN]') SETTINGS base_backup = S3('http://localhost:11111/test/backups/test_jv6bnzws/use_same_s3_credentials_for_base_backup_base_inc_1', 'test', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b2043aa in /usr/bin/clickhouse 5. /build/src/IO/S3Common.h:46: DB::S3Exception::S3Exception(String const&, Aws::S3::S3Errors) @ 0x000000001adc1b4f in /usr/bin/clickhouse 6. /build/src/Backups/BackupIO_S3.cpp:92: DB::(anonymous namespace)::listObjects(DB::S3::Client&, DB::S3::URI const&, String const&) @ 0x000000001b377038 in /usr/bin/clickhouse 7. /build/src/Backups/BackupIO_S3.cpp:127: DB::BackupReaderS3::fileExists(String const&) @ 0x000000001b376dff in /usr/bin/clickhouse 8. /build/src/Backups/BackupImpl.cpp:394: DB::BackupImpl::readBackupMetadata() @ 0x000000001b35186e in /usr/bin/clickhouse 9. /build/src/Backups/BackupImpl.cpp:167: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b34fe72 in /usr/bin/clickhouse 10. /build/src/Backups/BackupImpl.cpp:97: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool) @ 0x000000001b34fb3d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&) @ 0x000000001b34d311 in /usr/bin/clickhouse 12. /build/src/Backups/registerBackupEngineS3.cpp:117: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b34cb23 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bebd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34be3d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdfd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdc5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b2ab63e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa75d in /usr/bin/clickhouse 19. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa401 in /usr/bin/clickhouse 20. /build/src/Backups/BackupImpl.cpp:181: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b34ff70 in /usr/bin/clickhouse 21. /build/src/Backups/BackupImpl.cpp:97: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool) @ 0x000000001b34fb3d in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&) @ 0x000000001b34d311 in /usr/bin/clickhouse 23. /build/src/Backups/registerBackupEngineS3.cpp:117: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b34cb23 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bebd in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34be3d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdfd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdc5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b2ab63e in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa75d in /usr/bin/clickhouse 30. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa401 in /usr/bin/clickhouse 31. /build/src/Backups/BackupImpl.cpp:181: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b34ff70 in /usr/bin/clickhouse 2024.10.22 10:07:54.276625 [ 672 ] {9d493b9c-a5a4-458c-ac37-c714ad51a5f4} TCPHandler: Code: 499. DB::Exception: The request signature we calculated does not match the signature you provided. Check your key and signing method. (S3_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b2043aa in /usr/bin/clickhouse 5. /build/src/IO/S3Common.h:46: DB::S3Exception::S3Exception(String const&, Aws::S3::S3Errors) @ 0x000000001adc1b4f in /usr/bin/clickhouse 6. /build/src/Backups/BackupIO_S3.cpp:92: DB::(anonymous namespace)::listObjects(DB::S3::Client&, DB::S3::URI const&, String const&) @ 0x000000001b377038 in /usr/bin/clickhouse 7. /build/src/Backups/BackupIO_S3.cpp:127: DB::BackupReaderS3::fileExists(String const&) @ 0x000000001b376dff in /usr/bin/clickhouse 8. /build/src/Backups/BackupImpl.cpp:394: DB::BackupImpl::readBackupMetadata() @ 0x000000001b35186e in /usr/bin/clickhouse 9. /build/src/Backups/BackupImpl.cpp:167: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b34fe72 in /usr/bin/clickhouse 10. /build/src/Backups/BackupImpl.cpp:97: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool) @ 0x000000001b34fb3d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&) @ 0x000000001b34d311 in /usr/bin/clickhouse 12. /build/src/Backups/registerBackupEngineS3.cpp:117: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b34cb23 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bebd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34be3d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdfd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdc5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b2ab63e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa75d in /usr/bin/clickhouse 19. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa401 in /usr/bin/clickhouse 20. /build/src/Backups/BackupImpl.cpp:181: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b34ff70 in /usr/bin/clickhouse 21. /build/src/Backups/BackupImpl.cpp:97: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool) @ 0x000000001b34fb3d in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&) @ 0x000000001b34d311 in /usr/bin/clickhouse 23. /build/src/Backups/registerBackupEngineS3.cpp:117: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b34cb23 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bebd in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34be3d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdfd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdc5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b2ab63e in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa75d in /usr/bin/clickhouse 30. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa401 in /usr/bin/clickhouse 31. /build/src/Backups/BackupImpl.cpp:181: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b34ff70 in /usr/bin/clickhouse 2024.10.22 10:07:58.655841 [ 672 ] {e2d39ac8-5e94-4d56-bb7b-bfbcb37fd97c} executeQuery: Code: 36. DB::Exception: Illegal (null) value column Nullable(UInt64) of argument of function range: While processing range(CAST(NULL, 'Nullable(UInt64)'), CAST('10', 'Nullable(UInt64)'), CAST('2', 'Nullable(UInt64)')). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52736) (comment: 02797_range_nullable.sql) (in query: SELECT range(Null::Nullable(UInt64), 10::Nullable(UInt64), 2::Nullable(UInt64));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/array/range.cpp:414: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(DB::ColumnWithTypeAndName const&)::operator()(DB::ColumnWithTypeAndName const&) const @ 0x00000000138360bc in /usr/bin/clickhouse 7. /build/src/Functions/array/range.cpp:442: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000013833112 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:07:58.656943 [ 672 ] {e2d39ac8-5e94-4d56-bb7b-bfbcb37fd97c} TCPHandler: Code: 36. DB::Exception: Illegal (null) value column Nullable(UInt64) of argument of function range: While processing range(CAST(NULL, 'Nullable(UInt64)'), CAST('10', 'Nullable(UInt64)'), CAST('2', 'Nullable(UInt64)')). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/array/range.cpp:414: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(DB::ColumnWithTypeAndName const&)::operator()(DB::ColumnWithTypeAndName const&) const @ 0x00000000138360bc in /usr/bin/clickhouse 7. /build/src/Functions/array/range.cpp:442: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000013833112 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:07:58.670895 [ 672 ] {60001a3a-70ff-4ad3-aa2c-9fd10e06367e} executeQuery: Code: 36. DB::Exception: Illegal (null) value column Nullable(UInt64) of argument of function range: While processing range(CAST('0', 'Nullable(UInt64)'), CAST(NULL, 'Nullable(UInt64)'), CAST('2', 'Nullable(UInt64)')). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52736) (comment: 02797_range_nullable.sql) (in query: SELECT range(0::Nullable(UInt64), Null::Nullable(UInt64), 2::Nullable(UInt64));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/array/range.cpp:414: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(DB::ColumnWithTypeAndName const&)::operator()(DB::ColumnWithTypeAndName const&) const @ 0x00000000138360bc in /usr/bin/clickhouse 7. /build/src/Functions/array/range.cpp:442: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000013833112 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:07:58.672055 [ 672 ] {60001a3a-70ff-4ad3-aa2c-9fd10e06367e} TCPHandler: Code: 36. DB::Exception: Illegal (null) value column Nullable(UInt64) of argument of function range: While processing range(CAST('0', 'Nullable(UInt64)'), CAST(NULL, 'Nullable(UInt64)'), CAST('2', 'Nullable(UInt64)')). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/array/range.cpp:414: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(DB::ColumnWithTypeAndName const&)::operator()(DB::ColumnWithTypeAndName const&) const @ 0x00000000138360bc in /usr/bin/clickhouse 7. /build/src/Functions/array/range.cpp:442: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000013833112 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:07:58.684863 [ 672 ] {e2c6493e-7d26-4a38-983e-7b5352533121} executeQuery: Code: 36. DB::Exception: Illegal (null) value column Nullable(UInt64) of argument of function range: While processing range(CAST('0', 'Nullable(UInt64)'), CAST('10', 'Nullable(UInt64)'), CAST(NULL, 'Nullable(UInt64)')). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52736) (comment: 02797_range_nullable.sql) (in query: SELECT range(0::Nullable(UInt64), 10::Nullable(UInt64), Null::Nullable(UInt64));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/array/range.cpp:414: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(DB::ColumnWithTypeAndName const&)::operator()(DB::ColumnWithTypeAndName const&) const @ 0x00000000138360bc in /usr/bin/clickhouse 7. /build/src/Functions/array/range.cpp:442: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000013833112 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:07:58.686514 [ 672 ] {e2c6493e-7d26-4a38-983e-7b5352533121} TCPHandler: Code: 36. DB::Exception: Illegal (null) value column Nullable(UInt64) of argument of function range: While processing range(CAST('0', 'Nullable(UInt64)'), CAST('10', 'Nullable(UInt64)'), CAST(NULL, 'Nullable(UInt64)')). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/array/range.cpp:414: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(DB::ColumnWithTypeAndName const&)::operator()(DB::ColumnWithTypeAndName const&) const @ 0x00000000138360bc in /usr/bin/clickhouse 7. /build/src/Functions/array/range.cpp:442: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000013833112 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:07:58.842671 [ 672 ] {c67e2b36-ce70-4109-8195-2eb90f9e204a} executeQuery: Code: 36. DB::Exception: Illegal (null) value column Const(Nullable(UInt8)) of argument of function range. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52736) (comment: 02797_range_nullable.sql) (in query: SELECT range(Null::Nullable(UInt8), materialize(1));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/array/range.cpp:414: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(DB::ColumnWithTypeAndName const&)::operator()(DB::ColumnWithTypeAndName const&) const @ 0x00000000138360bc in /usr/bin/clickhouse 7. /build/src/Functions/array/range.cpp:442: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000013833112 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc8e048 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc8da48 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001ebcdd87 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001ee33d66 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cacd7f1 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:2769: DB::InterpreterSelectQuery::executeExpression(DB::QueryPlan&, std::shared_ptr const&, String const&) @ 0x000000001cac2042 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:1720: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9e05 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 2024.10.22 10:07:58.843517 [ 672 ] {c67e2b36-ce70-4109-8195-2eb90f9e204a} TCPHandler: Code: 36. DB::Exception: Illegal (null) value column Const(Nullable(UInt8)) of argument of function range. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/array/range.cpp:414: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(DB::ColumnWithTypeAndName const&)::operator()(DB::ColumnWithTypeAndName const&) const @ 0x00000000138360bc in /usr/bin/clickhouse 7. /build/src/Functions/array/range.cpp:442: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000013833112 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc8e048 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc8da48 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001ebcdd87 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001ee33d66 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cacd7f1 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:2769: DB::InterpreterSelectQuery::executeExpression(DB::QueryPlan&, std::shared_ptr const&, String const&) @ 0x000000001cac2042 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:1720: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9e05 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 2024.10.22 10:07:58.987120 [ 1162 ] {a06c1e72-9188-427c-9f71-d2db384392de} executeQuery: Code: 499. DB::Exception: The request signature we calculated does not match the signature you provided. Check your key and signing method. (S3_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52750) (comment: 02843_backup_use_same_s3_credentials_for_base_backup.sh) (in query: RESTORE TABLE data FROM S3('http://localhost:11111/test/backups/test_jv6bnzws/use_same_s3_credentials_for_base_backup_base_inc_1', 'test', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b2043aa in /usr/bin/clickhouse 5. /build/src/IO/S3Common.h:46: DB::S3Exception::S3Exception(String const&, Aws::S3::S3Errors) @ 0x000000001adc1b4f in /usr/bin/clickhouse 6. /build/src/Backups/BackupIO_S3.cpp:92: DB::(anonymous namespace)::listObjects(DB::S3::Client&, DB::S3::URI const&, String const&) @ 0x000000001b377038 in /usr/bin/clickhouse 7. /build/src/Backups/BackupIO_S3.cpp:127: DB::BackupReaderS3::fileExists(String const&) @ 0x000000001b376dff in /usr/bin/clickhouse 8. /build/src/Backups/BackupImpl.cpp:394: DB::BackupImpl::readBackupMetadata() @ 0x000000001b35186e in /usr/bin/clickhouse 9. /build/src/Backups/BackupImpl.cpp:167: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b34fe72 in /usr/bin/clickhouse 10. /build/src/Backups/BackupImpl.cpp:97: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool) @ 0x000000001b34fb3d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&) @ 0x000000001b34d311 in /usr/bin/clickhouse 12. /build/src/Backups/registerBackupEngineS3.cpp:117: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b34cb23 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bebd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34be3d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdfd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdc5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b2ab63e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa75d in /usr/bin/clickhouse 19. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa401 in /usr/bin/clickhouse 20. /build/src/Backups/BackupImpl.cpp:181: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b34ff70 in /usr/bin/clickhouse 21. /build/src/Backups/BackupImpl.cpp:97: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool) @ 0x000000001b34fb3d in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&) @ 0x000000001b34d311 in /usr/bin/clickhouse 23. /build/src/Backups/registerBackupEngineS3.cpp:117: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b34cb23 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bebd in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34be3d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdfd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdc5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b2ab63e in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa75d in /usr/bin/clickhouse 30. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa401 in /usr/bin/clickhouse 31. /build/src/Backups/BackupsWorker.cpp:700: DB::BackupsWorker::doRestore(std::shared_ptr const&, String const&, String const&, DB::BackupInfo const&, DB::RestoreSettings, std::shared_ptr, std::shared_ptr, bool) @ 0x000000001b297b38 in /usr/bin/clickhouse 2024.10.22 10:07:58.989046 [ 1162 ] {a06c1e72-9188-427c-9f71-d2db384392de} TCPHandler: Code: 499. DB::Exception: The request signature we calculated does not match the signature you provided. Check your key and signing method. (S3_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b2043aa in /usr/bin/clickhouse 5. /build/src/IO/S3Common.h:46: DB::S3Exception::S3Exception(String const&, Aws::S3::S3Errors) @ 0x000000001adc1b4f in /usr/bin/clickhouse 6. /build/src/Backups/BackupIO_S3.cpp:92: DB::(anonymous namespace)::listObjects(DB::S3::Client&, DB::S3::URI const&, String const&) @ 0x000000001b377038 in /usr/bin/clickhouse 7. /build/src/Backups/BackupIO_S3.cpp:127: DB::BackupReaderS3::fileExists(String const&) @ 0x000000001b376dff in /usr/bin/clickhouse 8. /build/src/Backups/BackupImpl.cpp:394: DB::BackupImpl::readBackupMetadata() @ 0x000000001b35186e in /usr/bin/clickhouse 9. /build/src/Backups/BackupImpl.cpp:167: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b34fe72 in /usr/bin/clickhouse 10. /build/src/Backups/BackupImpl.cpp:97: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool) @ 0x000000001b34fb3d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&) @ 0x000000001b34d311 in /usr/bin/clickhouse 12. /build/src/Backups/registerBackupEngineS3.cpp:117: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b34cb23 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bebd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34be3d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdfd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdc5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b2ab63e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa75d in /usr/bin/clickhouse 19. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa401 in /usr/bin/clickhouse 20. /build/src/Backups/BackupImpl.cpp:181: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b34ff70 in /usr/bin/clickhouse 21. /build/src/Backups/BackupImpl.cpp:97: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool) @ 0x000000001b34fb3d in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&) @ 0x000000001b34d311 in /usr/bin/clickhouse 23. /build/src/Backups/registerBackupEngineS3.cpp:117: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b34cb23 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bebd in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34be3d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdfd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdc5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b2ab63e in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa75d in /usr/bin/clickhouse 30. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa401 in /usr/bin/clickhouse 31. /build/src/Backups/BackupsWorker.cpp:700: DB::BackupsWorker::doRestore(std::shared_ptr const&, String const&, String const&, DB::BackupInfo const&, DB::RestoreSettings, std::shared_ptr, std::shared_ptr, bool) @ 0x000000001b297b38 in /usr/bin/clickhouse 2024.10.22 10:08:06.843128 [ 673 ] {e994ef9b-3fd2-40b2-a0f6-89395571a186} executeQuery: Code: 43. DB::Exception: Argument for function currentSchemas must be bool: While processing currentSchemas(1). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52920) (comment: 02788_current_schemas_function.sql) (in query: SELECT current_schemas(1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/currentSchemas.cpp:50: DB::(anonymous namespace)::FunctionCurrentSchemas::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000d9600ed in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:08:06.844127 [ 673 ] {e994ef9b-3fd2-40b2-a0f6-89395571a186} TCPHandler: Code: 43. DB::Exception: Argument for function currentSchemas must be bool: While processing currentSchemas(1). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/currentSchemas.cpp:50: DB::(anonymous namespace)::FunctionCurrentSchemas::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000d9600ed in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:08:06.851290 [ 673 ] {5858fdf0-35ba-442c-8e7e-9660a4bf3fec} executeQuery: Code: 42. DB::Exception: Number of arguments for function currentSchemas doesn't match: passed 0, should be 1: While processing currentSchemas(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52920) (comment: 02788_current_schemas_function.sql) (in query: SELECT current_schemas();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:08:06.852110 [ 673 ] {5858fdf0-35ba-442c-8e7e-9660a4bf3fec} TCPHandler: Code: 42. DB::Exception: Number of arguments for function currentSchemas doesn't match: passed 0, should be 1: While processing currentSchemas(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:08:08.168666 [ 1528 ] {326b6638-367f-404f-870f-f036d10298ee} BackupsWorker: Failed to start backup S3('http://localhost:11111/test/backups/test_jv6bnzws/use_same_s3_credentials_for_base_backup_base_inc_5_bad', 'test', '[HIDDEN]', 'foo'): Code: 42. DB::Exception: Backup S3 requires 1 or 3 arguments: url, [access_key_id, secret_access_key]. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [77]) @ 0x000000000bc42d7e in /usr/bin/clickhouse 6. /build/src/Backups/registerBackupEngineS3.cpp:79: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b34c759 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bebd in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34be3d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdfd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdc5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b2ab63e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa75d in /usr/bin/clickhouse 13. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa401 in /usr/bin/clickhouse 14. /build/src/Backups/BackupsWorker.cpp:392: DB::BackupsWorker::doBackup(std::shared_ptr const&, String const&, String const&, DB::BackupInfo const&, DB::BackupSettings, std::shared_ptr, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001b293d7c in /usr/bin/clickhouse 15. /build/src/Backups/BackupsWorker.cpp:304: DB::BackupsWorker::startMakingBackup(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001b291fe4 in /usr/bin/clickhouse 16. /build/src/Backups/BackupsWorker.cpp:235: DB::BackupsWorker::start(std::shared_ptr const&, std::shared_ptr) @ 0x000000001b291745 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterBackupQuery.cpp:39: DB::InterpreterBackupQuery::execute() @ 0x000000001ca820a1 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:08:08.169941 [ 1528 ] {326b6638-367f-404f-870f-f036d10298ee} executeQuery: Code: 42. DB::Exception: Backup S3 requires 1 or 3 arguments: url, [access_key_id, secret_access_key]. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47432) (comment: 02843_backup_use_same_s3_credentials_for_base_backup.sh) (in query: BACKUP TABLE data TO S3('http://localhost:11111/test/backups/test_jv6bnzws/use_same_s3_credentials_for_base_backup_base_inc_5_bad', 'test', '[HIDDEN]', 'foo') SETTINGS base_backup = S3('http://localhost:11111/test/backups/test_jv6bnzws/use_same_s3_credentials_for_base_backup_base_inc_1', 'test', '[HIDDEN]'), use_same_s3_credentials_for_base_backup = 1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [77]) @ 0x000000000bc42d7e in /usr/bin/clickhouse 6. /build/src/Backups/registerBackupEngineS3.cpp:79: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b34c759 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bebd in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34be3d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdfd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdc5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b2ab63e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa75d in /usr/bin/clickhouse 13. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa401 in /usr/bin/clickhouse 14. /build/src/Backups/BackupsWorker.cpp:392: DB::BackupsWorker::doBackup(std::shared_ptr const&, String const&, String const&, DB::BackupInfo const&, DB::BackupSettings, std::shared_ptr, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001b293d7c in /usr/bin/clickhouse 15. /build/src/Backups/BackupsWorker.cpp:304: DB::BackupsWorker::startMakingBackup(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001b291fe4 in /usr/bin/clickhouse 16. /build/src/Backups/BackupsWorker.cpp:235: DB::BackupsWorker::start(std::shared_ptr const&, std::shared_ptr) @ 0x000000001b291745 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterBackupQuery.cpp:39: DB::InterpreterBackupQuery::execute() @ 0x000000001ca820a1 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:08:08.171664 [ 1528 ] {326b6638-367f-404f-870f-f036d10298ee} TCPHandler: Code: 42. DB::Exception: Backup S3 requires 1 or 3 arguments: url, [access_key_id, secret_access_key]. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [77]) @ 0x000000000bc42d7e in /usr/bin/clickhouse 6. /build/src/Backups/registerBackupEngineS3.cpp:79: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b34c759 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bebd in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b34be3d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdfd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b34bdc5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b2ab63e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa75d in /usr/bin/clickhouse 13. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa401 in /usr/bin/clickhouse 14. /build/src/Backups/BackupsWorker.cpp:392: DB::BackupsWorker::doBackup(std::shared_ptr const&, String const&, String const&, DB::BackupInfo const&, DB::BackupSettings, std::shared_ptr, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001b293d7c in /usr/bin/clickhouse 15. /build/src/Backups/BackupsWorker.cpp:304: DB::BackupsWorker::startMakingBackup(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001b291fe4 in /usr/bin/clickhouse 16. /build/src/Backups/BackupsWorker.cpp:235: DB::BackupsWorker::start(std::shared_ptr const&, std::shared_ptr) @ 0x000000001b291745 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterBackupQuery.cpp:39: DB::InterpreterBackupQuery::execute() @ 0x000000001ca820a1 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:08:11.349354 [ 1528 ] {fb913bec-9925-4026-bf94-2575d8ec2301} executeQuery: Code: 6. DB::Exception: Cannot parse ignore_data_skipping_indices (''). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47468) (comment: 02771_ignore_data_skipping_indices.sql) (in query: SELECT * FROM data_02771 SETTINGS ignore_data_skipping_indices='';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1310: DB::buildIndexes(std::optional&, std::shared_ptr, DB::MergeTreeData const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&) @ 0x000000001eea3c7e in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1348: DB::ReadFromMergeTree::applyFilters() @ 0x000000001eea2d5d in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:205: DB::QueryPlanOptimizations::optimizeTreeThirdPass(DB::QueryPlan&, DB::QueryPlan::Node&, std::list>&) @ 0x000000001ef2e768 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/QueryPlan.cpp:484: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001ee7c631 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/QueryPlan.cpp:169: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c137 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:08:11.350361 [ 1528 ] {fb913bec-9925-4026-bf94-2575d8ec2301} TCPHandler: Code: 6. DB::Exception: Cannot parse ignore_data_skipping_indices (''). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1310: DB::buildIndexes(std::optional&, std::shared_ptr, DB::MergeTreeData const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&) @ 0x000000001eea3c7e in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1348: DB::ReadFromMergeTree::applyFilters() @ 0x000000001eea2d5d in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:205: DB::QueryPlanOptimizations::optimizeTreeThirdPass(DB::QueryPlan&, DB::QueryPlan::Node&, std::list>&) @ 0x000000001ef2e768 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/QueryPlan.cpp:484: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001ee7c631 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/QueryPlan.cpp:169: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c137 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:08:11.554787 [ 1528 ] {9f7b3467-bcf8-41e2-8553-cb0a166fe24b} executeQuery: Code: 277. DB::Exception: Index `xy_idx` is not used and setting 'force_data_skipping_indices' contains it. (INDEX_NOT_USED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47468) (comment: 02771_ignore_data_skipping_indices.sql) (in query: SELECT * FROM data_02771 WHERE x = 1 AND y = 1 SETTINGS ignore_data_skipping_indices='xy_idx',force_data_skipping_indices='xy_idx' ;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:930: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool) @ 0x000000001dfb616b in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1493: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea55a1 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1373: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea2a33 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001eea274d in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1677: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001eea79ec in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1785: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8a5b in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 24. ? @ 0x00007f1a0debbac3 in ? 25. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:08:11.555724 [ 1528 ] {9f7b3467-bcf8-41e2-8553-cb0a166fe24b} TCPHandler: Code: 277. DB::Exception: Index `xy_idx` is not used and setting 'force_data_skipping_indices' contains it. (INDEX_NOT_USED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:930: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool) @ 0x000000001dfb616b in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1493: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea55a1 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1373: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea2a33 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001eea274d in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1677: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001eea79ec in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1785: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8a5b in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 24. ? @ 0x00007f1a0debbac3 in ? 25. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:08:11.771347 [ 672 ] {376f5d01-c295-48f6-bab2-13f86c50a00e} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected '\t' before: '\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "" is not like UInt32 : While executing TabSeparatedRowInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47506) (comment: 02771_tsv_csv_custom_skip_trailing_empty_lines.sql) (in query: select * from format(TSV, 'x UInt32, y UInt32', '1\t2\n\n') settings input_format_tsv_skip_trailing_empty_lines=0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/TabSeparatedRowInputFormat.cpp:88: DB::TabSeparatedFormatReader::skipFieldDelimiter() @ 0x000000001eb3a8c1 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7ee173 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e6fb081 in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFormat.cpp:87: DB::TableFunctionFormat::parseData(DB::ColumnsDescription, std::shared_ptr) const @ 0x000000001a9dbc1a in /usr/bin/clickhouse 20. /build/src/TableFunctions/TableFunctionFormat.cpp:101: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9dbf05 in /usr/bin/clickhouse 21. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 22. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 23. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:08:11.772548 [ 672 ] {376f5d01-c295-48f6-bab2-13f86c50a00e} TCPHandler: Code: 27. DB::ParsingException: Cannot parse input: expected '\t' before: '\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "" is not like UInt32 : While executing TabSeparatedRowInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/TabSeparatedRowInputFormat.cpp:88: DB::TabSeparatedFormatReader::skipFieldDelimiter() @ 0x000000001eb3a8c1 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7ee173 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e6fb081 in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFormat.cpp:87: DB::TableFunctionFormat::parseData(DB::ColumnsDescription, std::shared_ptr) const @ 0x000000001a9dbc1a in /usr/bin/clickhouse 20. /build/src/TableFunctions/TableFunctionFormat.cpp:101: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9dbf05 in /usr/bin/clickhouse 21. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 22. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 23. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:08:12.113719 [ 672 ] {300aa542-480a-4dba-a0e9-60720ae58e81} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected '\t' before: '\n1\t2\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "12" is not like UInt32 : While executing TabSeparatedRowInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47506) (comment: 02771_tsv_csv_custom_skip_trailing_empty_lines.sql) (in query: select * from format(TSV, 'x UInt32, y UInt32', '1\t2\n\n1\t2\n') settings input_format_tsv_skip_trailing_empty_lines=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/TabSeparatedRowInputFormat.cpp:88: DB::TabSeparatedFormatReader::skipFieldDelimiter() @ 0x000000001eb3a8c1 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7ee173 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e6fb081 in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFormat.cpp:87: DB::TableFunctionFormat::parseData(DB::ColumnsDescription, std::shared_ptr) const @ 0x000000001a9dbc1a in /usr/bin/clickhouse 20. /build/src/TableFunctions/TableFunctionFormat.cpp:101: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9dbf05 in /usr/bin/clickhouse 21. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 22. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 23. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:08:12.114624 [ 672 ] {300aa542-480a-4dba-a0e9-60720ae58e81} TCPHandler: Code: 27. DB::ParsingException: Cannot parse input: expected '\t' before: '\n1\t2\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "12" is not like UInt32 : While executing TabSeparatedRowInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/TabSeparatedRowInputFormat.cpp:88: DB::TabSeparatedFormatReader::skipFieldDelimiter() @ 0x000000001eb3a8c1 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7ee173 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e6fb081 in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFormat.cpp:87: DB::TableFunctionFormat::parseData(DB::ColumnsDescription, std::shared_ptr) const @ 0x000000001a9dbc1a in /usr/bin/clickhouse 20. /build/src/TableFunctions/TableFunctionFormat.cpp:101: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9dbf05 in /usr/bin/clickhouse 21. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 22. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 23. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:08:12.275146 [ 672 ] {990be589-01ac-42da-bec4-6f624f2d51c7} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "" is not like UInt32 : While executing CSVRowInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47506) (comment: 02771_tsv_csv_custom_skip_trailing_empty_lines.sql) (in query: select * from format(CSV, 'x UInt32, y UInt32', '1,2\n\n') settings input_format_csv_skip_trailing_empty_lines=0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e822708 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7ee173 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e6fb081 in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFormat.cpp:87: DB::TableFunctionFormat::parseData(DB::ColumnsDescription, std::shared_ptr) const @ 0x000000001a9dbc1a in /usr/bin/clickhouse 20. /build/src/TableFunctions/TableFunctionFormat.cpp:101: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9dbf05 in /usr/bin/clickhouse 21. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 22. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 23. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:08:12.275997 [ 672 ] {990be589-01ac-42da-bec4-6f624f2d51c7} TCPHandler: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "" is not like UInt32 : While executing CSVRowInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e822708 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7ee173 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e6fb081 in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFormat.cpp:87: DB::TableFunctionFormat::parseData(DB::ColumnsDescription, std::shared_ptr) const @ 0x000000001a9dbc1a in /usr/bin/clickhouse 20. /build/src/TableFunctions/TableFunctionFormat.cpp:101: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9dbf05 in /usr/bin/clickhouse 21. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 22. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 23. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:08:12.301376 [ 672 ] {f5197a08-33b3-412e-afa8-b1ecc28433fd} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n1,2\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "1,2" is not like UInt32 : While executing CSVRowInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47506) (comment: 02771_tsv_csv_custom_skip_trailing_empty_lines.sql) (in query: select * from format(CSV, 'x UInt32, y UInt32', '1,2\n\n1,2\n') settings input_format_csv_skip_trailing_empty_lines=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e822708 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7ee173 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e6fb081 in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFormat.cpp:87: DB::TableFunctionFormat::parseData(DB::ColumnsDescription, std::shared_ptr) const @ 0x000000001a9dbc1a in /usr/bin/clickhouse 20. /build/src/TableFunctions/TableFunctionFormat.cpp:101: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9dbf05 in /usr/bin/clickhouse 21. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 22. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 23. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:08:12.302144 [ 672 ] {f5197a08-33b3-412e-afa8-b1ecc28433fd} TCPHandler: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n1,2\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "1,2" is not like UInt32 : While executing CSVRowInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e822708 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7ee173 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e6fb081 in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFormat.cpp:87: DB::TableFunctionFormat::parseData(DB::ColumnsDescription, std::shared_ptr) const @ 0x000000001a9dbc1a in /usr/bin/clickhouse 20. /build/src/TableFunctions/TableFunctionFormat.cpp:101: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9dbf05 in /usr/bin/clickhouse 21. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 22. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 23. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:08:12.456383 [ 672 ] {39103ead-bda9-4928-bf09-ff335db7834d} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected '\t' before: '\n\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "" is not like UInt32 : While executing CustomSeparatedRowInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47506) (comment: 02771_tsv_csv_custom_skip_trailing_empty_lines.sql) (in query: select * from format(CustomSeparated, 'x UInt32, y UInt32', '1\t2\n\n\n') settings input_format_custom_skip_trailing_empty_lines=0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.cpp:129: DB::assertString(char const*, DB::ReadBuffer&) @ 0x00000000139845f5 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:215: DB::assertString(String const&, DB::ReadBuffer&) @ 0x000000001ba6e385 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/CustomSeparatedRowInputFormat.cpp:126: DB::CustomSeparatedFormatReader::skipFieldDelimiter() @ 0x000000001e8919bb in /usr/bin/clickhouse 10. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7ee173 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e6fb081 in /usr/bin/clickhouse 20. /build/src/TableFunctions/TableFunctionFormat.cpp:87: DB::TableFunctionFormat::parseData(DB::ColumnsDescription, std::shared_ptr) const @ 0x000000001a9dbc1a in /usr/bin/clickhouse 21. /build/src/TableFunctions/TableFunctionFormat.cpp:101: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9dbf05 in /usr/bin/clickhouse 22. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 23. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 24. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 2024.10.22 10:08:12.643474 [ 672 ] {39103ead-bda9-4928-bf09-ff335db7834d} TCPHandler: Code: 27. DB::ParsingException: Cannot parse input: expected '\t' before: '\n\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "" is not like UInt32 : While executing CustomSeparatedRowInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.cpp:129: DB::assertString(char const*, DB::ReadBuffer&) @ 0x00000000139845f5 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:215: DB::assertString(String const&, DB::ReadBuffer&) @ 0x000000001ba6e385 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/CustomSeparatedRowInputFormat.cpp:126: DB::CustomSeparatedFormatReader::skipFieldDelimiter() @ 0x000000001e8919bb in /usr/bin/clickhouse 10. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7ee173 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e6fb081 in /usr/bin/clickhouse 20. /build/src/TableFunctions/TableFunctionFormat.cpp:87: DB::TableFunctionFormat::parseData(DB::ColumnsDescription, std::shared_ptr) const @ 0x000000001a9dbc1a in /usr/bin/clickhouse 21. /build/src/TableFunctions/TableFunctionFormat.cpp:101: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9dbf05 in /usr/bin/clickhouse 22. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 23. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 24. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 2024.10.22 10:08:12.643589 [ 1528 ] {edc4d907-f6d3-4779-b23b-dc07a80a0f8b} BackupsWorker: Failed to start backup Disk('default', 'test_jv6bnzws/backup_2'): Code: 36. DB::Exception: use_same_s3_credentials_for_base_backup supported only for S3, got Disk('default', 'test_jv6bnzws/backup_2'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Backups/BackupInfo.cpp:108: DB::BackupInfo::copyS3CredentialsTo(DB::BackupInfo&) const @ 0x000000001b28f15c in /usr/bin/clickhouse 7. /build/src/Backups/BackupImpl.cpp:172: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b34fee0 in /usr/bin/clickhouse 8. /build/src/Backups/BackupImpl.cpp:127: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr const&, std::optional, DB::UUIDTag>> const&, bool, bool) @ 0x000000001b3506ed in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&, std::shared_ptr const&, std::optional, DB::UUIDTag>> const&, bool const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&, std::shared_ptr const&, std::optional, DB::UUIDTag>> const&, bool const&, bool const&) @ 0x000000001b3ceb6d in /usr/bin/clickhouse 10. /build/src/Backups/registerBackupEnginesFileAndDisk.cpp:189: DB::registerBackupEnginesFileAndDisk(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b3cd2e1 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEnginesFileAndDisk(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b3cc67d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEnginesFileAndDisk(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b3cc5fd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b3cc5bd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b3cc585 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b2ab63e in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa75d in /usr/bin/clickhouse 17. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa401 in /usr/bin/clickhouse 18. /build/src/Backups/BackupsWorker.cpp:392: DB::BackupsWorker::doBackup(std::shared_ptr const&, String const&, String const&, DB::BackupInfo const&, DB::BackupSettings, std::shared_ptr, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001b293d7c in /usr/bin/clickhouse 19. /build/src/Backups/BackupsWorker.cpp:304: DB::BackupsWorker::startMakingBackup(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001b291fe4 in /usr/bin/clickhouse 20. /build/src/Backups/BackupsWorker.cpp:235: DB::BackupsWorker::start(std::shared_ptr const&, std::shared_ptr) @ 0x000000001b291745 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterBackupQuery.cpp:39: DB::InterpreterBackupQuery::execute() @ 0x000000001ca820a1 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:08:12.645002 [ 1528 ] {edc4d907-f6d3-4779-b23b-dc07a80a0f8b} executeQuery: Code: 36. DB::Exception: use_same_s3_credentials_for_base_backup supported only for S3, got Disk('default', 'test_jv6bnzws/backup_2'). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47510) (comment: 02843_backup_use_same_s3_credentials_for_base_backup.sh) (in query: BACKUP TABLE data TO Disk('default', 'test_jv6bnzws/backup_2') SETTINGS use_same_s3_credentials_for_base_backup=1, base_backup=Disk('default', 'test_jv6bnzws/backup_1')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Backups/BackupInfo.cpp:108: DB::BackupInfo::copyS3CredentialsTo(DB::BackupInfo&) const @ 0x000000001b28f15c in /usr/bin/clickhouse 7. /build/src/Backups/BackupImpl.cpp:172: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b34fee0 in /usr/bin/clickhouse 8. /build/src/Backups/BackupImpl.cpp:127: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr const&, std::optional, DB::UUIDTag>> const&, bool, bool) @ 0x000000001b3506ed in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&, std::shared_ptr const&, std::optional, DB::UUIDTag>> const&, bool const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&, std::shared_ptr const&, std::optional, DB::UUIDTag>> const&, bool const&, bool const&) @ 0x000000001b3ceb6d in /usr/bin/clickhouse 10. /build/src/Backups/registerBackupEnginesFileAndDisk.cpp:189: DB::registerBackupEnginesFileAndDisk(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b3cd2e1 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEnginesFileAndDisk(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b3cc67d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEnginesFileAndDisk(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b3cc5fd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b3cc5bd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b3cc585 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b2ab63e in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa75d in /usr/bin/clickhouse 17. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa401 in /usr/bin/clickhouse 18. /build/src/Backups/BackupsWorker.cpp:392: DB::BackupsWorker::doBackup(std::shared_ptr const&, String const&, String const&, DB::BackupInfo const&, DB::BackupSettings, std::shared_ptr, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001b293d7c in /usr/bin/clickhouse 19. /build/src/Backups/BackupsWorker.cpp:304: DB::BackupsWorker::startMakingBackup(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001b291fe4 in /usr/bin/clickhouse 20. /build/src/Backups/BackupsWorker.cpp:235: DB::BackupsWorker::start(std::shared_ptr const&, std::shared_ptr) @ 0x000000001b291745 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterBackupQuery.cpp:39: DB::InterpreterBackupQuery::execute() @ 0x000000001ca820a1 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:08:12.647283 [ 1528 ] {edc4d907-f6d3-4779-b23b-dc07a80a0f8b} TCPHandler: Code: 36. DB::Exception: use_same_s3_credentials_for_base_backup supported only for S3, got Disk('default', 'test_jv6bnzws/backup_2'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Backups/BackupInfo.cpp:108: DB::BackupInfo::copyS3CredentialsTo(DB::BackupInfo&) const @ 0x000000001b28f15c in /usr/bin/clickhouse 7. /build/src/Backups/BackupImpl.cpp:172: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b34fee0 in /usr/bin/clickhouse 8. /build/src/Backups/BackupImpl.cpp:127: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr const&, std::optional, DB::UUIDTag>> const&, bool, bool) @ 0x000000001b3506ed in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&, std::shared_ptr const&, std::optional, DB::UUIDTag>> const&, bool const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&, std::shared_ptr const&, std::optional, DB::UUIDTag>> const&, bool const&, bool const&) @ 0x000000001b3ceb6d in /usr/bin/clickhouse 10. /build/src/Backups/registerBackupEnginesFileAndDisk.cpp:189: DB::registerBackupEnginesFileAndDisk(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b3cd2e1 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEnginesFileAndDisk(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b3cc67d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEnginesFileAndDisk(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b3cc5fd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b3cc5bd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b3cc585 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b2ab63e in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa75d in /usr/bin/clickhouse 17. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b2aa401 in /usr/bin/clickhouse 18. /build/src/Backups/BackupsWorker.cpp:392: DB::BackupsWorker::doBackup(std::shared_ptr const&, String const&, String const&, DB::BackupInfo const&, DB::BackupSettings, std::shared_ptr, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001b293d7c in /usr/bin/clickhouse 19. /build/src/Backups/BackupsWorker.cpp:304: DB::BackupsWorker::startMakingBackup(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001b291fe4 in /usr/bin/clickhouse 20. /build/src/Backups/BackupsWorker.cpp:235: DB::BackupsWorker::start(std::shared_ptr const&, std::shared_ptr) @ 0x000000001b291745 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterBackupQuery.cpp:39: DB::InterpreterBackupQuery::execute() @ 0x000000001ca820a1 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:08:12.688452 [ 672 ] {8bfd7ba8-ef78-4da9-9f50-54cd9966c3d0} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected '\t' before: '\n\n1\t2\n\n\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "12" is not like UInt32 : While executing CustomSeparatedRowInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47506) (comment: 02771_tsv_csv_custom_skip_trailing_empty_lines.sql) (in query: select * from format(CustomSeparated, 'x UInt32, y UInt32', '1\t2\n\n\n1\t2\n\n\n') settings input_format_custom_skip_trailing_empty_lines=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.cpp:129: DB::assertString(char const*, DB::ReadBuffer&) @ 0x00000000139845f5 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:215: DB::assertString(String const&, DB::ReadBuffer&) @ 0x000000001ba6e385 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/CustomSeparatedRowInputFormat.cpp:126: DB::CustomSeparatedFormatReader::skipFieldDelimiter() @ 0x000000001e8919bb in /usr/bin/clickhouse 10. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7ee173 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e6fb081 in /usr/bin/clickhouse 20. /build/src/TableFunctions/TableFunctionFormat.cpp:87: DB::TableFunctionFormat::parseData(DB::ColumnsDescription, std::shared_ptr) const @ 0x000000001a9dbc1a in /usr/bin/clickhouse 21. /build/src/TableFunctions/TableFunctionFormat.cpp:101: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9dbf05 in /usr/bin/clickhouse 22. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 23. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 24. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 2024.10.22 10:08:12.689817 [ 672 ] {8bfd7ba8-ef78-4da9-9f50-54cd9966c3d0} TCPHandler: Code: 27. DB::ParsingException: Cannot parse input: expected '\t' before: '\n\n1\t2\n\n\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "12" is not like UInt32 : While executing CustomSeparatedRowInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.cpp:129: DB::assertString(char const*, DB::ReadBuffer&) @ 0x00000000139845f5 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:215: DB::assertString(String const&, DB::ReadBuffer&) @ 0x000000001ba6e385 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/CustomSeparatedRowInputFormat.cpp:126: DB::CustomSeparatedFormatReader::skipFieldDelimiter() @ 0x000000001e8919bb in /usr/bin/clickhouse 10. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7ee173 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e6fb081 in /usr/bin/clickhouse 20. /build/src/TableFunctions/TableFunctionFormat.cpp:87: DB::TableFunctionFormat::parseData(DB::ColumnsDescription, std::shared_ptr) const @ 0x000000001a9dbc1a in /usr/bin/clickhouse 21. /build/src/TableFunctions/TableFunctionFormat.cpp:101: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9dbf05 in /usr/bin/clickhouse 22. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 23. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 24. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 2024.10.22 10:08:16.479184 [ 672 ] {57099a35-e969-4e52-a9ee-96deccc3a301} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'n' of function space, expected Integer, got String: While processing space('abc'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47598) (comment: 02752_space_function.sql) (in query: SELECT space('abc');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/space.cpp:51: DB::(anonymous namespace)::FunctionSpace::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012551ff2 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:08:16.480065 [ 672 ] {57099a35-e969-4e52-a9ee-96deccc3a301} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'n' of function space, expected Integer, got String: While processing space('abc'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/space.cpp:51: DB::(anonymous namespace)::FunctionSpace::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012551ff2 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:08:16.488278 [ 672 ] {5f846a02-1751-4e30-88ed-d48ef6900f75} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'n' of function space, expected Integer, got Array(String): While processing space(['abc']). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47598) (comment: 02752_space_function.sql) (in query: SELECT space(['abc']);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/space.cpp:51: DB::(anonymous namespace)::FunctionSpace::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012551ff2 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:08:16.489052 [ 672 ] {5f846a02-1751-4e30-88ed-d48ef6900f75} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'n' of function space, expected Integer, got Array(String): While processing space(['abc']). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/space.cpp:51: DB::(anonymous namespace)::FunctionSpace::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012551ff2 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:08:16.496536 [ 672 ] {a63904e7-e4a8-46ed-b336-37e2aa81278a} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'n' of function space, expected Integer, got String: While processing space('abc'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47598) (comment: 02752_space_function.sql) (in query: SELECT space(('abc'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/space.cpp:51: DB::(anonymous namespace)::FunctionSpace::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012551ff2 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:08:16.497309 [ 672 ] {a63904e7-e4a8-46ed-b336-37e2aa81278a} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'n' of function space, expected Integer, got String: While processing space('abc'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/space.cpp:51: DB::(anonymous namespace)::FunctionSpace::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012551ff2 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:08:16.620886 [ 672 ] {e438b08c-2e76-4343-8d44-707783533fcb} executeQuery: Code: 131. DB::Exception: Too many times to repeat (18011680617995229494), maximum is: 1000000: While processing space(CAST('30303030303030303030303030303030', 'UInt64')). (TOO_LARGE_STRING_SIZE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47598) (comment: 02752_space_function.sql) (in query: SELECT space(30303030303030303030303030303030::UInt64);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long const&) @ 0x000000000c4b5e8c in /usr/bin/clickhouse 6. /build/src/Functions/space.cpp:34: DB::(anonymous namespace)::FunctionSpace::checkRepeatTime(unsigned long) @ 0x0000000012554118 in /usr/bin/clickhouse 7. /build/src/Functions/space.cpp:72: bool DB::(anonymous namespace)::FunctionSpace::executeConstant>(COW::immutable_ptr, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) const @ 0x0000000012552777 in /usr/bin/clickhouse 8. /build/src/Functions/space.cpp:149: DB::(anonymous namespace)::FunctionSpace::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001255129c in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:08:16.622052 [ 672 ] {e438b08c-2e76-4343-8d44-707783533fcb} TCPHandler: Code: 131. DB::Exception: Too many times to repeat (18011680617995229494), maximum is: 1000000: While processing space(CAST('30303030303030303030303030303030', 'UInt64')). (TOO_LARGE_STRING_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long const&) @ 0x000000000c4b5e8c in /usr/bin/clickhouse 6. /build/src/Functions/space.cpp:34: DB::(anonymous namespace)::FunctionSpace::checkRepeatTime(unsigned long) @ 0x0000000012554118 in /usr/bin/clickhouse 7. /build/src/Functions/space.cpp:72: bool DB::(anonymous namespace)::FunctionSpace::executeConstant>(COW::immutable_ptr, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) const @ 0x0000000012552777 in /usr/bin/clickhouse 8. /build/src/Functions/space.cpp:149: DB::(anonymous namespace)::FunctionSpace::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001255129c in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:08:26.991409 [ 1132 ] {c732e8ed-02d2-4c2b-8eb0-149b19dfdb4d} executeQuery: Code: 36. DB::Exception: Absolute path in the 'output_format_schema' setting is prohibited: /tmp/schema.capnp. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45114) (comment: 02817_structure_to_schema.sh) (in query: insert into function file('02817_structure_to_schema_test_thi1ipsh-data', CapnProto) select * from numbers(10) settings output_format_schema='/tmp/schema.capnp'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Formats/FormatSchemaInfo.cpp:130: DB::MaybeAutogeneratedFormatSchemaInfo::MaybeAutogeneratedFormatSchemaInfo(DB::FormatSettings const&, String const&, DB::Block const&, bool) @ 0x000000001e88d419 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/CapnProtoRowOutputFormat.cpp:58: DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e88ff98 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval())) std::__invoke[abi:v15000](DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e88feed in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e88fe8d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e88fe2d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::__call_impl (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>>(std::__function::__policy_storage const*, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e88fdd5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e687b2e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e67eb8d in /usr/bin/clickhouse 14. /build/src/Formats/FormatFactory.cpp:475: DB::FormatFactory::getOutputFormat(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e675c93 in /usr/bin/clickhouse 15. /build/src/Formats/FormatFactory.cpp:451: DB::FormatFactory::getOutputFormatParallelIfPossible(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e6755d8 in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1574: DB::StorageFileSink::initialize() @ 0x000000001d6baf0d in /usr/bin/clickhouse 17. /build/src/Storages/StorageFile.cpp:1553: DB::StorageFileSink::StorageFileSink(std::shared_ptr const&, String const&, std::unique_lock&&, int, bool, String, String const&, DB::CompressionMethod, std::optional const&, String, std::shared_ptr, int) @ 0x000000001d6bc7b4 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFileSink* std::construct_at[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, DB::StorageFileSink*>(DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc3f7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void, void>(std::allocator&, DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc242 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&>(std::allocator, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc134 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::allocator const&, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bbf9f in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6aeb88 in /usr/bin/clickhouse 23. /build/src/Storages/StorageFile.cpp:1813: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d6a68d2 in /usr/bin/clickhouse 24. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece579a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca86d7b in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 10:08:26.993426 [ 1132 ] {c732e8ed-02d2-4c2b-8eb0-149b19dfdb4d} TCPHandler: Code: 36. DB::Exception: Absolute path in the 'output_format_schema' setting is prohibited: /tmp/schema.capnp. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Formats/FormatSchemaInfo.cpp:130: DB::MaybeAutogeneratedFormatSchemaInfo::MaybeAutogeneratedFormatSchemaInfo(DB::FormatSettings const&, String const&, DB::Block const&, bool) @ 0x000000001e88d419 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/CapnProtoRowOutputFormat.cpp:58: DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e88ff98 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval())) std::__invoke[abi:v15000](DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e88feed in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e88fe8d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e88fe2d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::__call_impl (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>>(std::__function::__policy_storage const*, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e88fdd5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e687b2e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e67eb8d in /usr/bin/clickhouse 14. /build/src/Formats/FormatFactory.cpp:475: DB::FormatFactory::getOutputFormat(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e675c93 in /usr/bin/clickhouse 15. /build/src/Formats/FormatFactory.cpp:451: DB::FormatFactory::getOutputFormatParallelIfPossible(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e6755d8 in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1574: DB::StorageFileSink::initialize() @ 0x000000001d6baf0d in /usr/bin/clickhouse 17. /build/src/Storages/StorageFile.cpp:1553: DB::StorageFileSink::StorageFileSink(std::shared_ptr const&, String const&, std::unique_lock&&, int, bool, String, String const&, DB::CompressionMethod, std::optional const&, String, std::shared_ptr, int) @ 0x000000001d6bc7b4 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFileSink* std::construct_at[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, DB::StorageFileSink*>(DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc3f7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void, void>(std::allocator&, DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc242 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&>(std::allocator, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc134 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::allocator const&, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bbf9f in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6aeb88 in /usr/bin/clickhouse 23. /build/src/Storages/StorageFile.cpp:1813: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d6a68d2 in /usr/bin/clickhouse 24. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece579a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca86d7b in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 10:08:29.213495 [ 1162 ] {3abe3b1c-454c-4373-afd4-edd8923d47d3} executeQuery: Code: 36. DB::Exception: Path in the 'format_schema' setting shouldn't go outside the 'format_schema_path' directory: /var/lib/clickhouse/format_schemas/ (../../schema.capnp not in /var/lib/clickhouse/format_schemas/). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45166) (comment: 02817_structure_to_schema.sh) (in query: insert into function file('02817_structure_to_schema_test_thi1ipsh-data', CapnProto) select * from numbers(10) settings output_format_schema='../../schema.capnp'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Formats/FormatSchemaInfo.cpp:135: DB::MaybeAutogeneratedFormatSchemaInfo::MaybeAutogeneratedFormatSchemaInfo(DB::FormatSettings const&, String const&, DB::Block const&, bool) @ 0x000000001e88d7f1 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/CapnProtoRowOutputFormat.cpp:58: DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e88ff98 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval())) std::__invoke[abi:v15000](DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e88feed in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e88fe8d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e88fe2d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::__call_impl (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>>(std::__function::__policy_storage const*, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e88fdd5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e687b2e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e67eb8d in /usr/bin/clickhouse 14. /build/src/Formats/FormatFactory.cpp:475: DB::FormatFactory::getOutputFormat(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e675c93 in /usr/bin/clickhouse 15. /build/src/Formats/FormatFactory.cpp:451: DB::FormatFactory::getOutputFormatParallelIfPossible(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e6755d8 in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1574: DB::StorageFileSink::initialize() @ 0x000000001d6baf0d in /usr/bin/clickhouse 17. /build/src/Storages/StorageFile.cpp:1553: DB::StorageFileSink::StorageFileSink(std::shared_ptr const&, String const&, std::unique_lock&&, int, bool, String, String const&, DB::CompressionMethod, std::optional const&, String, std::shared_ptr, int) @ 0x000000001d6bc7b4 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFileSink* std::construct_at[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, DB::StorageFileSink*>(DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc3f7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void, void>(std::allocator&, DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc242 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&>(std::allocator, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc134 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::allocator const&, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bbf9f in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6aeb88 in /usr/bin/clickhouse 23. /build/src/Storages/StorageFile.cpp:1813: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d6a68d2 in /usr/bin/clickhouse 24. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece579a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca86d7b in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 10:08:29.216011 [ 1162 ] {3abe3b1c-454c-4373-afd4-edd8923d47d3} TCPHandler: Code: 36. DB::Exception: Path in the 'format_schema' setting shouldn't go outside the 'format_schema_path' directory: /var/lib/clickhouse/format_schemas/ (../../schema.capnp not in /var/lib/clickhouse/format_schemas/). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Formats/FormatSchemaInfo.cpp:135: DB::MaybeAutogeneratedFormatSchemaInfo::MaybeAutogeneratedFormatSchemaInfo(DB::FormatSettings const&, String const&, DB::Block const&, bool) @ 0x000000001e88d7f1 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/CapnProtoRowOutputFormat.cpp:58: DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e88ff98 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval())) std::__invoke[abi:v15000](DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e88feed in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e88fe8d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e88fe2d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::__call_impl (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>>(std::__function::__policy_storage const*, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e88fdd5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e687b2e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e67eb8d in /usr/bin/clickhouse 14. /build/src/Formats/FormatFactory.cpp:475: DB::FormatFactory::getOutputFormat(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e675c93 in /usr/bin/clickhouse 15. /build/src/Formats/FormatFactory.cpp:451: DB::FormatFactory::getOutputFormatParallelIfPossible(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e6755d8 in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1574: DB::StorageFileSink::initialize() @ 0x000000001d6baf0d in /usr/bin/clickhouse 17. /build/src/Storages/StorageFile.cpp:1553: DB::StorageFileSink::StorageFileSink(std::shared_ptr const&, String const&, std::unique_lock&&, int, bool, String, String const&, DB::CompressionMethod, std::optional const&, String, std::shared_ptr, int) @ 0x000000001d6bc7b4 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFileSink* std::construct_at[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, DB::StorageFileSink*>(DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc3f7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void, void>(std::allocator&, DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc242 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&>(std::allocator, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc134 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::allocator const&, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bbf9f in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6aeb88 in /usr/bin/clickhouse 23. /build/src/Storages/StorageFile.cpp:1813: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d6a68d2 in /usr/bin/clickhouse 24. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece579a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca86d7b in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 10:08:32.842767 [ 672 ] {d789b302-8c1b-4c6a-9260-3466dd1bd68a} executeQuery: Code: 117. DB::Exception: Incorrect state of aggregate function 'nothing', it should contain exactly one zero byte, while it is 1.: While processing CAST('\0', 'AggregateFunction(nothingArrayIf, Array(Nullable(Nothing)), Nullable(Nothing))'). (INCORRECT_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45262) (comment: 02731_nothing_deserialization.sql) (in query: SELECT CAST('\x01\x00' AS AggregateFunction(nothingArrayIf, Array(Nullable(Nothing)), Nullable(Nothing)));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned int&&) @ 0x000000001787acb3 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionNothing.h:78: DB::AggregateFunctionNothing::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017879cbd in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionArray.h:159: DB::AggregateFunctionArray::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017ad1703 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionIf.h:181: DB::AggregateFunctionIf::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017ab3103 in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionNull.h:177: DB::AggregateFunctionNullBase>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017aca453 in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 11. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 2024.10.22 10:08:32.843770 [ 672 ] {d789b302-8c1b-4c6a-9260-3466dd1bd68a} TCPHandler: Code: 117. DB::Exception: Incorrect state of aggregate function 'nothing', it should contain exactly one zero byte, while it is 1.: While processing CAST('\0', 'AggregateFunction(nothingArrayIf, Array(Nullable(Nothing)), Nullable(Nothing))'). (INCORRECT_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned int&&) @ 0x000000001787acb3 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionNothing.h:78: DB::AggregateFunctionNothing::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017879cbd in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionArray.h:159: DB::AggregateFunctionArray::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017ad1703 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionIf.h:181: DB::AggregateFunctionIf::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017ab3103 in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionNull.h:177: DB::AggregateFunctionNullBase>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017aca453 in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 11. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 2024.10.22 10:08:33.913930 [ 672 ] {bcc60bf9-d9ac-403a-88e1-789c91ef8201} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45274) (in query: select _path, _file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:08:33.914702 [ 672 ] {bcc60bf9-d9ac-403a-88e1-789c91ef8201} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:08:37.819511 [ 672 ] {c5529f43-5d40-4965-aa47-62e2e367d82f} executeQuery: Code: 130. DB::Exception: Array does not start with '[' character: value Hello cannot be parsed as Array(String) for query parameter 'x'. (CANNOT_READ_ARRAY_FROM_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45060) (comment: 02723_param_exception_message_context.sh) (in query: SELECT {x:Array(String)}), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [40]) @ 0x000000000b20ad1e in /usr/bin/clickhouse 6. /build/src/DataTypes/Serializations/SerializationArray.cpp:435: void DB::deserializeTextImpl(DB::IColumn&, DB::ReadBuffer&, DB::SerializationArray::deserializeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&, bool) const::$_0&&, bool) @ 0x000000001ba329b2 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationArray.cpp:499: DB::SerializationArray::deserializeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&, bool) const @ 0x000000001ba327d2 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SimpleTextSerialization.h:42: DB::SimpleTextSerialization::deserializeTextEscaped(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000000b1a3694 in /usr/bin/clickhouse 9. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:95: DB::ReplaceQueryParameterVisitor::visitQueryParameter(std::shared_ptr&) @ 0x000000001d09745c in /usr/bin/clickhouse 10. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:38: DB::ReplaceQueryParameterVisitor::visit(std::shared_ptr&) @ 0x000000001d097085 in /usr/bin/clickhouse 11. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:57: DB::ReplaceQueryParameterVisitor::visitChildren(std::shared_ptr&) @ 0x000000001d097d33 in /usr/bin/clickhouse 12. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:46: DB::ReplaceQueryParameterVisitor::visit(std::shared_ptr&) @ 0x000000001d09717b in /usr/bin/clickhouse 13. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:57: DB::ReplaceQueryParameterVisitor::visitChildren(std::shared_ptr&) @ 0x000000001d097d33 in /usr/bin/clickhouse 14. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:46: DB::ReplaceQueryParameterVisitor::visit(std::shared_ptr&) @ 0x000000001d09717b in /usr/bin/clickhouse 15. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:57: DB::ReplaceQueryParameterVisitor::visitChildren(std::shared_ptr&) @ 0x000000001d097d33 in /usr/bin/clickhouse 16. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:46: DB::ReplaceQueryParameterVisitor::visit(std::shared_ptr&) @ 0x000000001d09717b in /usr/bin/clickhouse 17. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:57: DB::ReplaceQueryParameterVisitor::visitChildren(std::shared_ptr&) @ 0x000000001d097d33 in /usr/bin/clickhouse 18. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:46: DB::ReplaceQueryParameterVisitor::visit(std::shared_ptr&) @ 0x000000001d09717b in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:731: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b16a8 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:08:37.828575 [ 672 ] {c5529f43-5d40-4965-aa47-62e2e367d82f} TCPHandler: Code: 130. DB::Exception: Array does not start with '[' character: value Hello cannot be parsed as Array(String) for query parameter 'x'. (CANNOT_READ_ARRAY_FROM_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [40]) @ 0x000000000b20ad1e in /usr/bin/clickhouse 6. /build/src/DataTypes/Serializations/SerializationArray.cpp:435: void DB::deserializeTextImpl(DB::IColumn&, DB::ReadBuffer&, DB::SerializationArray::deserializeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&, bool) const::$_0&&, bool) @ 0x000000001ba329b2 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationArray.cpp:499: DB::SerializationArray::deserializeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&, bool) const @ 0x000000001ba327d2 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SimpleTextSerialization.h:42: DB::SimpleTextSerialization::deserializeTextEscaped(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000000b1a3694 in /usr/bin/clickhouse 9. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:95: DB::ReplaceQueryParameterVisitor::visitQueryParameter(std::shared_ptr&) @ 0x000000001d09745c in /usr/bin/clickhouse 10. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:38: DB::ReplaceQueryParameterVisitor::visit(std::shared_ptr&) @ 0x000000001d097085 in /usr/bin/clickhouse 11. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:57: DB::ReplaceQueryParameterVisitor::visitChildren(std::shared_ptr&) @ 0x000000001d097d33 in /usr/bin/clickhouse 12. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:46: DB::ReplaceQueryParameterVisitor::visit(std::shared_ptr&) @ 0x000000001d09717b in /usr/bin/clickhouse 13. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:57: DB::ReplaceQueryParameterVisitor::visitChildren(std::shared_ptr&) @ 0x000000001d097d33 in /usr/bin/clickhouse 14. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:46: DB::ReplaceQueryParameterVisitor::visit(std::shared_ptr&) @ 0x000000001d09717b in /usr/bin/clickhouse 15. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:57: DB::ReplaceQueryParameterVisitor::visitChildren(std::shared_ptr&) @ 0x000000001d097d33 in /usr/bin/clickhouse 16. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:46: DB::ReplaceQueryParameterVisitor::visit(std::shared_ptr&) @ 0x000000001d09717b in /usr/bin/clickhouse 17. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:57: DB::ReplaceQueryParameterVisitor::visitChildren(std::shared_ptr&) @ 0x000000001d097d33 in /usr/bin/clickhouse 18. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:46: DB::ReplaceQueryParameterVisitor::visit(std::shared_ptr&) @ 0x000000001d09717b in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:731: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b16a8 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:08:42.857066 [ 1132 ] {c90a832f-47ef-494a-beff-16e5d3f3369b} executeQuery: Code: 253. DB::Exception: Replica /clickhouse/tables/test_gjlf330f/test/replicas/replica-41c214b2-a693-4efe-9c0c-e01fb092c06d already exists. (REPLICA_ALREADY_EXISTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45120) (comment: 02711_server_uuid_macro.sql) (in query: CREATE TABLE test2 (`x` UInt8) ENGINE = ReplicatedMergeTree('/clickhouse/tables/{database}/test', 'replica-{server_uuid}') ORDER BY x SETTINGS index_granularity = 7081, min_bytes_for_wide_part = 116215588, ratio_of_defaults_for_sparse_serialization = 0., merge_max_block_size = 11989, prefer_fetch_merged_part_size_threshold = 7411770492, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 61, min_merge_bytes_to_use_direct_io = 10737418240, index_granularity_bytes = 23996242, allow_vertical_merges_from_compact_to_wide_parts = true, marks_compress_block_size = 32325, primary_key_compress_block_size = 88939), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:933: DB::StorageReplicatedMergeTree::createReplica(std::shared_ptr const&) @ 0x000000001d808d52 in /usr/bin/clickhouse 7. /build/src/Storages/StorageReplicatedMergeTree.cpp:529: DB::StorageReplicatedMergeTree::StorageReplicatedMergeTree(String const&, String const&, bool, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, DB::RenamingRestrictions, bool) @ 0x000000001d8015c5 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageReplicatedMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::RenamingRestrictions&, bool&, DB::StorageReplicatedMergeTree*>(DB::StorageReplicatedMergeTree*, String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&, DB::RenamingRestrictions&, bool&) @ 0x000000001e361ea0 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::RenamingRestrictions&, bool&, void, void>(std::allocator&, DB::StorageReplicatedMergeTree*, String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&, DB::RenamingRestrictions&, bool&) @ 0x000000001e361b51 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::RenamingRestrictions&, bool&>(std::allocator, String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&, DB::RenamingRestrictions&, bool&) @ 0x000000001e361792 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::RenamingRestrictions&, bool&, void>(std::allocator const&, String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&, DB::RenamingRestrictions&, bool&) @ 0x000000001e361540 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::RenamingRestrictions&, bool&, void>(String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&, DB::RenamingRestrictions&, bool&) @ 0x000000001e3606fc in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:692: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35e970 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 20. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 2024.10.22 10:08:42.858312 [ 1132 ] {c90a832f-47ef-494a-beff-16e5d3f3369b} TCPHandler: Code: 253. DB::Exception: Replica /clickhouse/tables/test_gjlf330f/test/replicas/replica-41c214b2-a693-4efe-9c0c-e01fb092c06d already exists. (REPLICA_ALREADY_EXISTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:933: DB::StorageReplicatedMergeTree::createReplica(std::shared_ptr const&) @ 0x000000001d808d52 in /usr/bin/clickhouse 7. /build/src/Storages/StorageReplicatedMergeTree.cpp:529: DB::StorageReplicatedMergeTree::StorageReplicatedMergeTree(String const&, String const&, bool, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, DB::RenamingRestrictions, bool) @ 0x000000001d8015c5 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageReplicatedMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::RenamingRestrictions&, bool&, DB::StorageReplicatedMergeTree*>(DB::StorageReplicatedMergeTree*, String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&, DB::RenamingRestrictions&, bool&) @ 0x000000001e361ea0 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::RenamingRestrictions&, bool&, void, void>(std::allocator&, DB::StorageReplicatedMergeTree*, String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&, DB::RenamingRestrictions&, bool&) @ 0x000000001e361b51 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::RenamingRestrictions&, bool&>(std::allocator, String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&, DB::RenamingRestrictions&, bool&) @ 0x000000001e361792 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::RenamingRestrictions&, bool&, void>(std::allocator const&, String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&, DB::RenamingRestrictions&, bool&) @ 0x000000001e361540 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::RenamingRestrictions&, bool&, void>(String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&, DB::RenamingRestrictions&, bool&) @ 0x000000001e3606fc in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:692: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35e970 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 20. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 2024.10.22 10:08:43.012724 [ 1132 ] {b8037b9d-573e-409c-9932-f134d06f62c8} executeQuery: Code: 139. DB::Exception: No macro server_uuid in config: While processing getMacro('server_uuid'). (NO_ELEMENTS_IN_CONFIG) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45120) (comment: 02711_server_uuid_macro.sql) (in query: -- The macro {server_uuid} is special, not a configuration-type macro. It's normal that it is inaccessible with the getMacro function. SELECT getMacro('server_uuid');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Common/Macros.cpp:157: DB::Macros::getValue(String const&) const @ 0x00000000138f92bb in /usr/bin/clickhouse 7. /build/src/Functions/getMacro.cpp:76: DB::(anonymous namespace)::FunctionGetMacro::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e488a5f in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:08:43.013874 [ 1132 ] {b8037b9d-573e-409c-9932-f134d06f62c8} TCPHandler: Code: 139. DB::Exception: No macro server_uuid in config: While processing getMacro('server_uuid'). (NO_ELEMENTS_IN_CONFIG), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Common/Macros.cpp:157: DB::Macros::getValue(String const&) const @ 0x00000000138f92bb in /usr/bin/clickhouse 7. /build/src/Functions/getMacro.cpp:76: DB::(anonymous namespace)::FunctionGetMacro::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e488a5f in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:08:44.348697 [ 1132 ] {72bf09ed-0c5c-4c74-a299-56d72528ad30} ~StorageFileSource: Failed to rename file /var/lib/clickhouse/user_files/02732_rename_after_processing_test_lb3hucfo/tmp5.csv: File /var/lib/clickhouse/user_files/02732_rename_after_processing_test_lb3hucfo/tmp.csv already exists 2024.10.22 10:08:46.305046 [ 1674 ] {cb5e5ff5-4ff4-4094-b466-788580a675e6} ~StorageFileSource: Failed to rename file /var/lib/clickhouse/user_files/02732_rename_after_processing_test_lb3hucfo/tmp5.csv: File `/var/lib/clickhouse/tmp5.csv` is not inside `/var/lib/clickhouse/user_files/` 2024.10.22 10:08:46.521056 [ 6848 ] {99878d77-9fb6-44dc-b615-33d4a0ab0e59} executeQuery: Code: 215. DB::Exception: Column c is not under aggregate function and not in GROUP BY keys. In query SELECT a, sum(b) FROM (SELECT 1 AS a, 1 AS b, 0 AS c) GROUP BY a HAVING c SETTINGS allow_experimental_analyzer = 1. (NOT_AN_AGGREGATE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45224) (comment: 02701_invalid_having_NOT_AN_AGGREGATE.sql) (in query: SELECT a, sum(b) FROM (SELECT 1 AS a, 1 AS b, 0 AS c) GROUP BY a HAVING c SETTINGS allow_experimental_analyzer=1 -- { serverError NOT_AN_AGGREGATE } ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Analyzer/ValidationUtils.cpp:118: DB::(anonymous namespace)::ValidateGroupByColumnsVisitor::visitImpl(std::shared_ptr const&) @ 0x000000001c99f98b in /usr/bin/clickhouse 7. /build/src/Analyzer/InDepthQueryTreeVisitor.h:61: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001c99edd6 in /usr/bin/clickhouse 8. /build/src/Analyzer/ValidationUtils.cpp:264: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001c99eae5 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7140: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c9204fc in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 12. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:08:46.522177 [ 6848 ] {99878d77-9fb6-44dc-b615-33d4a0ab0e59} TCPHandler: Code: 215. DB::Exception: Column c is not under aggregate function and not in GROUP BY keys. In query SELECT a, sum(b) FROM (SELECT 1 AS a, 1 AS b, 0 AS c) GROUP BY a HAVING c SETTINGS allow_experimental_analyzer = 1. (NOT_AN_AGGREGATE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Analyzer/ValidationUtils.cpp:118: DB::(anonymous namespace)::ValidateGroupByColumnsVisitor::visitImpl(std::shared_ptr const&) @ 0x000000001c99f98b in /usr/bin/clickhouse 7. /build/src/Analyzer/InDepthQueryTreeVisitor.h:61: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001c99edd6 in /usr/bin/clickhouse 8. /build/src/Analyzer/ValidationUtils.cpp:264: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001c99eae5 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7140: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c9204fc in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 12. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:08:48.334817 [ 5625 ] {8ebf2936-313f-4c37-b432-7f2994429873} executeQuery: Code: 36. DB::Exception: Invalid renaming rule: Allowed placeholders only %a, %f, %e, %t, and %%. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43048) (comment: 02732_rename_after_processing.sh) (in query: SELECT COUNT(*) FROM file('02732_rename_after_processing_test_lb3hucfo/tmp5.csv')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [72]) @ 0x000000000d92021e in /usr/bin/clickhouse 6. /build/src/Common/FileRenamer.cpp:77: DB::FileRenamer::validateRenamingRule(String const&, bool) @ 0x000000001d6bdda3 in /usr/bin/clickhouse 7. /build/src/Common/FileRenamer.cpp:30: DB::FileRenamer::FileRenamer(String const&) @ 0x000000001d6bdcaf in /usr/bin/clickhouse 8. /build/src/Storages/StorageFile.cpp:888: DB::StorageFile::StorageFile(String const&, String const&, DB::StorageFile::CommonArguments) @ 0x000000001d6a4009 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFile* std::construct_at[abi:v15000](DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e794 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e6d1 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e657 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String const&, String, DB::StorageFile::CommonArguments&, void>(std::allocator const&, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e56a in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97c796 in /usr/bin/clickhouse 14. /build/src/TableFunctions/TableFunctionFile.cpp:88: DB::TableFunctionFile::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a97bf27 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9806c7 in /usr/bin/clickhouse 16. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 17. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 18. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:08:48.336646 [ 5625 ] {8ebf2936-313f-4c37-b432-7f2994429873} TCPHandler: Code: 36. DB::Exception: Invalid renaming rule: Allowed placeholders only %a, %f, %e, %t, and %%. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [72]) @ 0x000000000d92021e in /usr/bin/clickhouse 6. /build/src/Common/FileRenamer.cpp:77: DB::FileRenamer::validateRenamingRule(String const&, bool) @ 0x000000001d6bdda3 in /usr/bin/clickhouse 7. /build/src/Common/FileRenamer.cpp:30: DB::FileRenamer::FileRenamer(String const&) @ 0x000000001d6bdcaf in /usr/bin/clickhouse 8. /build/src/Storages/StorageFile.cpp:888: DB::StorageFile::StorageFile(String const&, String const&, DB::StorageFile::CommonArguments) @ 0x000000001d6a4009 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFile* std::construct_at[abi:v15000](DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e794 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e6d1 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e657 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String const&, String, DB::StorageFile::CommonArguments&, void>(std::allocator const&, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e56a in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97c796 in /usr/bin/clickhouse 14. /build/src/TableFunctions/TableFunctionFile.cpp:88: DB::TableFunctionFile::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a97bf27 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9806c7 in /usr/bin/clickhouse 16. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 17. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 18. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:08:50.460226 [ 1132 ] {423d02f4-6564-45ac-bce5-b9074af7b0b0} executeQuery: Code: 36. DB::Exception: Invalid renaming rule: Odd number of consecutive percentage signs. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43072) (comment: 02732_rename_after_processing.sh) (in query: SELECT COUNT(*) FROM file('02732_rename_after_processing_test_lb3hucfo/tmp5.csv')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [66]) @ 0x000000000d72cdfe in /usr/bin/clickhouse 6. /build/src/Common/FileRenamer.cpp:90: DB::FileRenamer::validateRenamingRule(String const&, bool) @ 0x000000001d6bdf60 in /usr/bin/clickhouse 7. /build/src/Common/FileRenamer.cpp:30: DB::FileRenamer::FileRenamer(String const&) @ 0x000000001d6bdcaf in /usr/bin/clickhouse 8. /build/src/Storages/StorageFile.cpp:888: DB::StorageFile::StorageFile(String const&, String const&, DB::StorageFile::CommonArguments) @ 0x000000001d6a4009 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFile* std::construct_at[abi:v15000](DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e794 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e6d1 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e657 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String const&, String, DB::StorageFile::CommonArguments&, void>(std::allocator const&, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e56a in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97c796 in /usr/bin/clickhouse 14. /build/src/TableFunctions/TableFunctionFile.cpp:88: DB::TableFunctionFile::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a97bf27 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9806c7 in /usr/bin/clickhouse 16. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 17. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 18. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:08:50.462309 [ 1132 ] {423d02f4-6564-45ac-bce5-b9074af7b0b0} TCPHandler: Code: 36. DB::Exception: Invalid renaming rule: Odd number of consecutive percentage signs. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [66]) @ 0x000000000d72cdfe in /usr/bin/clickhouse 6. /build/src/Common/FileRenamer.cpp:90: DB::FileRenamer::validateRenamingRule(String const&, bool) @ 0x000000001d6bdf60 in /usr/bin/clickhouse 7. /build/src/Common/FileRenamer.cpp:30: DB::FileRenamer::FileRenamer(String const&) @ 0x000000001d6bdcaf in /usr/bin/clickhouse 8. /build/src/Storages/StorageFile.cpp:888: DB::StorageFile::StorageFile(String const&, String const&, DB::StorageFile::CommonArguments) @ 0x000000001d6a4009 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFile* std::construct_at[abi:v15000](DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e794 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e6d1 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e657 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String const&, String, DB::StorageFile::CommonArguments&, void>(std::allocator const&, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e56a in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97c796 in /usr/bin/clickhouse 14. /build/src/TableFunctions/TableFunctionFile.cpp:88: DB::TableFunctionFile::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a97bf27 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9806c7 in /usr/bin/clickhouse 16. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 17. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 18. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:08:51.198075 [ 1674 ] {282563a8-b7e0-4087-bcf8-bf7c35b0add1} executeQuery: Code: 117. DB::Exception: Incorrect size (0) in groupBitmap.: While processing CAST('\0', 'AggregateFunction(groupBitmap, UInt32)'). (INCORRECT_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43104) (comment: 02688_aggregate_states.sql) (in query: SELECT '\x01\x00'::AggregateFunction(groupBitmap, UInt32);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [35]) @ 0x000000000b207fde in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionGroupBitmapData.h:128: _ZN2DB25RoaringBitmapWithSmallSetIjLDu32EE4readERNS_10ReadBufferE @ 0x00000000175950d2 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionGroupBitmap.h:50: DB::AggregateFunctionBitmap>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001759373b in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 2024.10.22 10:08:51.199117 [ 1674 ] {282563a8-b7e0-4087-bcf8-bf7c35b0add1} TCPHandler: Code: 117. DB::Exception: Incorrect size (0) in groupBitmap.: While processing CAST('\0', 'AggregateFunction(groupBitmap, UInt32)'). (INCORRECT_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [35]) @ 0x000000000b207fde in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionGroupBitmapData.h:128: _ZN2DB25RoaringBitmapWithSmallSetIjLDu32EE4readERNS_10ReadBufferE @ 0x00000000175950d2 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionGroupBitmap.h:50: DB::AggregateFunctionBitmap>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001759373b in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 2024.10.22 10:08:51.308568 [ 1674 ] {b03a8b83-1969-444f-a156-672b89d1edd2} executeQuery: std::exception. Code: 1001, type: std::runtime_error, e.what() = ran out of bytes (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43104) (comment: 02688_aggregate_states.sql) (in query: SELECT '\x01\x01\x01'::AggregateFunction(groupBitmap, UInt64);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/contrib/llvm-project/libcxx/src/support/runtime/stdexcept_default.ipp:35: std::runtime_error::runtime_error(char const*) @ 0x000000002887e87d in /usr/bin/clickhouse 3. /build/contrib/croaring/cpp/roaring64map.hh:1167: roaring::Roaring64Map::readSafe(char const*, unsigned long) @ 0x0000000017597e30 in /usr/bin/clickhouse 4. /build/src/AggregateFunctions/AggregateFunctionGroupBitmapData.h:137: _ZN2DB25RoaringBitmapWithSmallSetImLDu32EE4readERNS_10ReadBufferE @ 0x0000000017597aac in /usr/bin/clickhouse 5. /build/src/AggregateFunctions/AggregateFunctionGroupBitmap.h:50: DB::AggregateFunctionBitmap>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017595cbb in /usr/bin/clickhouse 6. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 2024.10.22 10:08:51.309686 [ 1674 ] {b03a8b83-1969-444f-a156-672b89d1edd2} TCPHandler: Code: 1001. DB::Exception: std::runtime_error: ran out of bytes. (STD_EXCEPTION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/contrib/llvm-project/libcxx/src/support/runtime/stdexcept_default.ipp:35: std::runtime_error::runtime_error(char const*) @ 0x000000002887e87d in /usr/bin/clickhouse 3. /build/contrib/croaring/cpp/roaring64map.hh:1167: roaring::Roaring64Map::readSafe(char const*, unsigned long) @ 0x0000000017597e30 in /usr/bin/clickhouse 4. /build/src/AggregateFunctions/AggregateFunctionGroupBitmapData.h:137: _ZN2DB25RoaringBitmapWithSmallSetImLDu32EE4readERNS_10ReadBufferE @ 0x0000000017597aac in /usr/bin/clickhouse 5. /build/src/AggregateFunctions/AggregateFunctionGroupBitmap.h:50: DB::AggregateFunctionBitmap>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017595cbb in /usr/bin/clickhouse 6. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 2024.10.22 10:08:51.420228 [ 1674 ] {671b2630-15c0-4cf7-981e-6b68ac387009} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 2. Bytes expected: 32.: While processing CAST('\0\r', 'AggregateFunction(topK, UInt256)'). (CANNOT_READ_ALL_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43104) (comment: 02688_aggregate_states.sql) (in query: SELECT '\x02\x00\x0d'::AggregateFunction(topK, UInt256);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:117: void DB::readPODBinary>(wide::integer<256ul, unsigned int>&, DB::ReadBuffer&) @ 0x0000000013dc2262 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:1099: void DB::readBinary>(wide::integer<256ul, unsigned int>&, DB::ReadBuffer&) @ 0x0000000013dc221d in /usr/bin/clickhouse 9. /build/src/Common/SpaceSaving.h:106: DB::SpaceSaving, HashCRC32>>::Counter::read(DB::ReadBuffer&) @ 0x0000000017472a41 in /usr/bin/clickhouse 10. /build/src/Common/SpaceSaving.h:294: DB::SpaceSaving, HashCRC32>>::read(DB::ReadBuffer&) @ 0x0000000017472928 in /usr/bin/clickhouse 11. /build/src/AggregateFunctions/AggregateFunctionTopK.h:92: DB::AggregateFunctionTopK, false>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017466818 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 22. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 2024.10.22 10:08:51.421319 [ 1674 ] {671b2630-15c0-4cf7-981e-6b68ac387009} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 2. Bytes expected: 32.: While processing CAST('\0\r', 'AggregateFunction(topK, UInt256)'). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:117: void DB::readPODBinary>(wide::integer<256ul, unsigned int>&, DB::ReadBuffer&) @ 0x0000000013dc2262 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:1099: void DB::readBinary>(wide::integer<256ul, unsigned int>&, DB::ReadBuffer&) @ 0x0000000013dc221d in /usr/bin/clickhouse 9. /build/src/Common/SpaceSaving.h:106: DB::SpaceSaving, HashCRC32>>::Counter::read(DB::ReadBuffer&) @ 0x0000000017472a41 in /usr/bin/clickhouse 10. /build/src/Common/SpaceSaving.h:294: DB::SpaceSaving, HashCRC32>>::read(DB::ReadBuffer&) @ 0x0000000017472928 in /usr/bin/clickhouse 11. /build/src/AggregateFunctions/AggregateFunctionTopK.h:92: DB::AggregateFunctionTopK, false>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017466818 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 22. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 2024.10.22 10:08:51.518815 [ 1674 ] {06792195-f371-4afb-b95e-8e2fc317a8a9} executeQuery: Code: 128. DB::Exception: The size of serialized hash table is suspiciously large: 4502748553425166142: While processing CAST(unhex('bebebebebebebebebebebebebebebebebebebebebebebebebebebebebebebe0c0c3131313131313131313131313173290aee00b300'), 'AggregateFunction(minDistinct, Int8)'). (TOO_LARGE_ARRAY_SIZE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43104) (comment: 02688_aggregate_states.sql) (in query: SELECT unhex('bebebebebebebebebebebebebebebebebebebebebebebebebebebebebebebe0c0c3131313131313131313131313173290aee00b300')::AggregateFunction(minDistinct, Int8);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/Common/HashTable/HashTable.h:1327: HashTable, HashTableNoState>, DefaultHash, HashTableGrower<4ul>, AllocatorWithStackMemory, 16ul, 1ul>>::read(DB::ReadBuffer&) @ 0x000000001462c77c in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionDistinct.h:47: DB::AggregateFunctionDistinctSingleNumericData::deserialize(DB::ReadBuffer&, DB::Arena*) @ 0x0000000017b1a241 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionDistinct.h:198: DB::AggregateFunctionDistinct>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017b181fb in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:08:51.519924 [ 1674 ] {06792195-f371-4afb-b95e-8e2fc317a8a9} TCPHandler: Code: 128. DB::Exception: The size of serialized hash table is suspiciously large: 4502748553425166142: While processing CAST(unhex('bebebebebebebebebebebebebebebebebebebebebebebebebebebebebebebe0c0c3131313131313131313131313173290aee00b300'), 'AggregateFunction(minDistinct, Int8)'). (TOO_LARGE_ARRAY_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/Common/HashTable/HashTable.h:1327: HashTable, HashTableNoState>, DefaultHash, HashTableGrower<4ul>, AllocatorWithStackMemory, 16ul, 1ul>>::read(DB::ReadBuffer&) @ 0x000000001462c77c in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionDistinct.h:47: DB::AggregateFunctionDistinctSingleNumericData::deserialize(DB::ReadBuffer&, DB::Arena*) @ 0x0000000017b1a241 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionDistinct.h:198: DB::AggregateFunctionDistinct>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017b181fb in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:08:51.622569 [ 1674 ] {cf6318fb-e61d-4bcd-a267-f9c04b14323a} executeQuery: Code: 117. DB::Exception: The number of elements 2816 for the 'tiny' kind of quantileTiming is exceeding the maximum of 31: While processing CAST(unhex('01000b0b0b0d0d0d0d7175616e74696c6554696d696e672c20496e743332000300'), 'AggregateFunction(quantileTiming, Int32)'). (INCORRECT_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43104) (comment: 02688_aggregate_states.sql) (in query: SELECT unhex('01000b0b0b0d0d0d0d7175616e74696c6554696d696e672c20496e743332000300')::AggregateFunction(quantileTiming, Int32);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned short&, int&&) @ 0x0000000014c0a88c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/QuantileTiming.h:90: DB::detail::QuantileTimingTiny::deserialize(DB::ReadBuffer&) @ 0x0000000014c0a3dd in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/QuantileTiming.h:714: DB::QuantileTiming::deserialize(DB::ReadBuffer&) @ 0x0000000014c22000 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:193: DB::AggregateFunctionQuantile, DB::NameQuantileTiming, false, float, false>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014c20017 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:08:51.623558 [ 1674 ] {cf6318fb-e61d-4bcd-a267-f9c04b14323a} TCPHandler: Code: 117. DB::Exception: The number of elements 2816 for the 'tiny' kind of quantileTiming is exceeding the maximum of 31: While processing CAST(unhex('01000b0b0b0d0d0d0d7175616e74696c6554696d696e672c20496e743332000300'), 'AggregateFunction(quantileTiming, Int32)'). (INCORRECT_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned short&, int&&) @ 0x0000000014c0a88c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/QuantileTiming.h:90: DB::detail::QuantileTimingTiny::deserialize(DB::ReadBuffer&) @ 0x0000000014c0a3dd in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/QuantileTiming.h:714: DB::QuantileTiming::deserialize(DB::ReadBuffer&) @ 0x0000000014c22000 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:193: DB::AggregateFunctionQuantile, DB::NameQuantileTiming, false, float, false>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014c20017 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:08:51.633690 [ 1674 ] {881ea16a-f70e-4aba-80d1-f41d0b293173} executeQuery: Code: 117. DB::Exception: The number of elements 256 for the 'tiny' kind of quantileTiming is exceeding the maximum of 31: While processing CAST(unhex('010001'), 'AggregateFunction(quantileTiming, Int32)'). (INCORRECT_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43104) (comment: 02688_aggregate_states.sql) (in query: SELECT unhex('010001')::AggregateFunction(quantileTiming, Int32);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned short&, int&&) @ 0x0000000014c0a88c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/QuantileTiming.h:90: DB::detail::QuantileTimingTiny::deserialize(DB::ReadBuffer&) @ 0x0000000014c0a3dd in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/QuantileTiming.h:714: DB::QuantileTiming::deserialize(DB::ReadBuffer&) @ 0x0000000014c22000 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:193: DB::AggregateFunctionQuantile, DB::NameQuantileTiming, false, float, false>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014c20017 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:08:51.634549 [ 1674 ] {881ea16a-f70e-4aba-80d1-f41d0b293173} TCPHandler: Code: 117. DB::Exception: The number of elements 256 for the 'tiny' kind of quantileTiming is exceeding the maximum of 31: While processing CAST(unhex('010001'), 'AggregateFunction(quantileTiming, Int32)'). (INCORRECT_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned short&, int&&) @ 0x0000000014c0a88c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/QuantileTiming.h:90: DB::detail::QuantileTimingTiny::deserialize(DB::ReadBuffer&) @ 0x0000000014c0a3dd in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/QuantileTiming.h:714: DB::QuantileTiming::deserialize(DB::ReadBuffer&) @ 0x0000000014c22000 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:193: DB::AggregateFunctionQuantile, DB::NameQuantileTiming, false, float, false>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014c20017 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:08:51.731466 [ 1674 ] {91197df5-e569-4496-b512-951ea89606dd} executeQuery: Code: 128. DB::Exception: Suspiciously large array size (8753160913407246346) in -ForEach aggregate function: While processing CAST(unhex('0a00797979797979797979790a0a6e'), 'AggregateFunction(minForEach, Ring)'). (TOO_LARGE_ARRAY_SIZE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43104) (comment: 02688_aggregate_states.sql) (in query: SELECT unhex('0a00797979797979797979790a0a6e')::AggregateFunction(minForEach, Ring);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionForEach.h:74: DB::AggregateFunctionForEach::ensureAggregateData(char*, unsigned long, DB::Arena&) const @ 0x0000000017ad68e4 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionForEach.h:262: DB::AggregateFunctionForEach::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017ad5041 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 2024.10.22 10:08:51.732538 [ 1674 ] {91197df5-e569-4496-b512-951ea89606dd} TCPHandler: Code: 128. DB::Exception: Suspiciously large array size (8753160913407246346) in -ForEach aggregate function: While processing CAST(unhex('0a00797979797979797979790a0a6e'), 'AggregateFunction(minForEach, Ring)'). (TOO_LARGE_ARRAY_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionForEach.h:74: DB::AggregateFunctionForEach::ensureAggregateData(char*, unsigned long, DB::Arena&) const @ 0x0000000017ad68e4 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionForEach.h:262: DB::AggregateFunctionForEach::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017ad5041 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 2024.10.22 10:08:52.585130 [ 6848 ] {1d61c159-9821-41b1-a56b-4192fe81500f} executeQuery: Code: 128. DB::Exception: Suspiciously many rows in Native format: 2178749300044435230: While executing Native. (TOO_LARGE_ARRAY_SIZE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43126) (comment: 02687_native_fuzz.sql) (in query: -- It correctly throws exception about incorrect data instead of a low-level exception about the allocator: SELECT * FROM format(Native, 'WatchID Int64, JavaEnable Int16, UTMCaTitle String, GoodEvent Int16, EventTime DateTime, EventDate Date, Countem String, FromTag String, HasGCLID Int16, RefererHash Int64, URLHash Int64, CLID Int16', $$ žžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžž‚Œ'ÕãûX+‚Œ'ÕãûX+‚Œ'ÕãûURLHashInt64Í|3úÐb.‹Í|3úÐb.‹Í|3úÐb.‹Í|3úÐb.‹Ž oâïòeý€ à#â\X-h³ýX vÀvÍÀ‰Çh˜´9›DÍ|3úÐb.‹CLIDInt32ä$$);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/Formats/NativeReader.cpp:144: DB::NativeReader::read() @ 0x000000001e694e7c in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/NativeFormat.cpp:42: DB::NativeInputFormat::generate() @ 0x000000001e9047d1 in /usr/bin/clickhouse 8. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 9. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 10. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e6fb081 in /usr/bin/clickhouse 16. /build/src/TableFunctions/TableFunctionFormat.cpp:87: DB::TableFunctionFormat::parseData(DB::ColumnsDescription, std::shared_ptr) const @ 0x000000001a9dbc1a in /usr/bin/clickhouse 17. /build/src/TableFunctions/TableFunctionFormat.cpp:101: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9dbf05 in /usr/bin/clickhouse 18. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 19. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 20. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:08:52.586159 [ 6848 ] {1d61c159-9821-41b1-a56b-4192fe81500f} TCPHandler: Code: 128. DB::Exception: Suspiciously many rows in Native format: 2178749300044435230: While executing Native. (TOO_LARGE_ARRAY_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/Formats/NativeReader.cpp:144: DB::NativeReader::read() @ 0x000000001e694e7c in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/NativeFormat.cpp:42: DB::NativeInputFormat::generate() @ 0x000000001e9047d1 in /usr/bin/clickhouse 8. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 9. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 10. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e6fb081 in /usr/bin/clickhouse 16. /build/src/TableFunctions/TableFunctionFormat.cpp:87: DB::TableFunctionFormat::parseData(DB::ColumnsDescription, std::shared_ptr) const @ 0x000000001a9dbc1a in /usr/bin/clickhouse 17. /build/src/TableFunctions/TableFunctionFormat.cpp:101: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9dbf05 in /usr/bin/clickhouse 18. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 19. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 20. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:08:54.894371 [ 1674 ] {cfcf72b8-36a2-4149-8d04-9718dd6db11e} executeQuery: Code: 59. DB::Exception: Illegal type Float64 of column modulo(sipHash64(sipHash64(p, toString(toDate(p))), toString(toDate(p))), -0.) for filter. Must be UInt8 or Nullable(UInt8). (ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43142) (comment: 02680_illegal_type_of_filter_projection.sql) (in query: SELECT count() FROM test_tuple PREWHERE sipHash64(sipHash64(p, toString(toDate(p))), toString(toDate(p))) % -0. WHERE i > NULL settings optimize_trivial_count_query=0, optimize_use_implicit_projections=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:91: DB::QueryPlanOptimizations::findInOutputs(DB::ActionsDAG&, String const&, bool) @ 0x000000001ef7d9b7 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:134: DB::QueryPlanOptimizations::QueryDAG::buildImpl(DB::QueryPlan::Node&, std::vector>&) @ 0x000000001ef7de1c in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:147: DB::QueryPlanOptimizations::QueryDAG::buildImpl(DB::QueryPlan::Node&, std::vector>&) @ 0x000000001ef7de96 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:147: DB::QueryPlanOptimizations::QueryDAG::buildImpl(DB::QueryPlan::Node&, std::vector>&) @ 0x000000001ef7de96 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:181: DB::QueryPlanOptimizations::QueryDAG::build(DB::QueryPlan::Node&) @ 0x000000001ef7e045 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/Optimizations/optimizeUseAggregateProjection.cpp:459: DB::QueryPlanOptimizations::getAggregateProjectionCandidates(DB::QueryPlan::Node&, DB::AggregatingStep&, DB::ReadFromMergeTree&, std::shared_ptr, std::equal_to, std::allocator>>> const&, bool) @ 0x000000001ef6b0aa in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/Optimizations/optimizeUseAggregateProjection.cpp:579: DB::QueryPlanOptimizations::optimizeUseAggregateProjections(DB::QueryPlan::Node&, std::list>&, bool) @ 0x000000001ef6c088 in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:135: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000001ef2e2c1 in /usr/bin/clickhouse 14. /build/src/Processors/QueryPlan/QueryPlan.cpp:483: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001ee7c61d in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/QueryPlan.cpp:169: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c137 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:08:54.895321 [ 1674 ] {cfcf72b8-36a2-4149-8d04-9718dd6db11e} TCPHandler: Code: 59. DB::Exception: Illegal type Float64 of column modulo(sipHash64(sipHash64(p, toString(toDate(p))), toString(toDate(p))), -0.) for filter. Must be UInt8 or Nullable(UInt8). (ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:91: DB::QueryPlanOptimizations::findInOutputs(DB::ActionsDAG&, String const&, bool) @ 0x000000001ef7d9b7 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:134: DB::QueryPlanOptimizations::QueryDAG::buildImpl(DB::QueryPlan::Node&, std::vector>&) @ 0x000000001ef7de1c in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:147: DB::QueryPlanOptimizations::QueryDAG::buildImpl(DB::QueryPlan::Node&, std::vector>&) @ 0x000000001ef7de96 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:147: DB::QueryPlanOptimizations::QueryDAG::buildImpl(DB::QueryPlan::Node&, std::vector>&) @ 0x000000001ef7de96 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:181: DB::QueryPlanOptimizations::QueryDAG::build(DB::QueryPlan::Node&) @ 0x000000001ef7e045 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/Optimizations/optimizeUseAggregateProjection.cpp:459: DB::QueryPlanOptimizations::getAggregateProjectionCandidates(DB::QueryPlan::Node&, DB::AggregatingStep&, DB::ReadFromMergeTree&, std::shared_ptr, std::equal_to, std::allocator>>> const&, bool) @ 0x000000001ef6b0aa in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/Optimizations/optimizeUseAggregateProjection.cpp:579: DB::QueryPlanOptimizations::optimizeUseAggregateProjections(DB::QueryPlan::Node&, std::list>&, bool) @ 0x000000001ef6c088 in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:135: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000001ef2e2c1 in /usr/bin/clickhouse 14. /build/src/Processors/QueryPlan/QueryPlan.cpp:483: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001ee7c61d in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/QueryPlan.cpp:169: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c137 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:09:00.800254 [ 1674 ] {ad18268e-9395-465d-b6df-e8de3f5c7520} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56932) (in query: select _path, _file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:09:00.801077 [ 1674 ] {ad18268e-9395-465d-b6df-e8de3f5c7520} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:09:00.878837 [ 5625 ] {f812795b-36c4-4fec-becb-2d2d1abc6360} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56948) (in query: select _path, _file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:09:00.880046 [ 5625 ] {f812795b-36c4-4fec-becb-2d2d1abc6360} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:09:01.080472 [ 1674 ] {179c1308-8091-4eb0-afe8-0f733f3bee2d} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56950) (in query: select _path, _file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:09:01.081418 [ 1674 ] {179c1308-8091-4eb0-afe8-0f733f3bee2d} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:09:07.834744 [ 5625 ] {49053ac1-a4d5-4cb7-b490-4b42f68235bb} executeQuery: Code: 36. DB::Exception: Absolute path in the 'output_format_schema' setting is prohibited: /tmp/schema.proto. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48140) (comment: 02817_structure_to_schema.sh) (in query: insert into function file('02817_structure_to_schema_test_thi1ipsh-data', Protobuf) select * from numbers(10) settings output_format_schema='/tmp/schema.proto'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Formats/FormatSchemaInfo.cpp:130: DB::MaybeAutogeneratedFormatSchemaInfo::MaybeAutogeneratedFormatSchemaInfo(DB::FormatSettings const&, String const&, DB::Block const&, bool) @ 0x000000001e88e5d9 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/ProtobufRowOutputFormat.cpp:63: DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001eb26a63 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval())) std::__invoke[abi:v15000](DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eb269ad in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eb2694d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eb268ed in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::__call_impl (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>>(std::__function::__policy_storage const*, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eb26895 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e687b2e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e67eb8d in /usr/bin/clickhouse 14. /build/src/Formats/FormatFactory.cpp:475: DB::FormatFactory::getOutputFormat(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e675c93 in /usr/bin/clickhouse 15. /build/src/Formats/FormatFactory.cpp:451: DB::FormatFactory::getOutputFormatParallelIfPossible(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e6755d8 in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1574: DB::StorageFileSink::initialize() @ 0x000000001d6baf0d in /usr/bin/clickhouse 17. /build/src/Storages/StorageFile.cpp:1553: DB::StorageFileSink::StorageFileSink(std::shared_ptr const&, String const&, std::unique_lock&&, int, bool, String, String const&, DB::CompressionMethod, std::optional const&, String, std::shared_ptr, int) @ 0x000000001d6bc7b4 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFileSink* std::construct_at[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, DB::StorageFileSink*>(DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc3f7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void, void>(std::allocator&, DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc242 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&>(std::allocator, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc134 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::allocator const&, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bbf9f in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6aeb88 in /usr/bin/clickhouse 23. /build/src/Storages/StorageFile.cpp:1813: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d6a68d2 in /usr/bin/clickhouse 24. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece579a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca86d7b in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 10:09:07.836753 [ 5625 ] {49053ac1-a4d5-4cb7-b490-4b42f68235bb} TCPHandler: Code: 36. DB::Exception: Absolute path in the 'output_format_schema' setting is prohibited: /tmp/schema.proto. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Formats/FormatSchemaInfo.cpp:130: DB::MaybeAutogeneratedFormatSchemaInfo::MaybeAutogeneratedFormatSchemaInfo(DB::FormatSettings const&, String const&, DB::Block const&, bool) @ 0x000000001e88e5d9 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/ProtobufRowOutputFormat.cpp:63: DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001eb26a63 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval())) std::__invoke[abi:v15000](DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eb269ad in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eb2694d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eb268ed in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::__call_impl (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>>(std::__function::__policy_storage const*, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eb26895 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e687b2e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e67eb8d in /usr/bin/clickhouse 14. /build/src/Formats/FormatFactory.cpp:475: DB::FormatFactory::getOutputFormat(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e675c93 in /usr/bin/clickhouse 15. /build/src/Formats/FormatFactory.cpp:451: DB::FormatFactory::getOutputFormatParallelIfPossible(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e6755d8 in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1574: DB::StorageFileSink::initialize() @ 0x000000001d6baf0d in /usr/bin/clickhouse 17. /build/src/Storages/StorageFile.cpp:1553: DB::StorageFileSink::StorageFileSink(std::shared_ptr const&, String const&, std::unique_lock&&, int, bool, String, String const&, DB::CompressionMethod, std::optional const&, String, std::shared_ptr, int) @ 0x000000001d6bc7b4 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFileSink* std::construct_at[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, DB::StorageFileSink*>(DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc3f7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void, void>(std::allocator&, DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc242 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&>(std::allocator, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc134 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::allocator const&, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bbf9f in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6aeb88 in /usr/bin/clickhouse 23. /build/src/Storages/StorageFile.cpp:1813: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d6a68d2 in /usr/bin/clickhouse 24. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece579a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca86d7b in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 10:09:09.940646 [ 1132 ] {4b3bda7c-f9e1-4d03-b52b-435933a7a80a} executeQuery: Code: 36. DB::Exception: Path in the 'format_schema' setting shouldn't go outside the 'format_schema_path' directory: /var/lib/clickhouse/format_schemas/ (../../schema.proto not in /var/lib/clickhouse/format_schemas/). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48236) (comment: 02817_structure_to_schema.sh) (in query: insert into function file('02817_structure_to_schema_test_thi1ipsh-data', Protobuf) select * from numbers(10) settings output_format_schema='../../schema.proto'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Formats/FormatSchemaInfo.cpp:135: DB::MaybeAutogeneratedFormatSchemaInfo::MaybeAutogeneratedFormatSchemaInfo(DB::FormatSettings const&, String const&, DB::Block const&, bool) @ 0x000000001e88e9b1 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/ProtobufRowOutputFormat.cpp:63: DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001eb26a63 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval())) std::__invoke[abi:v15000](DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eb269ad in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eb2694d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eb268ed in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::__call_impl (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>>(std::__function::__policy_storage const*, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eb26895 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e687b2e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e67eb8d in /usr/bin/clickhouse 14. /build/src/Formats/FormatFactory.cpp:475: DB::FormatFactory::getOutputFormat(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e675c93 in /usr/bin/clickhouse 15. /build/src/Formats/FormatFactory.cpp:451: DB::FormatFactory::getOutputFormatParallelIfPossible(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e6755d8 in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1574: DB::StorageFileSink::initialize() @ 0x000000001d6baf0d in /usr/bin/clickhouse 17. /build/src/Storages/StorageFile.cpp:1553: DB::StorageFileSink::StorageFileSink(std::shared_ptr const&, String const&, std::unique_lock&&, int, bool, String, String const&, DB::CompressionMethod, std::optional const&, String, std::shared_ptr, int) @ 0x000000001d6bc7b4 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFileSink* std::construct_at[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, DB::StorageFileSink*>(DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc3f7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void, void>(std::allocator&, DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc242 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&>(std::allocator, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc134 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::allocator const&, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bbf9f in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6aeb88 in /usr/bin/clickhouse 23. /build/src/Storages/StorageFile.cpp:1813: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d6a68d2 in /usr/bin/clickhouse 24. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece579a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca86d7b in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 10:09:09.942707 [ 1132 ] {4b3bda7c-f9e1-4d03-b52b-435933a7a80a} TCPHandler: Code: 36. DB::Exception: Path in the 'format_schema' setting shouldn't go outside the 'format_schema_path' directory: /var/lib/clickhouse/format_schemas/ (../../schema.proto not in /var/lib/clickhouse/format_schemas/). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Formats/FormatSchemaInfo.cpp:135: DB::MaybeAutogeneratedFormatSchemaInfo::MaybeAutogeneratedFormatSchemaInfo(DB::FormatSettings const&, String const&, DB::Block const&, bool) @ 0x000000001e88e9b1 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/ProtobufRowOutputFormat.cpp:63: DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001eb26a63 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval())) std::__invoke[abi:v15000](DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eb269ad in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eb2694d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eb268ed in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::__call_impl (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>>(std::__function::__policy_storage const*, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eb26895 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e687b2e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e67eb8d in /usr/bin/clickhouse 14. /build/src/Formats/FormatFactory.cpp:475: DB::FormatFactory::getOutputFormat(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e675c93 in /usr/bin/clickhouse 15. /build/src/Formats/FormatFactory.cpp:451: DB::FormatFactory::getOutputFormatParallelIfPossible(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e6755d8 in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1574: DB::StorageFileSink::initialize() @ 0x000000001d6baf0d in /usr/bin/clickhouse 17. /build/src/Storages/StorageFile.cpp:1553: DB::StorageFileSink::StorageFileSink(std::shared_ptr const&, String const&, std::unique_lock&&, int, bool, String, String const&, DB::CompressionMethod, std::optional const&, String, std::shared_ptr, int) @ 0x000000001d6bc7b4 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFileSink* std::construct_at[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, DB::StorageFileSink*>(DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc3f7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void, void>(std::allocator&, DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc242 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&>(std::allocator, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bc134 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::allocator const&, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6bbf9f in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6aeb88 in /usr/bin/clickhouse 23. /build/src/Storages/StorageFile.cpp:1813: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d6a68d2 in /usr/bin/clickhouse 24. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece579a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca86d7b in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 10:09:10.741456 [ 5625 ] {346842fd-16da-4da6-a64c-b5cacefc7b14} executeQuery: Code: 36. DB::Exception: Last argument (count) for function widthBucket cannot be 0.: while executing 'FUNCTION widthBucket(operand : 1, low : 2, high : 3, count : 0) -> widthBucket(operand, low, high, count) UInt64 : 4'. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48238) (comment: 02581_width_bucket.sql) (in query: -- zero is not valid for count SELECT operand, low, high, count, WIDTH_BUCKET(operand, low, high, count) FROM mytable WHERE count = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:84: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, unsigned long) const @ 0x000000001282cb1c in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned long DB::FunctionWidthBucket::calculate(double, double, double, unsigned long) const @ 0x000000001282c845 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x000000001282a230 in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:242: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000012827900 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 17. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 18. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 2024.10.22 10:09:10.742997 [ 5625 ] {346842fd-16da-4da6-a64c-b5cacefc7b14} TCPHandler: Code: 36. DB::Exception: Last argument (count) for function widthBucket cannot be 0.: while executing 'FUNCTION widthBucket(operand : 1, low : 2, high : 3, count : 0) -> widthBucket(operand, low, high, count) UInt64 : 4'. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:84: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, unsigned long) const @ 0x000000001282cb1c in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned long DB::FunctionWidthBucket::calculate(double, double, double, unsigned long) const @ 0x000000001282c845 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x000000001282a230 in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:242: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000012827900 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 17. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 18. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 2024.10.22 10:09:10.863746 [ 5625 ] {97d22627-12c5-44d7-b4b0-1f6b38591539} executeQuery: Code: 36. DB::Exception: The first three arguments (operand, low, high) cannot be NaN in function widthBucket: While processing widthBucket(0, 10, nan, 10). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48238) (comment: 02581_width_bucket.sql) (in query: -- operand, low and high cannot be NaN SELECT WIDTH_BUCKET(0, 10, NaN, 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:88: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, char8_t) const @ 0x000000001282ad2d in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned short DB::FunctionWidthBucket::calculate(double, double, double, char8_t) const @ 0x000000001282a887 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x00000000128286ca in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:236: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000128278b2 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:09:10.864679 [ 5625 ] {97d22627-12c5-44d7-b4b0-1f6b38591539} TCPHandler: Code: 36. DB::Exception: The first three arguments (operand, low, high) cannot be NaN in function widthBucket: While processing widthBucket(0, 10, nan, 10). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:88: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, char8_t) const @ 0x000000001282ad2d in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned short DB::FunctionWidthBucket::calculate(double, double, double, char8_t) const @ 0x000000001282a887 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x00000000128286ca in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:236: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000128278b2 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:09:10.875349 [ 5625 ] {68a7e90c-472b-4bab-999e-3d08a5c236dd} executeQuery: Code: 36. DB::Exception: The first three arguments (operand, low, high) cannot be NaN in function widthBucket: While processing widthBucket(nan, 0, 10, 10). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48238) (comment: 02581_width_bucket.sql) (in query: SELECT WIDTH_BUCKET(NaN, 0, 10, 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:88: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, char8_t) const @ 0x000000001282ad2d in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned short DB::FunctionWidthBucket::calculate(double, double, double, char8_t) const @ 0x000000001282a887 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x00000000128286ca in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:236: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000128278b2 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:09:10.876340 [ 5625 ] {68a7e90c-472b-4bab-999e-3d08a5c236dd} TCPHandler: Code: 36. DB::Exception: The first three arguments (operand, low, high) cannot be NaN in function widthBucket: While processing widthBucket(nan, 0, 10, 10). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:88: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, char8_t) const @ 0x000000001282ad2d in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned short DB::FunctionWidthBucket::calculate(double, double, double, char8_t) const @ 0x000000001282a887 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x00000000128286ca in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:236: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000128278b2 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:09:10.887215 [ 5625 ] {8e43748a-c266-4c56-80f7-b343251732ec} executeQuery: Code: 36. DB::Exception: The first three arguments (operand, low, high) cannot be NaN in function widthBucket: While processing widthBucket(0, nan, 10, 10). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48238) (comment: 02581_width_bucket.sql) (in query: SELECT WIDTH_BUCKET(0, NaN, 10, 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:88: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, char8_t) const @ 0x000000001282ad2d in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned short DB::FunctionWidthBucket::calculate(double, double, double, char8_t) const @ 0x000000001282a887 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x00000000128286ca in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:236: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000128278b2 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:09:10.888175 [ 5625 ] {8e43748a-c266-4c56-80f7-b343251732ec} TCPHandler: Code: 36. DB::Exception: The first three arguments (operand, low, high) cannot be NaN in function widthBucket: While processing widthBucket(0, nan, 10, 10). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:88: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, char8_t) const @ 0x000000001282ad2d in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned short DB::FunctionWidthBucket::calculate(double, double, double, char8_t) const @ 0x000000001282a887 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x00000000128286ca in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:236: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000128278b2 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:09:11.003945 [ 5625 ] {d8d59515-82ec-4951-ac45-17e24e242096} executeQuery: Code: 36. DB::Exception: The second and third arguments (low, high) cannot be Inf function widthBucket: While processing widthBucket(1, -inf, 10, 10). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48238) (comment: 02581_width_bucket.sql) (in query: -- low and high cannot be Inf SELECT WIDTH_BUCKET(1, -Inf, 10, 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:94: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, char8_t) const @ 0x000000001282ae6d in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned short DB::FunctionWidthBucket::calculate(double, double, double, char8_t) const @ 0x000000001282a887 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x00000000128286ca in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:236: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000128278b2 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:09:11.004813 [ 5625 ] {d8d59515-82ec-4951-ac45-17e24e242096} TCPHandler: Code: 36. DB::Exception: The second and third arguments (low, high) cannot be Inf function widthBucket: While processing widthBucket(1, -inf, 10, 10). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:94: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, char8_t) const @ 0x000000001282ae6d in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned short DB::FunctionWidthBucket::calculate(double, double, double, char8_t) const @ 0x000000001282a887 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x00000000128286ca in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:236: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000128278b2 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:09:11.014476 [ 5625 ] {a376f011-5ef8-460c-acd4-fde18b86ea58} executeQuery: Code: 36. DB::Exception: The second and third arguments (low, high) cannot be Inf function widthBucket: While processing widthBucket(1, 0, inf, 10). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48238) (comment: 02581_width_bucket.sql) (in query: -- low and high cannot be Inf SELECT WIDTH_BUCKET(1, 0, Inf, 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:94: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, char8_t) const @ 0x000000001282ae6d in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned short DB::FunctionWidthBucket::calculate(double, double, double, char8_t) const @ 0x000000001282a887 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x00000000128286ca in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:236: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000128278b2 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:09:11.015275 [ 5625 ] {a376f011-5ef8-460c-acd4-fde18b86ea58} TCPHandler: Code: 36. DB::Exception: The second and third arguments (low, high) cannot be Inf function widthBucket: While processing widthBucket(1, 0, inf, 10). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:94: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, char8_t) const @ 0x000000001282ae6d in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned short DB::FunctionWidthBucket::calculate(double, double, double, char8_t) const @ 0x000000001282a887 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x00000000128286ca in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:236: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000128278b2 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:09:11.300705 [ 5625 ] {281c4823-36d9-44a7-9b7f-826848bd9dfb} executeQuery: Code: 43. DB::Exception: The last argument of function widthBucket must be UInt8, UInt16, UInt32 or UInt64, found Int8.: While processing widthBucket(1, 2, 3, -1). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48238) (comment: 02581_width_bucket.sql) (in query: SELECT WIDTH_BUCKET(1, 2, 3, -1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:205: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000012827c40 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:09:11.301700 [ 5625 ] {281c4823-36d9-44a7-9b7f-826848bd9dfb} TCPHandler: Code: 43. DB::Exception: The last argument of function widthBucket must be UInt8, UInt16, UInt32 or UInt64, found Int8.: While processing widthBucket(1, 2, 3, -1). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:205: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000012827c40 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:09:11.310047 [ 5625 ] {5ff982cc-d474-441a-908f-49e9152807ff} executeQuery: Code: 43. DB::Exception: The last argument of function widthBucket must be UInt8, UInt16, UInt32 or UInt64, found Float64.: While processing widthBucket(1, 2, 3, 1.3). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48238) (comment: 02581_width_bucket.sql) (in query: SELECT WIDTH_BUCKET(1, 2, 3, 1.3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:205: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000012827c40 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:09:11.310832 [ 5625 ] {5ff982cc-d474-441a-908f-49e9152807ff} TCPHandler: Code: 43. DB::Exception: The last argument of function widthBucket must be UInt8, UInt16, UInt32 or UInt64, found Float64.: While processing widthBucket(1, 2, 3, 1.3). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:205: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000012827c40 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:09:11.446955 [ 5625 ] {3dc2d6d3-67c1-4cde-9f79-52dac40d7e88} executeQuery: Code: 43. DB::Exception: The first three arguments of function widthBucket must be a Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Float32 or Float64.: While processing widthBucket('a', 1, 2, 3). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48238) (comment: 02581_width_bucket.sql) (in query: SELECT WIDTH_BUCKET('a', 1, 2, 3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:196: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000012827a9f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:09:11.448235 [ 5625 ] {3dc2d6d3-67c1-4cde-9f79-52dac40d7e88} TCPHandler: Code: 43. DB::Exception: The first three arguments of function widthBucket must be a Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Float32 or Float64.: While processing widthBucket('a', 1, 2, 3). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:196: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000012827a9f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:09:11.458055 [ 5625 ] {610bdfbb-000e-417b-8891-420a90d2bef9} executeQuery: Code: 43. DB::Exception: The first three arguments of function widthBucket must be a Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Float32 or Float64.: While processing widthBucket(1, toUInt128(42), 2, 3). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48238) (comment: 02581_width_bucket.sql) (in query: SELECT WIDTH_BUCKET(1, toUInt128(42), 2, 3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:196: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000012827a9f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:09:11.458857 [ 5625 ] {610bdfbb-000e-417b-8891-420a90d2bef9} TCPHandler: Code: 43. DB::Exception: The first three arguments of function widthBucket must be a Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Float32 or Float64.: While processing widthBucket(1, toUInt128(42), 2, 3). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:196: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000012827a9f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:09:11.467973 [ 5625 ] {39b0e4c0-184d-4f25-822e-7ae9bee00fd3} executeQuery: Code: 43. DB::Exception: The first three arguments of function widthBucket must be a Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Float32 or Float64.: While processing widthBucket(1, 2, toInt128(42), 3). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48238) (comment: 02581_width_bucket.sql) (in query: SELECT WIDTH_BUCKET(1, 2, toInt128(42), 3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:196: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000012827a9f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:09:11.468868 [ 5625 ] {39b0e4c0-184d-4f25-822e-7ae9bee00fd3} TCPHandler: Code: 43. DB::Exception: The first three arguments of function widthBucket must be a Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Float32 or Float64.: While processing widthBucket(1, 2, toInt128(42), 3). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:196: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000012827a9f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:09:11.478184 [ 5625 ] {5a2175e0-c426-4daa-b903-eba7b25c7b4f} executeQuery: Code: 43. DB::Exception: The last argument of function widthBucket must be UInt8, UInt16, UInt32 or UInt64, found Int256.: While processing widthBucket(1, 2, 3, toInt256(42)). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48238) (comment: 02581_width_bucket.sql) (in query: SELECT WIDTH_BUCKET(1, 2, 3, toInt256(42));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:205: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000012827c40 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:09:11.479132 [ 5625 ] {5a2175e0-c426-4daa-b903-eba7b25c7b4f} TCPHandler: Code: 43. DB::Exception: The last argument of function widthBucket must be UInt8, UInt16, UInt32 or UInt64, found Int256.: While processing widthBucket(1, 2, 3, toInt256(42)). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:205: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000012827c40 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:09:15.511678 [ 5625 ] {da22a485-77ae-479e-a82f-eb25e77375a0} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'json' of function JSONArrayLength, expected String, got UInt8: While processing JSONArrayLength(2). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48356) (comment: 02568_json_array_length.sql) (in query: select JSONArrayLength(2);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/JSONArrayLength.cpp:51: DB::(anonymous namespace)::FunctionJSONArrayLength::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3e0032 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:09:15.512744 [ 5625 ] {da22a485-77ae-479e-a82f-eb25e77375a0} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'json' of function JSONArrayLength, expected String, got UInt8: While processing JSONArrayLength(2). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/JSONArrayLength.cpp:51: DB::(anonymous namespace)::FunctionJSONArrayLength::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3e0032 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:09:15.521831 [ 5625 ] {8611fbe6-5b24-494f-8577-ade493e54d6a} executeQuery: Code: 42. DB::Exception: Number of arguments for function JSONArrayLength doesn't match: passed 0, should be 1: While processing JSONArrayLength(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48356) (comment: 02568_json_array_length.sql) (in query: select JSONArrayLength();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:09:15.522994 [ 5625 ] {8611fbe6-5b24-494f-8577-ade493e54d6a} TCPHandler: Code: 42. DB::Exception: Number of arguments for function JSONArrayLength doesn't match: passed 0, should be 1: While processing JSONArrayLength(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:09:31.381724 [ 5625 ] {9251e5c2-6d38-4047-825c-50420cfc57fb} executeQuery: Code: 497. DB::Exception: user_02561_temporary_table_grants_test_ypf9buxs: Not enough privileges. To execute this query, it's necessary to have the grant CREATE TEMPORARY TABLE ON *.*. (ACCESS_DENIED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60300) (comment: 02561_temporary_table_grants.sh) (in query: CREATE TEMPORARY TABLE table_memory_02561(name String)), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:520: auto bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b04fe7e in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:560: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const @ 0x000000001b04e933 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:625: bool DB::ContextAccess::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001b0221c2 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:646: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessRightsElement const&) const @ 0x000000001b05d853 in /usr/bin/clickhouse 10. /build/src/Access/ContextAccess.cpp:667: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElement const&) const @ 0x000000001b022692 in /usr/bin/clickhouse 11. /build/src/Access/ContextAccess.cpp:675: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001b02272e in /usr/bin/clickhouse 12. /build/src/Access/ContextAccess.cpp:705: DB::ContextAccess::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001b01d75d in /usr/bin/clickhouse 13. /build/src/Interpreters/Context.cpp:1200: void DB::Context::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001bde9976 in /usr/bin/clickhouse 14. /build/src/Interpreters/Context.cpp:1214: DB::Context::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001bdc9afd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1722: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd3f8 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:09:31.384064 [ 5625 ] {9251e5c2-6d38-4047-825c-50420cfc57fb} TCPHandler: Code: 497. DB::Exception: user_02561_temporary_table_grants_test_ypf9buxs: Not enough privileges. To execute this query, it's necessary to have the grant CREATE TEMPORARY TABLE ON *.*. (ACCESS_DENIED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:520: auto bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b04fe7e in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:560: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const @ 0x000000001b04e933 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:625: bool DB::ContextAccess::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001b0221c2 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:646: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessRightsElement const&) const @ 0x000000001b05d853 in /usr/bin/clickhouse 10. /build/src/Access/ContextAccess.cpp:667: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElement const&) const @ 0x000000001b022692 in /usr/bin/clickhouse 11. /build/src/Access/ContextAccess.cpp:675: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001b02272e in /usr/bin/clickhouse 12. /build/src/Access/ContextAccess.cpp:705: DB::ContextAccess::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001b01d75d in /usr/bin/clickhouse 13. /build/src/Interpreters/Context.cpp:1200: void DB::Context::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001bde9976 in /usr/bin/clickhouse 14. /build/src/Interpreters/Context.cpp:1214: DB::Context::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001bdc9afd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1722: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd3f8 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:09:32.651906 [ 1300 ] {bba8215b-176e-458c-bef1-3db952474310} AsynchronousInsertQueue: Failed parsing for query 'INSERT INTO test_i9bolc6b.t_async_insert_bad_data FORMAT Values' with query id 113409ea-348b-494c-bebd-e610ad05d889. DB::Exception: Cannot parse expression of type String here: 'bad'string') 2024.10.22 10:09:32.790045 [ 6848 ] {113409ea-348b-494c-bebd-e610ad05d889} executeQuery: Code: 62. DB::Exception: Cannot parse expression of type String here: 'bad'string'): While executing WaitForAsyncInsert. (SYNTAX_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:53236) (comment: 02563_async_insert_bad_data.sh) (in query: INSERT INTO t_async_insert_bad_data VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity>>::type>, String&&, std::basic_string_view>&&) @ 0x00000000126afd2c in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp:433: DB::ValuesBlockInputFormat::parseExpression(DB::IColumn&, unsigned long) @ 0x000000001eb5ac66 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp:319: DB::ValuesBlockInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long) @ 0x000000001eb58fd9 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp:122: DB::ValuesBlockInputFormat::generate() @ 0x000000001eb5827e in /usr/bin/clickhouse 9. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 10. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 11. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:60: DB::StreamingFormatExecutor::execute() @ 0x000000001e701481 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:44: DB::StreamingFormatExecutor::execute(DB::ReadBuffer&) @ 0x000000001e701012 in /usr/bin/clickhouse 13. /build/src/Interpreters/AsynchronousInsertQueue.cpp:582: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd7fd5c in /usr/bin/clickhouse 14. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd824ea in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82455 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82435 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd82415 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd823e0 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 21. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a6a4e0 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 2024.10.22 10:09:32.791514 [ 6848 ] {113409ea-348b-494c-bebd-e610ad05d889} DynamicQueryHandler: Code: 62. DB::Exception: Cannot parse expression of type String here: 'bad'string'): While executing WaitForAsyncInsert. (SYNTAX_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity>>::type>, String&&, std::basic_string_view>&&) @ 0x00000000126afd2c in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp:433: DB::ValuesBlockInputFormat::parseExpression(DB::IColumn&, unsigned long) @ 0x000000001eb5ac66 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp:319: DB::ValuesBlockInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long) @ 0x000000001eb58fd9 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp:122: DB::ValuesBlockInputFormat::generate() @ 0x000000001eb5827e in /usr/bin/clickhouse 9. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 10. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 11. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:60: DB::StreamingFormatExecutor::execute() @ 0x000000001e701481 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:44: DB::StreamingFormatExecutor::execute(DB::ReadBuffer&) @ 0x000000001e701012 in /usr/bin/clickhouse 13. /build/src/Interpreters/AsynchronousInsertQueue.cpp:582: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd7fd5c in /usr/bin/clickhouse 14. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd824ea in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82455 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82435 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd82415 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd823e0 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 21. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a6a4e0 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:09:36.788120 [ 6967 ] {2d448580-80d8-444f-9102-2ea05d56aec5} executeQuery: Code: 497. DB::Exception: user_02561_temporary_table_grants_test_ypf9buxs: Not enough privileges. To execute this query, it's necessary to have the grant CREATE ARBITRARY TEMPORARY TABLE ON *.*. (ACCESS_DENIED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42464) (comment: 02561_temporary_table_grants.sh) (in query: CREATE TEMPORARY TABLE table_merge_tree_02561 (`name` String) ENGINE = MergeTree ORDER BY name SETTINGS index_granularity = 61803, min_bytes_for_wide_part = 219766238, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 20998, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 88249, vertical_merge_algorithm_min_columns_to_activate = 1, min_merge_bytes_to_use_direct_io = 3675500117, index_granularity_bytes = 25922483, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 20434, primary_key_compress_block_size = 13341), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:520: auto bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b04fe7e in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:560: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const @ 0x000000001b04e933 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:625: bool DB::ContextAccess::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001b0221c2 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:646: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessRightsElement const&) const @ 0x000000001b05d853 in /usr/bin/clickhouse 10. /build/src/Access/ContextAccess.cpp:667: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElement const&) const @ 0x000000001b022692 in /usr/bin/clickhouse 11. /build/src/Access/ContextAccess.cpp:675: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001b02272e in /usr/bin/clickhouse 12. /build/src/Access/ContextAccess.cpp:705: DB::ContextAccess::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001b01d75d in /usr/bin/clickhouse 13. /build/src/Interpreters/Context.cpp:1200: void DB::Context::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001bde9976 in /usr/bin/clickhouse 14. /build/src/Interpreters/Context.cpp:1214: DB::Context::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001bdc9afd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1722: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd3f8 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:09:36.789964 [ 6967 ] {2d448580-80d8-444f-9102-2ea05d56aec5} TCPHandler: Code: 497. DB::Exception: user_02561_temporary_table_grants_test_ypf9buxs: Not enough privileges. To execute this query, it's necessary to have the grant CREATE ARBITRARY TEMPORARY TABLE ON *.*. (ACCESS_DENIED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:520: auto bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b04fe7e in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:560: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const @ 0x000000001b04e933 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:625: bool DB::ContextAccess::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001b0221c2 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:646: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessRightsElement const&) const @ 0x000000001b05d853 in /usr/bin/clickhouse 10. /build/src/Access/ContextAccess.cpp:667: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElement const&) const @ 0x000000001b022692 in /usr/bin/clickhouse 11. /build/src/Access/ContextAccess.cpp:675: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001b02272e in /usr/bin/clickhouse 12. /build/src/Access/ContextAccess.cpp:705: DB::ContextAccess::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001b01d75d in /usr/bin/clickhouse 13. /build/src/Interpreters/Context.cpp:1200: void DB::Context::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001bde9976 in /usr/bin/clickhouse 14. /build/src/Interpreters/Context.cpp:1214: DB::Context::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001bdc9afd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1722: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd3f8 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:09:42.123184 [ 5625 ] {ed885302-4878-4773-9ece-c828c8aff714} executeQuery: Code: 497. DB::Exception: user_02561_temporary_table_grants_test_ypf9buxs: Not enough privileges. To execute this query, it's necessary to have the grant FILE ON *.*. (ACCESS_DENIED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42608) (comment: 02561_temporary_table_grants.sh) (in query: CREATE TEMPORARY TABLE table_file_02561(name String) ENGINE = File(TabSeparated)), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:520: auto bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b04fe7e in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:560: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const @ 0x000000001b04e933 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:625: bool DB::ContextAccess::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001b0221c2 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:646: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessRightsElement const&) const @ 0x000000001b05d853 in /usr/bin/clickhouse 10. /build/src/Access/ContextAccess.cpp:667: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElement const&) const @ 0x000000001b022692 in /usr/bin/clickhouse 11. /build/src/Access/ContextAccess.cpp:675: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001b02272e in /usr/bin/clickhouse 12. /build/src/Access/ContextAccess.cpp:705: DB::ContextAccess::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001b01d75d in /usr/bin/clickhouse 13. /build/src/Interpreters/Context.cpp:1200: void DB::Context::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001bde9976 in /usr/bin/clickhouse 14. /build/src/Interpreters/Context.cpp:1214: DB::Context::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001bdc9afd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1722: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd3f8 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:09:42.124848 [ 5625 ] {ed885302-4878-4773-9ece-c828c8aff714} TCPHandler: Code: 497. DB::Exception: user_02561_temporary_table_grants_test_ypf9buxs: Not enough privileges. To execute this query, it's necessary to have the grant FILE ON *.*. (ACCESS_DENIED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:520: auto bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b04fe7e in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:560: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const @ 0x000000001b04e933 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:625: bool DB::ContextAccess::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001b0221c2 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:646: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessRightsElement const&) const @ 0x000000001b05d853 in /usr/bin/clickhouse 10. /build/src/Access/ContextAccess.cpp:667: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElement const&) const @ 0x000000001b022692 in /usr/bin/clickhouse 11. /build/src/Access/ContextAccess.cpp:675: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001b02272e in /usr/bin/clickhouse 12. /build/src/Access/ContextAccess.cpp:705: DB::ContextAccess::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001b01d75d in /usr/bin/clickhouse 13. /build/src/Interpreters/Context.cpp:1200: void DB::Context::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001bde9976 in /usr/bin/clickhouse 14. /build/src/Interpreters/Context.cpp:1214: DB::Context::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001bdc9afd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1722: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd3f8 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:09:47.428956 [ 6967 ] {f98a3a4b-e6db-49a1-966d-ba60301884c8} executeQuery: Code: 497. DB::Exception: user_02561_temporary_table_grants_test_ypf9buxs: Not enough privileges. To execute this query, it's necessary to have the grant URL ON *.*. (ACCESS_DENIED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51512) (comment: 02561_temporary_table_grants.sh) (in query: CREATE TEMPORARY TABLE table_url_02561(name String) ENGINE = URL('http://127.0.0.1:8123?query=select+12', 'RawBLOB')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:520: auto bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b04fe7e in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:560: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const @ 0x000000001b04e933 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:625: bool DB::ContextAccess::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001b0221c2 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:646: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessRightsElement const&) const @ 0x000000001b05d853 in /usr/bin/clickhouse 10. /build/src/Access/ContextAccess.cpp:667: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElement const&) const @ 0x000000001b022692 in /usr/bin/clickhouse 11. /build/src/Access/ContextAccess.cpp:675: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001b02272e in /usr/bin/clickhouse 12. /build/src/Access/ContextAccess.cpp:705: DB::ContextAccess::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001b01d75d in /usr/bin/clickhouse 13. /build/src/Interpreters/Context.cpp:1200: void DB::Context::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001bde9976 in /usr/bin/clickhouse 14. /build/src/Interpreters/Context.cpp:1214: DB::Context::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001bdc9afd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1722: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd3f8 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:09:47.430445 [ 6967 ] {f98a3a4b-e6db-49a1-966d-ba60301884c8} TCPHandler: Code: 497. DB::Exception: user_02561_temporary_table_grants_test_ypf9buxs: Not enough privileges. To execute this query, it's necessary to have the grant URL ON *.*. (ACCESS_DENIED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:520: auto bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b04fe7e in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:560: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const @ 0x000000001b04e933 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:625: bool DB::ContextAccess::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001b0221c2 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:646: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessRightsElement const&) const @ 0x000000001b05d853 in /usr/bin/clickhouse 10. /build/src/Access/ContextAccess.cpp:667: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElement const&) const @ 0x000000001b022692 in /usr/bin/clickhouse 11. /build/src/Access/ContextAccess.cpp:675: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001b02272e in /usr/bin/clickhouse 12. /build/src/Access/ContextAccess.cpp:705: DB::ContextAccess::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001b01d75d in /usr/bin/clickhouse 13. /build/src/Interpreters/Context.cpp:1200: void DB::Context::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001bde9976 in /usr/bin/clickhouse 14. /build/src/Interpreters/Context.cpp:1214: DB::Context::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001bdc9afd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1722: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd3f8 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:09:49.733882 [ 6967 ] {a869eb96-51e1-4dcd-8bd9-226d0c55594d} executeQuery: Code: 471. DB::Exception: Could not specify `disk` and `storage_policy` at the same time for storage Log Family. (INVALID_SETTING_VALUE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51572) (comment: 02554_log_faminy_support_storage_policy.sql) (in query: CREATE TABLE test_2554_error (n UInt32) ENGINE = Log SETTINGS disk = 'default', storage_policy = 'default';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [86]) @ 0x000000000f200c9e in /usr/bin/clickhouse 6. /build/src/Storages/StorageLogSettings.cpp:27: DB::getDiskName(DB::ASTStorage&, std::shared_ptr) @ 0x000000001da77471 in /usr/bin/clickhouse 7. /build/src/Storages/StorageLog.cpp:1113: DB::registerStorageLog(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001da5f09e in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageLog(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da5ef3d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageLog(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da5eedd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001da5ee9d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001da5ee65 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 14. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:09:49.734685 [ 6967 ] {a869eb96-51e1-4dcd-8bd9-226d0c55594d} TCPHandler: Code: 471. DB::Exception: Could not specify `disk` and `storage_policy` at the same time for storage Log Family. (INVALID_SETTING_VALUE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [86]) @ 0x000000000f200c9e in /usr/bin/clickhouse 6. /build/src/Storages/StorageLogSettings.cpp:27: DB::getDiskName(DB::ASTStorage&, std::shared_ptr) @ 0x000000001da77471 in /usr/bin/clickhouse 7. /build/src/Storages/StorageLog.cpp:1113: DB::registerStorageLog(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001da5f09e in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageLog(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da5ef3d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageLog(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da5eedd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001da5ee9d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001da5ee65 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 14. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:09:54.904793 [ 1139 ] {eea0b20a-aa92-473b-8210-99f1c5cf25ed} executeQuery: Code: 36. DB::Exception: Primary key or secondary index contains a duplicate expression. To suppress this exception, rerun the command with setting 'allow_suspicious_indices = 1'. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51744) (comment: 02540_duplicate_primary_key2.sql) (in query: CREATE TABLE test (`timestamp` DateTime, `latitude` Nullable(Float32) CODEC(Gorilla, ZSTD(1)), `longitude` Nullable(Float32) CODEC(Gorilla, ZSTD(1)), `xxxx1` LowCardinality(UInt8), `xxxx2` LowCardinality(Nullable(Int16)), `xxxx3` LowCardinality(Nullable(Int16)), `xxxx4` Nullable(Int32), `xxxx5` LowCardinality(Nullable(Int32)), `xxxx6` Nullable(Int32), `xxxx7` Nullable(Int32), `xxxx8` LowCardinality(Int32), `xxxx9` LowCardinality(Nullable(Int16)), `xxxx10` LowCardinality(Nullable(Int16)), `xxxx11` LowCardinality(Nullable(Int16)), `xxxx12` LowCardinality(String), `xxxx13` Nullable(Float32), `xxxx14` LowCardinality(String), `xxxx15` LowCardinality(Nullable(String)), `xxxx16` LowCardinality(String), `xxxx17` LowCardinality(String), `xxxx18` FixedString(19), `xxxx19` FixedString(17), `xxxx20` LowCardinality(UInt8), `xxxx21` LowCardinality(Nullable(Int16)), `xxxx22` LowCardinality(Nullable(Int16)), `xxxx23` LowCardinality(Nullable(Int16)), `xxxx24` LowCardinality(Nullable(Int16)), `xxxx25` LowCardinality(Nullable(Int16)), `xxxx26` LowCardinality(Nullable(Int16)), `xxxx27` Nullable(Float32), `xxxx28` LowCardinality(Nullable(String)), `xxxx29` LowCardinality(String), `xxxx30` LowCardinality(String), `xxxx31` LowCardinality(Nullable(String)), `xxxx32` UInt64, PROJECTION cumsum_projection_simple (SELECT xxxx1, toStartOfInterval(timestamp, toIntervalMonth(1)), toStartOfWeek(timestamp, 8), toStartOfInterval(timestamp, toIntervalDay(1)), xxxx17, xxxx16, xxxx14, xxxx9, xxxx10, xxxx21, xxxx22, xxxx11, sum(multiIf(xxxx21 IS NULL, 0, 1)), sum(multiIf(xxxx22 IS NULL, 0, 1)), sum(multiIf(xxxx23 IS NULL, 0, 1)), max(toStartOfInterval(timestamp, toIntervalDay(1))), max(CAST(CAST(toStartOfInterval(timestamp, toIntervalDay(1)), 'Nullable(DATE)'), 'Nullable(TIMESTAMP)')), min(toStartOfInterval(timestamp, toIntervalDay(1))), min(CAST(CAST(toStartOfInterval(timestamp, toIntervalDay(1)), 'Nullable(DATE)'), 'Nullable(TIMESTAMP)')), count(), sum(1), COUNTDistinct(xxxx16), COUNTDistinct(xxxx31), COUNTDistinct(xxxx14), COUNTDistinct(CAST(toStartOfInterval(timestamp, toIntervalDay(1)), 'Nullable(DATE)')) GROUP BY xxxx1, toStartOfInterval(timestamp, toIntervalMonth(1)), toStartOfWeek(timestamp, 8), toStartOfInterval(timestamp, toIntervalDay(1)), xxxx1, toStartOfInterval(timestamp, toIntervalMonth(1)), toStartOfWeek(timestamp, 8), toStartOfInterval(timestamp, toIntervalDay(1)), xxxx17, xxxx16, xxxx14, xxxx9, xxxx10, xxxx21, xxxx22, xxxx11)) ENGINE = MergeTree PARTITION BY toYYYYMM(timestamp) ORDER BY (xxxx17, xxxx14, xxxx16, toStartOfDay(timestamp), left(xxxx19, 10), timestamp) SETTINGS index_granularity = 44435, min_bytes_for_wide_part = 528114613, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 12416, prefer_fetch_merged_part_size_threshold = 1, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 1, min_merge_bytes_to_use_direct_io = 10737418240, index_granularity_bytes = 9447648, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 59489, primary_key_compress_block_size = 62410), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [154]) @ 0x000000001defd11e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:200: DB::checkSuspiciousIndices(DB::ASTFunction const*) @ 0x000000001de6975a in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:509: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de681c7 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:606: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de69443 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 11. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 24. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:09:54.907136 [ 1139 ] {eea0b20a-aa92-473b-8210-99f1c5cf25ed} TCPHandler: Code: 36. DB::Exception: Primary key or secondary index contains a duplicate expression. To suppress this exception, rerun the command with setting 'allow_suspicious_indices = 1'. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [154]) @ 0x000000001defd11e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:200: DB::checkSuspiciousIndices(DB::ASTFunction const*) @ 0x000000001de6975a in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:509: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de681c7 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:606: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de69443 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 11. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 24. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:10:02.189139 [ 1132 ] {13bf5ec8-be15-40a5-90fb-939e560c17c0} executeQuery: Code: 80. DB::Exception: Temporary tables cannot be created with Replicated or KeeperMap table engines. (INCORRECT_QUERY) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49732) (comment: 02525_different_engines_in_temporary_tables.sql) (in query: CREATE TEMPORARY TABLE table_replicated_merge_tree_02525 (`id` UInt64, `info` String) ENGINE = ReplicatedMergeTree('/clickhouse/tables/{database}/test_02525/table_replicated_merge_tree_02525', 'r1') PRIMARY KEY id ORDER BY id SETTINGS index_granularity = 3126, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 11583, prefer_fetch_merged_part_size_threshold = 1, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 100, min_merge_bytes_to_use_direct_io = 1, index_granularity_bytes = 14524309, allow_vertical_merges_from_compact_to_wide_parts = true, marks_compress_block_size = 93978, primary_key_compress_block_size = 92950), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [78]) @ 0x0000000013975fbe in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:910: DB::(anonymous namespace)::checkTemporaryTableEngineName(String const&) @ 0x000000001c7f17b6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:954: DB::InterpreterCreateQuery::setEngine(DB::ASTCreateQuery&) const @ 0x000000001c7ef9fd in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:673: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed53c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:02.190086 [ 1132 ] {13bf5ec8-be15-40a5-90fb-939e560c17c0} TCPHandler: Code: 80. DB::Exception: Temporary tables cannot be created with Replicated or KeeperMap table engines. (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [78]) @ 0x0000000013975fbe in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:910: DB::(anonymous namespace)::checkTemporaryTableEngineName(String const&) @ 0x000000001c7f17b6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:954: DB::InterpreterCreateQuery::setEngine(DB::ASTCreateQuery&) const @ 0x000000001c7ef9fd in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:673: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed53c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:02.202674 [ 1132 ] {8f75c65f-331a-47f0-b6a2-d9cc373a1087} executeQuery: Code: 80. DB::Exception: Temporary tables cannot be created with Replicated or KeeperMap table engines. (INCORRECT_QUERY) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49732) (comment: 02525_different_engines_in_temporary_tables.sql) (in query: CREATE TEMPORARY TABLE table_keeper_map_02525 ( key String, value UInt32 ) Engine=KeeperMap('/' || currentDatabase() || '/test02525') PRIMARY KEY(key);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [78]) @ 0x0000000013975fbe in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:910: DB::(anonymous namespace)::checkTemporaryTableEngineName(String const&) @ 0x000000001c7f17b6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:954: DB::InterpreterCreateQuery::setEngine(DB::ASTCreateQuery&) const @ 0x000000001c7ef9fd in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:673: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed53c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:02.203255 [ 1132 ] {8f75c65f-331a-47f0-b6a2-d9cc373a1087} TCPHandler: Code: 80. DB::Exception: Temporary tables cannot be created with Replicated or KeeperMap table engines. (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [78]) @ 0x0000000013975fbe in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:910: DB::(anonymous namespace)::checkTemporaryTableEngineName(String const&) @ 0x000000001c7f17b6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:954: DB::InterpreterCreateQuery::setEngine(DB::ASTCreateQuery&) const @ 0x000000001c7ef9fd in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:673: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed53c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:14.626621 [ 1132 ] {3963b027-9622-400e-a49f-e27e26731201} executeQuery: Code: 59. DB::Exception: Illegal type UInt32 of column modulo(n, 143011) for filter. Must be UInt8 or Nullable(UInt8). (ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46824) (comment: 02513_prewhere_combine_step_filters.sql) (in query: SELECT * FROM table_02513 WHERE n%143011;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/FilterTransform.cpp:48: DB::FilterTransform::transformHeader(DB::Block, DB::ActionsDAG const*, String const&, bool) @ 0x000000001ebd0bdb in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/FilterStep.cpp:43: DB::FilterStep::FilterStep(DB::DataStream const&, std::shared_ptr const&, String, bool) @ 0x000000001ee524c5 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, String, bool&>(DB::DataStream const&, std::shared_ptr const&, String&&, bool&) @ 0x000000001cace5b3 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:2532: DB::InterpreterSelectQuery::executeWhere(DB::QueryPlan&, std::shared_ptr const&, bool) @ 0x000000001cac14d5 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:1683: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9bcd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:14.627512 [ 1132 ] {3963b027-9622-400e-a49f-e27e26731201} TCPHandler: Code: 59. DB::Exception: Illegal type UInt32 of column modulo(n, 143011) for filter. Must be UInt8 or Nullable(UInt8). (ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/FilterTransform.cpp:48: DB::FilterTransform::transformHeader(DB::Block, DB::ActionsDAG const*, String const&, bool) @ 0x000000001ebd0bdb in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/FilterStep.cpp:43: DB::FilterStep::FilterStep(DB::DataStream const&, std::shared_ptr const&, String, bool) @ 0x000000001ee524c5 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, String, bool&>(DB::DataStream const&, std::shared_ptr const&, String&&, bool&) @ 0x000000001cace5b3 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:2532: DB::InterpreterSelectQuery::executeWhere(DB::QueryPlan&, std::shared_ptr const&, bool) @ 0x000000001cac14d5 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:1683: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9bcd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:14.826175 [ 1132 ] {353b93c6-b0e8-44b7-a11c-919349a92215} executeQuery: Code: 59. DB::Exception: Illegal type UInt32 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.: While executing MergeTreeInOrder. (ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46824) (comment: 02513_prewhere_combine_step_filters.sql) (in query: SELECT * FROM table_02513 PREWHERE n%143011;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x000000001d57c746 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeRangeReader.h:70: DB::FilterWithCachedCount::FilterWithCachedCount(COW::immutable_ptr const&) @ 0x000000001e149de5 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1385: DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) const @ 0x000000001e146a4f in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1072: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e1449b8 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 2024.10.22 10:10:14.827660 [ 1132 ] {353b93c6-b0e8-44b7-a11c-919349a92215} TCPHandler: Code: 59. DB::Exception: Illegal type UInt32 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.: While executing MergeTreeInOrder. (ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x000000001d57c746 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeRangeReader.h:70: DB::FilterWithCachedCount::FilterWithCachedCount(COW::immutable_ptr const&) @ 0x000000001e149de5 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1385: DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) const @ 0x000000001e146a4f in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1072: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e1449b8 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 2024.10.22 10:10:14.884024 [ 1132 ] {94361f25-2878-4eda-be82-ec1963b94c24} executeQuery: Code: 59. DB::Exception: Illegal type UInt32 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.: While executing MergeTreeInOrder. (ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46824) (comment: 02513_prewhere_combine_step_filters.sql) (in query: SELECT * FROM table_02513 PREWHERE n%143011 WHERE n%13;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x000000001d57c746 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeRangeReader.h:70: DB::FilterWithCachedCount::FilterWithCachedCount(COW::immutable_ptr const&) @ 0x000000001e149de5 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1385: DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) const @ 0x000000001e146a4f in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1072: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e1449b8 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 2024.10.22 10:10:14.886172 [ 1132 ] {94361f25-2878-4eda-be82-ec1963b94c24} TCPHandler: Code: 59. DB::Exception: Illegal type UInt32 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.: While executing MergeTreeInOrder. (ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x000000001d57c746 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeRangeReader.h:70: DB::FilterWithCachedCount::FilterWithCachedCount(COW::immutable_ptr const&) @ 0x000000001e149de5 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1385: DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) const @ 0x000000001e146a4f in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1072: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e1449b8 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 2024.10.22 10:10:15.852365 [ 1674 ] {f4c2b993-9333-493b-b6b9-a41d56c22884} executeQuery: Code: 407. DB::Exception: Convert overflow: While processing toUnixTimestamp(toDateTime64('1928-12-31 12:12:12.123', 3, 'UTC')). (DECIMAL_OVERFLOW) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46874) (comment: 02507_to_unix_timestamp_overflow.sql) (in query: SELECT toUnixTimestamp(toDateTime64('1928-12-31 12:12:12.123', 3, 'UTC'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Core/DecimalFunctions.h:346: void DB::DecimalUtils::convertToImpl(DB::DateTime64 const&, unsigned int, unsigned int&) @ 0x000000000b2c02a6 in /usr/bin/clickhouse 7. /build/src/DataTypes/DataTypesDecimal.h:182: void DB::convertFromDecimalImpl, void>(DB::DataTypeDateTime64::FieldType const&, unsigned int, DB::DataTypeNumber::FieldType&) @ 0x000000000b2c0223 in /usr/bin/clickhouse 8. /build/src/DataTypes/DataTypesDecimal.h:193: DB::DataTypeNumber::FieldType DB::convertFromDecimal>(DB::DataTypeDateTime64::FieldType const&, unsigned int) @ 0x000000000b2c01df in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:268: COW::immutable_ptr DB::ConvertImpl, DB::NameToUnixTimestamp, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000bafca57 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2039: bool DB::FunctionConvert, DB::NameToUnixTimestamp, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baf7dd8 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:202: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUnixTimestamp, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000bae7299 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUnixTimestamp, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bae65e8 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUnixTimestamp, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bae57fe in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 2024.10.22 10:10:15.853350 [ 1674 ] {f4c2b993-9333-493b-b6b9-a41d56c22884} TCPHandler: Code: 407. DB::Exception: Convert overflow: While processing toUnixTimestamp(toDateTime64('1928-12-31 12:12:12.123', 3, 'UTC')). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Core/DecimalFunctions.h:346: void DB::DecimalUtils::convertToImpl(DB::DateTime64 const&, unsigned int, unsigned int&) @ 0x000000000b2c02a6 in /usr/bin/clickhouse 7. /build/src/DataTypes/DataTypesDecimal.h:182: void DB::convertFromDecimalImpl, void>(DB::DataTypeDateTime64::FieldType const&, unsigned int, DB::DataTypeNumber::FieldType&) @ 0x000000000b2c0223 in /usr/bin/clickhouse 8. /build/src/DataTypes/DataTypesDecimal.h:193: DB::DataTypeNumber::FieldType DB::convertFromDecimal>(DB::DataTypeDateTime64::FieldType const&, unsigned int) @ 0x000000000b2c01df in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:268: COW::immutable_ptr DB::ConvertImpl, DB::NameToUnixTimestamp, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000bafca57 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2039: bool DB::FunctionConvert, DB::NameToUnixTimestamp, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baf7dd8 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:202: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUnixTimestamp, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000bae7299 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUnixTimestamp, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bae65e8 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUnixTimestamp, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bae57fe in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 2024.10.22 10:10:17.074006 [ 1674 ] {a4178b45-3838-4cf7-ae0c-135fa248ac93} executeQuery: Code: 183. DB::Exception: arrayJoin is not allowed in mutations. (UNEXPECTED_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46884) (comment: 02504_disallow_arrayjoin_in_mutations.sql) (in query: ALTER TABLE test_02504 UPDATE b = 33 WHERE arrayJoin([1, 2]) = a;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [38]) @ 0x000000000f82675e in /usr/bin/clickhouse 6. /build/src/Interpreters/MutationsInterpreter.cpp:1243: DB::MutationsInterpreter::addStreamsForLaterStages(std::vector> const&, DB::QueryPlan&) const @ 0x000000001cc72d91 in /usr/bin/clickhouse 7. /build/src/Interpreters/MutationsInterpreter.cpp:1298: DB::MutationsInterpreter::validate() @ 0x000000001cc749ba in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:178: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7d9fa3 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:17.074841 [ 1674 ] {a4178b45-3838-4cf7-ae0c-135fa248ac93} TCPHandler: Code: 183. DB::Exception: arrayJoin is not allowed in mutations. (UNEXPECTED_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [38]) @ 0x000000000f82675e in /usr/bin/clickhouse 6. /build/src/Interpreters/MutationsInterpreter.cpp:1243: DB::MutationsInterpreter::addStreamsForLaterStages(std::vector> const&, DB::QueryPlan&) const @ 0x000000001cc72d91 in /usr/bin/clickhouse 7. /build/src/Interpreters/MutationsInterpreter.cpp:1298: DB::MutationsInterpreter::validate() @ 0x000000001cc749ba in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:178: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7d9fa3 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:19.696514 [ 1674 ] {55b11e4e-a3ab-41f3-aa0b-58c6967ae1f4} executeQuery: Code: 403. DB::Exception: Illegal expression '1' in JOIN ON section: While processing 1. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key3 = tj.key3 AND t1.key2 = tj.key2 AND 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb61b6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 10:10:19.697689 [ 1674 ] {55b11e4e-a3ab-41f3-aa0b-58c6967ae1f4} TCPHandler: Code: 403. DB::Exception: Illegal expression '1' in JOIN ON section: While processing 1. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb61b6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 10:10:19.711605 [ 1674 ] {d54e2cc3-a344-4ffc-b640-b0828308764f} executeQuery: Code: 403. DB::Exception: Illegal expression '0' in JOIN ON section: While processing 0. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key3 = tj.key3 AND t1.key2 = tj.key2 AND 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb61b6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 10:10:19.712533 [ 1674 ] {d54e2cc3-a344-4ffc-b640-b0828308764f} TCPHandler: Code: 403. DB::Exception: Illegal expression '0' in JOIN ON section: While processing 0. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb61b6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 10:10:19.870895 [ 1674 ] {391235a0-295d-4203-b8d4-8dc3b73371af} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '1 > 1': While processing 1 > 1. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key3 = tj.key3 AND t1.key2 = tj.key2 AND 1 > 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:10:19.871938 [ 1674 ] {391235a0-295d-4203-b8d4-8dc3b73371af} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '1 > 1': While processing 1 > 1. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:10:20.044200 [ 1674 ] {cd333b3f-3115-40af-85f8-58d416a775aa} executeQuery: Code: 403. DB::Exception: Illegal expression '1' in JOIN ON section: While processing 1. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb61b6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 11. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:20.045015 [ 1674 ] {cd333b3f-3115-40af-85f8-58d416a775aa} TCPHandler: Code: 403. DB::Exception: Illegal expression '1' in JOIN ON section: While processing 1. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb61b6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 11. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:20.053812 [ 1674 ] {9a6df90d-66a3-4fe3-8abb-a79c547aebd2} executeQuery: Code: 403. DB::Exception: Illegal expression '0' in JOIN ON section: While processing 0. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb61b6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 11. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:20.054462 [ 1674 ] {9a6df90d-66a3-4fe3-8abb-a79c547aebd2} TCPHandler: Code: 403. DB::Exception: Illegal expression '0' in JOIN ON section: While processing 0. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb61b6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 11. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:20.062478 [ 1674 ] {00e66fc4-9140-4ce8-9fda-6e9797a4c902} executeQuery: Code: 403. DB::Exception: Illegal expression 'NULL' in JOIN ON section: While processing NULL. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON NULL;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb61b6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 11. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:20.063137 [ 1674 ] {00e66fc4-9140-4ce8-9fda-6e9797a4c902} TCPHandler: Code: 403. DB::Exception: Illegal expression 'NULL' in JOIN ON section: While processing NULL. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb61b6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 11. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:20.220850 [ 1674 ] {adaf6069-30bb-41f0-9dbd-76c16c6bf2da} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '1 != 1': While processing 1 != 1. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON 1 != 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:10:20.221720 [ 1674 ] {adaf6069-30bb-41f0-9dbd-76c16c6bf2da} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '1 != 1': While processing 1 != 1. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:10:20.376785 [ 1674 ] {b49e1392-861e-4869-97ae-5dfc3300a50e} executeQuery: Code: 352. DB::Exception: Ambiguous columns in expression '1 = 1' in JOIN ON section: While processing 1 = 1. (AMBIGUOUS_COLUMN_NAME) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: -- Here is another error code because equality is handled differently in CollectJoinOnKeysVisitor. -- We can change the error code, but it will become inconsistent for other cases -- where we actually expect AMBIGUOUS_COLUMN_NAME instead of INVALID_JOIN_ON_EXPRESSION/INCOMPATIBLE_TYPE_OF_JOIN. -- These checks are more reliable after switching to a new analyzer, they return INCOMPATIBLE_TYPE_OF_JOIN consistent with cases above SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key3 = tj.key3 AND t1.key2 = tj.key2 AND 1 == 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:115: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c130 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:10:20.377854 [ 1674 ] {b49e1392-861e-4869-97ae-5dfc3300a50e} TCPHandler: Code: 352. DB::Exception: Ambiguous columns in expression '1 = 1' in JOIN ON section: While processing 1 = 1. (AMBIGUOUS_COLUMN_NAME), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:115: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c130 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:10:20.556294 [ 1674 ] {ac64eafe-f8c1-49d5-880f-afadd0305c9d} executeQuery: Code: 352. DB::Exception: Ambiguous columns in expression '1 = 1' in JOIN ON section: While processing 1 = 1. (AMBIGUOUS_COLUMN_NAME) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON 1 == 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:115: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c130 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:10:20.557083 [ 1674 ] {ac64eafe-f8c1-49d5-880f-afadd0305c9d} TCPHandler: Code: 352. DB::Exception: Ambiguous columns in expression '1 = 1' in JOIN ON section: While processing 1 = 1. (AMBIGUOUS_COLUMN_NAME), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:115: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c130 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:10:20.566026 [ 1674 ] {1b184a37-7afe-4eb8-85a3-aa7907720321} executeQuery: Code: 352. DB::Exception: Ambiguous columns in expression '1 = 2' in JOIN ON section: While processing 1 = 2. (AMBIGUOUS_COLUMN_NAME) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON 1 == 2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:115: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c130 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:10:20.566675 [ 1674 ] {1b184a37-7afe-4eb8-85a3-aa7907720321} TCPHandler: Code: 352. DB::Exception: Ambiguous columns in expression '1 = 2' in JOIN ON section: While processing 1 = 2. (AMBIGUOUS_COLUMN_NAME), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:115: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c130 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:10:20.711783 [ 1674 ] {1694f096-edb0-4456-b975-0a780d04b891} executeQuery: Code: 264. DB::Exception: Key 'key3' not found in JOIN ON section. Join engine keys 'key3, key2, key1' have to be used. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj USING (key1, key2, attr);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, char const*&&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbd08 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:229: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9609 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4cd0 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:20.713094 [ 1674 ] {1694f096-edb0-4456-b975-0a780d04b891} TCPHandler: Code: 264. DB::Exception: Key 'key3' not found in JOIN ON section. Join engine keys 'key3, key2, key1' have to be used. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, char const*&&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbd08 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:229: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9609 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4cd0 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:20.897224 [ 1674 ] {af10b346-67e5-45f6-9c50-a115c1496bc4} executeQuery: Code: 264. DB::Exception: Number of keys in JOIN ON section (4) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj USING (key1, key2, key3, attr);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x00000000138614ac in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9343 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4cd0 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:20.898431 [ 1674 ] {af10b346-67e5-45f6-9c50-a115c1496bc4} TCPHandler: Code: 264. DB::Exception: Number of keys in JOIN ON section (4) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x00000000138614ac in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9343 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4cd0 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:20.913923 [ 1674 ] {07c336ee-73d8-4d2d-91b1-7d814450b3ea} executeQuery: Code: 264. DB::Exception: Number of keys in JOIN ON section (2) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj USING (key2, key3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x00000000138614ac in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9343 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4cd0 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:20.914945 [ 1674 ] {07c336ee-73d8-4d2d-91b1-7d814450b3ea} TCPHandler: Code: 264. DB::Exception: Number of keys in JOIN ON section (2) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x00000000138614ac in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9343 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4cd0 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:20.929819 [ 1674 ] {6128db45-db01-4225-bfa1-e154ffa20e88} executeQuery: Code: 264. DB::Exception: Number of keys in JOIN ON section (1) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.attr;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x00000000138614ac in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9343 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4cd0 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:20.930539 [ 1674 ] {6128db45-db01-4225-bfa1-e154ffa20e88} TCPHandler: Code: 264. DB::Exception: Number of keys in JOIN ON section (1) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x00000000138614ac in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9343 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4cd0 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:20.945502 [ 1674 ] {452dfc34-4b0c-434a-8164-169df22441a2} executeQuery: Code: 264. DB::Exception: Number of keys in JOIN ON section (1) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x00000000138614ac in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9343 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4cd0 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:20.946485 [ 1674 ] {452dfc34-4b0c-434a-8164-169df22441a2} TCPHandler: Code: 264. DB::Exception: Number of keys in JOIN ON section (1) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x00000000138614ac in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9343 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4cd0 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:20.962768 [ 1674 ] {a1530cb6-47c5-492c-854f-71862a40e2ce} executeQuery: Code: 264. DB::Exception: Key 'key3' not found in JOIN ON section. Join engine keys 'key3, key2, key1' have to be used. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key2 = tj.key2 AND t1.key3 = tj.attr;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, char const*&&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbd08 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:229: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9609 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4cd0 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:20.963592 [ 1674 ] {a1530cb6-47c5-492c-854f-71862a40e2ce} TCPHandler: Code: 264. DB::Exception: Key 'key3' not found in JOIN ON section. Join engine keys 'key3, key2, key1' have to be used. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, char const*&&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbd08 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:229: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9609 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4cd0 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:20.985879 [ 1674 ] {b5756adf-c5cb-4ddd-ad06-3a519d683040} executeQuery: Code: 264. DB::Exception: Number of keys in JOIN ON section (4) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key2 = tj.key2 AND t1.key3 = tj.key3 AND t1.key1 = tj.key1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x00000000138614ac in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9343 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4cd0 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:20.986694 [ 1674 ] {b5756adf-c5cb-4ddd-ad06-3a519d683040} TCPHandler: Code: 264. DB::Exception: Number of keys in JOIN ON section (4) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x00000000138614ac in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9343 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4cd0 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:21.381630 [ 1132 ] {c74b454e-bfea-4101-b67f-15ed4cade3ea} executeQuery: Code: 44. DB::Exception: Illegal column String of first argument of function concatWithSeparator. Must be a constant String. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43600) (comment: 02495_concat_with_separator.sql) (in query: select concatWithSeparator(materialize('|'), 'a', 'b');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/concatWithSeparator.cpp:77: DB::(anonymous namespace)::ConcatWithSeparatorImpl::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000d9239d6 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc8e048 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc8da48 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001ebcdd87 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001ee33d66 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cacd7f1 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQuery.cpp:2769: DB::InterpreterSelectQuery::executeExpression(DB::QueryPlan&, std::shared_ptr const&, String const&) @ 0x000000001cac2042 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:1720: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9e05 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:10:21.382671 [ 1132 ] {c74b454e-bfea-4101-b67f-15ed4cade3ea} TCPHandler: Code: 44. DB::Exception: Illegal column String of first argument of function concatWithSeparator. Must be a constant String. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/concatWithSeparator.cpp:77: DB::(anonymous namespace)::ConcatWithSeparatorImpl::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000d9239d6 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc8e048 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc8da48 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001ebcdd87 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001ee33d66 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cacd7f1 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQuery.cpp:2769: DB::InterpreterSelectQuery::executeExpression(DB::QueryPlan&, std::shared_ptr const&, String const&) @ 0x000000001cac2042 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:1720: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9e05 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:10:21.531469 [ 1132 ] {885fce87-c577-4ec3-b45f-23a1083161cf} executeQuery: Code: 42. DB::Exception: Number of arguments for function concatWithSeparator doesn't match: passed 0, should be at least 1: While processing concatWithSeparator(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43600) (comment: 02495_concat_with_separator.sql) (in query: select concatWithSeparator();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x000000000b2361ec in /usr/bin/clickhouse 6. /build/src/Functions/concatWithSeparator.cpp:46: DB::(anonymous namespace)::ConcatWithSeparatorImpl::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000d924309 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:10:21.532628 [ 1132 ] {885fce87-c577-4ec3-b45f-23a1083161cf} TCPHandler: Code: 42. DB::Exception: Number of arguments for function concatWithSeparator doesn't match: passed 0, should be at least 1: While processing concatWithSeparator(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x000000000b2361ec in /usr/bin/clickhouse 6. /build/src/Functions/concatWithSeparator.cpp:46: DB::(anonymous namespace)::ConcatWithSeparatorImpl::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000d924309 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:10:21.682089 [ 1132 ] {c104257b-5e73-41dc-81aa-f62fa1771210} executeQuery: Code: 43. DB::Exception: Illegal type UInt8 of argument 3 of function concatWithSeparator: While processing concatWithSeparator('|', 'a', 100). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43600) (comment: 02495_concat_with_separator.sql) (in query: select concatWithSeparator('|', 'a', 100);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x000000000b9017e8 in /usr/bin/clickhouse 6. /build/src/Functions/concatWithSeparator.cpp:56: DB::(anonymous namespace)::ConcatWithSeparatorImpl::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000d924511 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:10:21.683108 [ 1132 ] {c104257b-5e73-41dc-81aa-f62fa1771210} TCPHandler: Code: 43. DB::Exception: Illegal type UInt8 of argument 3 of function concatWithSeparator: While processing concatWithSeparator('|', 'a', 100). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x000000000b9017e8 in /usr/bin/clickhouse 6. /build/src/Functions/concatWithSeparator.cpp:56: DB::(anonymous namespace)::ConcatWithSeparatorImpl::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000d924511 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:10:21.801923 [ 1674 ] {b9bd0b6c-e8b8-4027-8888-dc1956c834a8} executeQuery: Code: 264. DB::Exception: JOIN with 'Join' table engine should be performed by storage keys [key3, key2, key1], but column '1_UInt8' was found. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key3 = tj.key3 AND t1.key2 = tj.key2 AND 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>, String const&>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type, std::type_identity::type>, fmt::v8::join_view, std::__wrap_iter, char>&&, String const&) @ 0x000000001cbae42c in /usr/bin/clickhouse 6. /build/src/Planner/PlannerJoins.cpp:643: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab40f in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 9. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:21.803021 [ 1674 ] {b9bd0b6c-e8b8-4027-8888-dc1956c834a8} TCPHandler: Code: 264. DB::Exception: JOIN with 'Join' table engine should be performed by storage keys [key3, key2, key1], but column '1_UInt8' was found. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>, String const&>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type, std::type_identity::type>, fmt::v8::join_view, std::__wrap_iter, char>&&, String const&) @ 0x000000001cbae42c in /usr/bin/clickhouse 6. /build/src/Planner/PlannerJoins.cpp:643: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab40f in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 9. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:21.949531 [ 1674 ] {7c69a679-5c30-4061-888e-933e9f0c7f30} executeQuery: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key3 = tj.key3 AND t1.key2 = tj.key2 AND 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbaf3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d90e3 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:21.950477 [ 1674 ] {7c69a679-5c30-4061-888e-933e9f0c7f30} TCPHandler: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbaf3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d90e3 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:21.969803 [ 1674 ] {62ab5845-fd83-48fd-96f2-b256442c254a} executeQuery: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key3 = tj.key3 AND t1.key2 = tj.key2 AND 1 > 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbaf3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d90e3 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:21.970604 [ 1674 ] {62ab5845-fd83-48fd-96f2-b256442c254a} TCPHandler: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbaf3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d90e3 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.103406 [ 1674 ] {2c08bedf-c43f-47a2-845a-dc7fafaba1f7} executeQuery: Code: 264. DB::Exception: Table 'test_k15z9zlt.tj (f2030d5e-171b-489e-9ed5-5878c60102ec)' has incompatible type of JOIN. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:185: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d8cd6 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.104241 [ 1674 ] {2c08bedf-c43f-47a2-845a-dc7fafaba1f7} TCPHandler: Code: 264. DB::Exception: Table 'test_k15z9zlt.tj (f2030d5e-171b-489e-9ed5-5878c60102ec)' has incompatible type of JOIN. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:185: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d8cd6 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.119005 [ 1674 ] {8bed2d28-6127-4b35-9c48-118fc6beec2e} executeQuery: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbaf3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d90e3 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.119683 [ 1674 ] {8bed2d28-6127-4b35-9c48-118fc6beec2e} TCPHandler: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbaf3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d90e3 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.133792 [ 1674 ] {a6cb118e-20c5-4ff7-9ec8-6b1fce7af548} executeQuery: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON NULL;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbaf3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d90e3 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.134484 [ 1674 ] {a6cb118e-20c5-4ff7-9ec8-6b1fce7af548} TCPHandler: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbaf3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d90e3 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.148781 [ 1674 ] {c5719ecf-6a7d-420e-842a-f4cb5e78664e} executeQuery: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON 1 != 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbaf3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d90e3 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.149672 [ 1674 ] {c5719ecf-6a7d-420e-842a-f4cb5e78664e} TCPHandler: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbaf3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d90e3 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.173250 [ 1674 ] {d6c124a6-39b4-4c41-8148-db45d0377f28} executeQuery: Code: 264. DB::Exception: JOIN with 'Join' table engine should be performed by storage keys [key3, key2, key1], but column '1_UInt8' was found. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: -- Here is another error code because equality is handled differently in CollectJoinOnKeysVisitor. -- We can change the error code, but it will become inconsistent for other cases -- where we actually expect AMBIGUOUS_COLUMN_NAME instead of INVALID_JOIN_ON_EXPRESSION/INCOMPATIBLE_TYPE_OF_JOIN. -- These checks are more reliable after switching to a new analyzer, they return INCOMPATIBLE_TYPE_OF_JOIN consistent with cases above SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key3 = tj.key3 AND t1.key2 = tj.key2 AND 1 == 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>, String const&>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type, std::type_identity::type>, fmt::v8::join_view, std::__wrap_iter, char>&&, String const&) @ 0x000000001cbae42c in /usr/bin/clickhouse 6. /build/src/Planner/PlannerJoins.cpp:643: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab40f in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 9. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.174021 [ 1674 ] {d6c124a6-39b4-4c41-8148-db45d0377f28} TCPHandler: Code: 264. DB::Exception: JOIN with 'Join' table engine should be performed by storage keys [key3, key2, key1], but column '1_UInt8' was found. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>, String const&>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type, std::type_identity::type>, fmt::v8::join_view, std::__wrap_iter, char>&&, String const&) @ 0x000000001cbae42c in /usr/bin/clickhouse 6. /build/src/Planner/PlannerJoins.cpp:643: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab40f in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 9. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.188768 [ 1674 ] {cbba978e-0de0-48f3-9ce9-ce78089e4865} executeQuery: Code: 264. DB::Exception: Table 'test_k15z9zlt.tj (f2030d5e-171b-489e-9ed5-5878c60102ec)' has incompatible type of JOIN. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON 1 == 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:185: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d8cd6 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.189623 [ 1674 ] {cbba978e-0de0-48f3-9ce9-ce78089e4865} TCPHandler: Code: 264. DB::Exception: Table 'test_k15z9zlt.tj (f2030d5e-171b-489e-9ed5-5878c60102ec)' has incompatible type of JOIN. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:185: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d8cd6 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.203193 [ 1674 ] {1a6e27b3-a963-4243-b348-4e27b1ce2f7a} executeQuery: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON 1 == 2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbaf3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d90e3 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.203841 [ 1674 ] {1a6e27b3-a963-4243-b348-4e27b1ce2f7a} TCPHandler: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbaf3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d90e3 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.334687 [ 1674 ] {25a3f366-c4a6-4e48-beef-9ebf07fbfa4f} executeQuery: Code: 47. DB::Exception: JOIN test_k15z9zlt.t1 ALL INNER JOIN test_k15z9zlt.tj USING (key1, key2, attr) using identifier 'attr' cannot be resolved from left table expression. In scope SELECT * FROM t1 ALL INNER JOIN tj USING (key1, key2, attr). (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj USING (key1, key2, attr);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c977668 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6659: DB::(anonymous namespace)::QueryAnalyzer::resolveJoin(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&) @ 0x000000001c94a79d in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6740: DB::(anonymous namespace)::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&) @ 0x000000001c92b05d in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6967: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea02 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 11. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.335535 [ 1674 ] {25a3f366-c4a6-4e48-beef-9ebf07fbfa4f} TCPHandler: Code: 47. DB::Exception: JOIN test_k15z9zlt.t1 ALL INNER JOIN test_k15z9zlt.tj USING (key1, key2, attr) using identifier 'attr' cannot be resolved from left table expression. In scope SELECT * FROM t1 ALL INNER JOIN tj USING (key1, key2, attr). (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c977668 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6659: DB::(anonymous namespace)::QueryAnalyzer::resolveJoin(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&) @ 0x000000001c94a79d in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6740: DB::(anonymous namespace)::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&) @ 0x000000001c92b05d in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6967: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea02 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 11. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.345662 [ 1674 ] {6daa8550-8d5c-4627-af45-069bed972c68} executeQuery: Code: 47. DB::Exception: JOIN test_k15z9zlt.t1 ALL INNER JOIN test_k15z9zlt.tj USING (key1, key2, key3, attr) using identifier 'attr' cannot be resolved from left table expression. In scope SELECT * FROM t1 ALL INNER JOIN tj USING (key1, key2, key3, attr). (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj USING (key1, key2, key3, attr);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c977668 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6659: DB::(anonymous namespace)::QueryAnalyzer::resolveJoin(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&) @ 0x000000001c94a79d in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6740: DB::(anonymous namespace)::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&) @ 0x000000001c92b05d in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6967: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea02 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 11. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.346325 [ 1674 ] {6daa8550-8d5c-4627-af45-069bed972c68} TCPHandler: Code: 47. DB::Exception: JOIN test_k15z9zlt.t1 ALL INNER JOIN test_k15z9zlt.tj USING (key1, key2, key3, attr) using identifier 'attr' cannot be resolved from left table expression. In scope SELECT * FROM t1 ALL INNER JOIN tj USING (key1, key2, key3, attr). (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c977668 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6659: DB::(anonymous namespace)::QueryAnalyzer::resolveJoin(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&) @ 0x000000001c94a79d in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6740: DB::(anonymous namespace)::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&) @ 0x000000001c92b05d in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6967: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea02 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 11. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.462599 [ 1674 ] {9d9369ee-ed43-4a39-b82b-b385b25acba3} executeQuery: Code: 264. DB::Exception: Number of keys in JOIN ON section (2) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj USING (key2, key3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x00000000138614ac in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9343 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.463567 [ 1674 ] {9d9369ee-ed43-4a39-b82b-b385b25acba3} TCPHandler: Code: 264. DB::Exception: Number of keys in JOIN ON section (2) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x00000000138614ac in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9343 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.480087 [ 1674 ] {3af6cce5-80fc-412b-b8f3-8b11c96f7c78} executeQuery: Code: 264. DB::Exception: Number of keys in JOIN ON section (1) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.attr;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x00000000138614ac in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9343 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.480807 [ 1674 ] {3af6cce5-80fc-412b-b8f3-8b11c96f7c78} TCPHandler: Code: 264. DB::Exception: Number of keys in JOIN ON section (1) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x00000000138614ac in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9343 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.496650 [ 1674 ] {464104fc-1416-4157-899a-283b97cd2a4d} executeQuery: Code: 264. DB::Exception: Number of keys in JOIN ON section (1) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x00000000138614ac in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9343 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.497385 [ 1674 ] {464104fc-1416-4157-899a-283b97cd2a4d} TCPHandler: Code: 264. DB::Exception: Number of keys in JOIN ON section (1) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x00000000138614ac in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9343 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.632698 [ 1674 ] {831f6733-b563-4974-a3f4-a87d231920ed} executeQuery: Code: 264. DB::Exception: Key 'key3' not found in JOIN ON section. Join engine keys 'key3, key2, key1' have to be used. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key2 = tj.key2 AND t1.key3 = tj.attr;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, char const*&&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbd08 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:229: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9609 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.633715 [ 1674 ] {831f6733-b563-4974-a3f4-a87d231920ed} TCPHandler: Code: 264. DB::Exception: Key 'key3' not found in JOIN ON section. Join engine keys 'key3, key2, key1' have to be used. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, char const*&&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbd08 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:229: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9609 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.662010 [ 1674 ] {0652aa27-cac0-49c1-977f-8a489db801b7} executeQuery: Code: 264. DB::Exception: Number of keys in JOIN ON section (4) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43580) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key2 = tj.key2 AND t1.key3 = tj.key3 AND t1.key1 = tj.key1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x00000000138614ac in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9343 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:22.662913 [ 1674 ] {0652aa27-cac0-49c1-977f-8a489db801b7} TCPHandler: Code: 264. DB::Exception: Number of keys in JOIN ON section (4) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x00000000138614ac in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d9343 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cbab551 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb93d81 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:23.396674 [ 6848 ] {6e613e71-0129-4446-b9b4-e1cc6630367e} executeQuery: Code: 47. DB::Exception: Identifier 'fields.value' cannot be resolved from subquery. In scope SELECT fields.name, fields.value FROM (SELECT fields.name FROM test_table). Maybe you meant: ['fields.name']. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43636) (comment: 02494_analyzer_compound_expression_crash_fix.sql) (in query: SELECT fields.name, fields.value FROM (SELECT fields.name FROM test_table);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&, String&&, String&&) @ 0x000000001c97ac64 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:2932: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromTableExpression(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&)::$_0::operator()(unsigned long) const @ 0x000000001c944319 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:2979: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromTableExpression(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c942243 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3309: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93fc33 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92ffe7 in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f23b in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 17. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:10:23.397470 [ 6848 ] {6e613e71-0129-4446-b9b4-e1cc6630367e} TCPHandler: Code: 47. DB::Exception: Identifier 'fields.value' cannot be resolved from subquery. In scope SELECT fields.name, fields.value FROM (SELECT fields.name FROM test_table). Maybe you meant: ['fields.name']. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&, String&&, String&&) @ 0x000000001c97ac64 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:2932: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromTableExpression(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&)::$_0::operator()(unsigned long) const @ 0x000000001c944319 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:2979: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromTableExpression(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c942243 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3309: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93fc33 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92ffe7 in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f23b in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 17. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:10:27.337279 [ 1674 ] {b2db3a91-8b0f-493c-b818-ebfaeff23b39} executeQuery: Code: 47. DB::Exception: Missing columns: '0b' while processing query: 'SELECT `0b`', required columns: '0b'. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46096) (comment: 02493_inconsistent_hex_and_binary_number.expect) (in query: select 0b), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:27.352812 [ 1674 ] {b2db3a91-8b0f-493c-b818-ebfaeff23b39} TCPHandler: Code: 47. DB::Exception: Missing columns: '0b' while processing query: 'SELECT `0b`', required columns: '0b'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:28.366051 [ 1139 ] {539456ec-cc34-4679-a28a-b88c7692ec50} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 136. Bytes expected: 1919379265.: While processing finalizeAggregation(CAST('AggregateFunction(categoricalInformationValue, Nullable(UInt8), UInt8)AggregateFunction(categoricalInformationValue, Nullable(UInt8), UInt8)', 'AggregateFunction(min, String)')). (CANNOT_READ_ALL_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46134) (comment: 02481_i43247_ubsan_in_minmaxany.sql) (in query: -- https://github.com/ClickHouse/ClickHouse/issues/43247 SELECT finalizeAggregation(CAST('AggregateFunction(categoricalInformationValue, Nullable(UInt8), UInt8)AggregateFunction(categoricalInformationValue, Nullable(UInt8), UInt8)', 'AggregateFunction(min, String)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:0: DB::SingleValueDataString::read(DB::ReadBuffer&, DB::ISerialization const&, DB::Arena*) @ 0x0000000014fcb245 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:1431: DB::AggregateFunctionsSingleValue>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014fc8600 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:10:28.367118 [ 1139 ] {539456ec-cc34-4679-a28a-b88c7692ec50} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 136. Bytes expected: 1919379265.: While processing finalizeAggregation(CAST('AggregateFunction(categoricalInformationValue, Nullable(UInt8), UInt8)AggregateFunction(categoricalInformationValue, Nullable(UInt8), UInt8)', 'AggregateFunction(min, String)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:0: DB::SingleValueDataString::read(DB::ReadBuffer&, DB::ISerialization const&, DB::Arena*) @ 0x0000000014fcb245 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:1431: DB::AggregateFunctionsSingleValue>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014fc8600 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:10:29.322561 [ 1674 ] {5c9e1c57-4883-4fa5-8281-5bb9e42aad0f} executeQuery: Code: 47. DB::Exception: Missing columns: '0b' while processing query: 'SELECT `0b`', required columns: '0b'. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46150) (comment: 02493_inconsistent_hex_and_binary_number.expect) (in query: select 0b;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:29.324598 [ 1674 ] {5c9e1c57-4883-4fa5-8281-5bb9e42aad0f} TCPHandler: Code: 47. DB::Exception: Missing columns: '0b' while processing query: 'SELECT `0b`', required columns: '0b'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:30.551437 [ 1139 ] {525cc9d9-a205-40c4-9f2f-e94573b231ee} executeQuery: Code: 47. DB::Exception: Unknown expression identifier 'x'. In scope SELECT min(b), x AS b FROM (SELECT max(number) FROM numbers(1)). Maybe you meant: ['b']. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46188) (comment: 02480_analyzer_alias_nullptr.sql) (in query: SELECT min(b), x AS b FROM (SELECT max(number) FROM numbers(1));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String const&, String&&, String&&) @ 0x000000001c97df44 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:2613: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c930791 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3536: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f19f in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:4734: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c9366b8 in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5551: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c924136 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 17. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:10:30.561063 [ 1139 ] {525cc9d9-a205-40c4-9f2f-e94573b231ee} TCPHandler: Code: 47. DB::Exception: Unknown expression identifier 'x'. In scope SELECT min(b), x AS b FROM (SELECT max(number) FROM numbers(1)). Maybe you meant: ['b']. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String const&, String&&, String&&) @ 0x000000001c97df44 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:2613: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c930791 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3536: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f19f in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:4734: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c9366b8 in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5551: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c924136 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 17. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:10:31.293287 [ 1139 ] {fbfcc7fa-7223-41d8-b53b-1d857f370fda} executeQuery: Code: 47. DB::Exception: Missing columns: '0b' while processing query: 'SELECT `0b`', required columns: '0b'. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46196) (comment: 02493_inconsistent_hex_and_binary_number.expect) (in query: select 0b ;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:31.295387 [ 1139 ] {fbfcc7fa-7223-41d8-b53b-1d857f370fda} TCPHandler: Code: 47. DB::Exception: Missing columns: '0b' while processing query: 'SELECT `0b`', required columns: '0b'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:33.286843 [ 672 ] {55524ab3-af1c-4dda-b8fa-693860560b06} executeQuery: Code: 47. DB::Exception: Missing columns: '0x' while processing query: 'SELECT `0x`', required columns: '0x'. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46242) (comment: 02493_inconsistent_hex_and_binary_number.expect) (in query: select 0x), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:33.289009 [ 672 ] {55524ab3-af1c-4dda-b8fa-693860560b06} TCPHandler: Code: 47. DB::Exception: Missing columns: '0x' while processing query: 'SELECT `0x`', required columns: '0x'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:35.166628 [ 1139 ] {ac7acf88-64a8-418f-804b-65d5320f31e9} executeQuery: Code: 47. DB::Exception: Missing columns: '0x' while processing query: 'SELECT `0x`', required columns: '0x'. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46312) (comment: 02493_inconsistent_hex_and_binary_number.expect) (in query: select 0x;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:35.168323 [ 1139 ] {ac7acf88-64a8-418f-804b-65d5320f31e9} TCPHandler: Code: 47. DB::Exception: Missing columns: '0x' while processing query: 'SELECT `0x`', required columns: '0x'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:35.439297 [ 5625 ] {55327fb4-c787-40ea-95cf-d5664f0b15a9} executeQuery: Code: 36. DB::Exception: Connection pool cannot have zero size. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46230) (comment: 02479_mysql_connect_to_self.sql) (in query: SELECT count() FROM mysql('127.0.0.1:9004', currentDatabase(), foo, 'default', '[HIDDEN]', SETTINGS connection_pool_size = 0)), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [38]) @ 0x000000000f82675e in /usr/bin/clickhouse 6. /build/src/Storages/MySQL/MySQLHelpers.cpp:30: DB::createMySQLPoolWithFailover(String const&, std::vector, std::allocator>> const&, String const&, String const&, DB::MySQLSettings const&) @ 0x000000001dcce493 in /usr/bin/clickhouse 7. /build/src/Storages/MySQL/MySQLHelpers.cpp:17: DB::createMySQLPoolWithFailover(DB::StorageMySQL::Configuration const&, DB::MySQLSettings const&) @ 0x000000001dcce407 in /usr/bin/clickhouse 8. /build/src/TableFunctions/TableFunctionMySQL.cpp:57: DB::TableFunctionMySQL::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a9cf6b1 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6480: DB::(anonymous namespace)::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&, bool) @ 0x000000001c926bcf in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6727: DB::(anonymous namespace)::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&) @ 0x000000001c92b018 in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6967: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea02 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 14. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:35.440160 [ 5625 ] {55327fb4-c787-40ea-95cf-d5664f0b15a9} TCPHandler: Code: 36. DB::Exception: Connection pool cannot have zero size. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [38]) @ 0x000000000f82675e in /usr/bin/clickhouse 6. /build/src/Storages/MySQL/MySQLHelpers.cpp:30: DB::createMySQLPoolWithFailover(String const&, std::vector, std::allocator>> const&, String const&, String const&, DB::MySQLSettings const&) @ 0x000000001dcce493 in /usr/bin/clickhouse 7. /build/src/Storages/MySQL/MySQLHelpers.cpp:17: DB::createMySQLPoolWithFailover(DB::StorageMySQL::Configuration const&, DB::MySQLSettings const&) @ 0x000000001dcce407 in /usr/bin/clickhouse 8. /build/src/TableFunctions/TableFunctionMySQL.cpp:57: DB::TableFunctionMySQL::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a9cf6b1 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6480: DB::(anonymous namespace)::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&, bool) @ 0x000000001c926bcf in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6727: DB::(anonymous namespace)::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&) @ 0x000000001c92b018 in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6967: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea02 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 14. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:37.165059 [ 5625 ] {830998a5-41aa-4a4b-993f-171df99b6da3} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 1. Bytes expected: 15.: While processing finalizeAggregation(CAST(unhex('0F00000030'), 'AggregateFunction(min, String)')). (CANNOT_READ_ALL_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52080) (comment: 02477_invalid_reads.sql) (in query: -- MIN, MAX AND FAMILY should check for errors in its input SELECT finalizeAggregation(CAST(unhex('0F00000030'), 'AggregateFunction(min, String)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:591: DB::SingleValueDataString::read(DB::ReadBuffer&, DB::ISerialization const&, DB::Arena*) @ 0x0000000014fcb213 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:1431: DB::AggregateFunctionsSingleValue>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014fc8600 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:10:37.165082 [ 672 ] {258d5818-adaf-4700-bf5b-80a3ef1d6abf} executeQuery: Code: 47. DB::Exception: Missing columns: '0x' while processing query: 'SELECT `0x`', required columns: '0x'. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52094) (comment: 02493_inconsistent_hex_and_binary_number.expect) (in query: select 0x ;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:37.166228 [ 5625 ] {830998a5-41aa-4a4b-993f-171df99b6da3} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 1. Bytes expected: 15.: While processing finalizeAggregation(CAST(unhex('0F00000030'), 'AggregateFunction(min, String)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:591: DB::SingleValueDataString::read(DB::ReadBuffer&, DB::ISerialization const&, DB::Arena*) @ 0x0000000014fcb213 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:1431: DB::AggregateFunctionsSingleValue>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014fc8600 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:10:37.167893 [ 672 ] {258d5818-adaf-4700-bf5b-80a3ef1d6abf} TCPHandler: Code: 47. DB::Exception: Missing columns: '0x' while processing query: 'SELECT `0x`', required columns: '0x'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:37.177656 [ 5625 ] {253b98fb-e5b3-4f63-8c86-2f112e93dabc} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 1. Bytes expected: 65535.: While processing finalizeAggregation(CAST(unhex('FFFF000030'), 'AggregateFunction(min, String)')). (CANNOT_READ_ALL_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52080) (comment: 02477_invalid_reads.sql) (in query: SELECT finalizeAggregation(CAST(unhex('FFFF000030'), 'AggregateFunction(min, String)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:0: DB::SingleValueDataString::read(DB::ReadBuffer&, DB::ISerialization const&, DB::Arena*) @ 0x0000000014fcb245 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:1431: DB::AggregateFunctionsSingleValue>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014fc8600 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:10:37.178606 [ 5625 ] {253b98fb-e5b3-4f63-8c86-2f112e93dabc} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 1. Bytes expected: 65535.: While processing finalizeAggregation(CAST(unhex('FFFF000030'), 'AggregateFunction(min, String)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:0: DB::SingleValueDataString::read(DB::ReadBuffer&, DB::ISerialization const&, DB::Arena*) @ 0x0000000014fcb245 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:1431: DB::AggregateFunctionsSingleValue>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014fc8600 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:10:37.637435 [ 5625 ] {9784ec1d-7540-462f-975f-0c8b9207180b} executeQuery: Code: 32. DB::Exception: Attempt to read after eof: While processing finalizeAggregation(CAST('', 'AggregateFunction(aggThrow(0.), UInt8)')). (ATTEMPT_TO_READ_AFTER_EOF) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52080) (comment: 02477_invalid_reads.sql) (in query: -- aggThrow should check for errors in its input SELECT finalizeAggregation(CAST('', 'AggregateFunction(aggThrow(0.), UInt8)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5e521e in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:262: DB::ReadBuffer::throwReadAfterEOF() @ 0x000000000b5e5191 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionAggThrow.cpp:101: DB::(anonymous namespace)::AggregateFunctionThrow::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001781f92b in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 2024.10.22 10:10:37.638609 [ 5625 ] {9784ec1d-7540-462f-975f-0c8b9207180b} TCPHandler: Code: 32. DB::Exception: Attempt to read after eof: While processing finalizeAggregation(CAST('', 'AggregateFunction(aggThrow(0.), UInt8)')). (ATTEMPT_TO_READ_AFTER_EOF), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5e521e in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:262: DB::ReadBuffer::throwReadAfterEOF() @ 0x000000000b5e5191 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionAggThrow.cpp:101: DB::(anonymous namespace)::AggregateFunctionThrow::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001781f92b in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 2024.10.22 10:10:37.768023 [ 5625 ] {abe55871-0d00-4b9a-9fd5-d05b0913e3cb} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 16. Bytes expected: 32.: While processing finalizeAggregation(CAST(unhex('01000000000000000100000000000000'), 'AggregateFunction(categoricalInformationValue, UInt8, UInt8)')). (CANNOT_READ_ALL_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52080) (comment: 02477_invalid_reads.sql) (in query: -- categoricalInformationValue should check for errors in its input SELECT finalizeAggregation(CAST(unhex('01000000000000000100000000000000'), 'AggregateFunction(categoricalInformationValue, UInt8, UInt8)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionCategoricalInformationValue.cpp:122: DB::AggregateFunctionCategoricalIV::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001781d08b in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 2024.10.22 10:10:37.769196 [ 5625 ] {abe55871-0d00-4b9a-9fd5-d05b0913e3cb} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 16. Bytes expected: 32.: While processing finalizeAggregation(CAST(unhex('01000000000000000100000000000000'), 'AggregateFunction(categoricalInformationValue, UInt8, UInt8)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionCategoricalInformationValue.cpp:122: DB::AggregateFunctionCategoricalIV::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001781d08b in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 2024.10.22 10:10:37.882852 [ 5625 ] {66a08e8d-35b4-4352-b44b-a4a219997d04} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 31. Bytes expected: 32.: While processing finalizeAggregation(CAST(unhex('0101000000000000000100000000000000020000000000000001000000000000'), 'AggregateFunction(categoricalInformationValue, Nullable(UInt8), UInt8)')). (CANNOT_READ_ALL_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52080) (comment: 02477_invalid_reads.sql) (in query: SELECT finalizeAggregation(CAST(unhex('0101000000000000000100000000000000020000000000000001000000000000'), 'AggregateFunction(categoricalInformationValue, Nullable(UInt8), UInt8)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionCategoricalInformationValue.cpp:122: DB::AggregateFunctionCategoricalIV::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001781d08b in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionNull.h:177: DB::AggregateFunctionNullBase>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017af2a61 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:10:37.891603 [ 5625 ] {66a08e8d-35b4-4352-b44b-a4a219997d04} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 31. Bytes expected: 32.: While processing finalizeAggregation(CAST(unhex('0101000000000000000100000000000000020000000000000001000000000000'), 'AggregateFunction(categoricalInformationValue, Nullable(UInt8), UInt8)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionCategoricalInformationValue.cpp:122: DB::AggregateFunctionCategoricalIV::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001781d08b in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionNull.h:177: DB::AggregateFunctionNullBase>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017af2a61 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:10:38.015694 [ 5625 ] {2e03b0af-34b4-42f1-94c1-f8a65463c378} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 4. Bytes expected: 6271.: While processing finalizeAggregation(CAST(unhex('5FF3001310132'), 'AggregateFunction(groupArray, String)')). (CANNOT_READ_ALL_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52080) (comment: 02477_invalid_reads.sql) (in query: -- groupArray should check for errors in its input SELECT finalizeAggregation(CAST(unhex('5FF3001310132'), 'AggregateFunction(groupArray, String)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionGroupArray.h:387: DB::GroupArrayNodeBase::read(DB::ReadBuffer&, DB::Arena*) @ 0x0000000014593711 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionGroupArray.h:650: DB::GroupArrayGeneralImpl>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000145bb6ab in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:10:38.016807 [ 5625 ] {2e03b0af-34b4-42f1-94c1-f8a65463c378} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 4. Bytes expected: 6271.: While processing finalizeAggregation(CAST(unhex('5FF3001310132'), 'AggregateFunction(groupArray, String)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionGroupArray.h:387: DB::GroupArrayNodeBase::read(DB::ReadBuffer&, DB::Arena*) @ 0x0000000014593711 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionGroupArray.h:650: DB::GroupArrayGeneralImpl>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000145bb6ab in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:10:38.139427 [ 5625 ] {defaddab-5bcd-4e12-a84f-eea6a565e28f} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 7. Bytes expected: 8.: While processing finalizeAggregation(CAST(unhex('FF000000000000000001000000000000000200000000000000'), 'AggregateFunction(groupArray, UInt64)')). (CANNOT_READ_ALL_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52080) (comment: 02477_invalid_reads.sql) (in query: SELECT finalizeAggregation(CAST(unhex('FF000000000000000001000000000000000200000000000000'), 'AggregateFunction(groupArray, UInt64)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:117: void DB::readPODBinary(unsigned long&, DB::ReadBuffer&) @ 0x0000000013c72162 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:1099: void DB::readBinary(unsigned long&, DB::ReadBuffer&) @ 0x0000000013c532bd in /usr/bin/clickhouse 9. /build/src/IO/ReadHelpers.h:1136: void DB::readBinaryEndian<(std::endian)57005, unsigned long>(unsigned long&, DB::ReadBuffer&) @ 0x0000000013dadcbd in /usr/bin/clickhouse 10. /build/src/IO/ReadHelpers.h:1143: void DB::readBinaryLittleEndian(unsigned long&, DB::ReadBuffer&) @ 0x0000000013dadc7d in /usr/bin/clickhouse 11. /build/src/AggregateFunctions/AggregateFunctionGroupArray.h:303: DB::GroupArrayNumericImpl>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000145a331f in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 22. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 2024.10.22 10:10:38.140429 [ 5625 ] {defaddab-5bcd-4e12-a84f-eea6a565e28f} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 7. Bytes expected: 8.: While processing finalizeAggregation(CAST(unhex('FF000000000000000001000000000000000200000000000000'), 'AggregateFunction(groupArray, UInt64)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:117: void DB::readPODBinary(unsigned long&, DB::ReadBuffer&) @ 0x0000000013c72162 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:1099: void DB::readBinary(unsigned long&, DB::ReadBuffer&) @ 0x0000000013c532bd in /usr/bin/clickhouse 9. /build/src/IO/ReadHelpers.h:1136: void DB::readBinaryEndian<(std::endian)57005, unsigned long>(unsigned long&, DB::ReadBuffer&) @ 0x0000000013dadcbd in /usr/bin/clickhouse 10. /build/src/IO/ReadHelpers.h:1143: void DB::readBinaryLittleEndian(unsigned long&, DB::ReadBuffer&) @ 0x0000000013dadc7d in /usr/bin/clickhouse 11. /build/src/AggregateFunctions/AggregateFunctionGroupArray.h:303: DB::GroupArrayNumericImpl>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000145a331f in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 22. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 2024.10.22 10:10:38.262393 [ 5625 ] {586d6fdd-b42d-4168-8bc6-64fd2c920b1c} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 24. Bytes expected: 120.: While processing finalizeAggregation(CAST(unhex('0FF00000000000000001000000000000000300000000000000'), 'AggregateFunction(groupArrayMovingSum, UInt64)')). (CANNOT_READ_ALL_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52080) (comment: 02477_invalid_reads.sql) (in query: -- Same for groupArrayMovingXXXX SELECT finalizeAggregation(CAST(unhex('0FF00000000000000001000000000000000300000000000000'), 'AggregateFunction(groupArrayMovingSum, UInt64)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:160: DB::MovingImpl, DB::MovingSumData>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000177953fe in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 2024.10.22 10:10:38.263469 [ 5625 ] {586d6fdd-b42d-4168-8bc6-64fd2c920b1c} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 24. Bytes expected: 120.: While processing finalizeAggregation(CAST(unhex('0FF00000000000000001000000000000000300000000000000'), 'AggregateFunction(groupArrayMovingSum, UInt64)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:160: DB::MovingImpl, DB::MovingSumData>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000177953fe in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 2024.10.22 10:10:38.378501 [ 5625 ] {79f1cfb0-163a-433e-b06b-f52657f47688} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 24. Bytes expected: 120.: While processing finalizeAggregation(CAST(unhex('0FF00000000000000001000000000000000300000000000000'), 'AggregateFunction(groupArrayMovingAvg, UInt64)')). (CANNOT_READ_ALL_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52080) (comment: 02477_invalid_reads.sql) (in query: SELECT finalizeAggregation(CAST(unhex('0FF00000000000000001000000000000000300000000000000'), 'AggregateFunction(groupArrayMovingAvg, UInt64)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:160: DB::MovingImpl, DB::MovingAvgData>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000177e319e in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 2024.10.22 10:10:38.379531 [ 5625 ] {79f1cfb0-163a-433e-b06b-f52657f47688} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 24. Bytes expected: 120.: While processing finalizeAggregation(CAST(unhex('0FF00000000000000001000000000000000300000000000000'), 'AggregateFunction(groupArrayMovingAvg, UInt64)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:160: DB::MovingImpl, DB::MovingAvgData>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000177e319e in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 2024.10.22 10:10:38.517179 [ 5625 ] {4f6efab6-cb32-43d3-b605-75e78c3c6bdc} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 46. Bytes expected: 80.: While processing finalizeAggregation(CAST(unhex('00000000000024C000000000000018C00500000000000024C0000000000000F03F00000000000022C0000000000000F03F00000000000020C0000000000000'), 'AggregateFunction(histogram(5), Int64)')). (CANNOT_READ_ALL_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52080) (comment: 02477_invalid_reads.sql) (in query: -- Histogram SELECT finalizeAggregation(CAST(unhex('00000000000024C000000000000018C00500000000000024C0000000000000F03F00000000000022C0000000000000F03F00000000000020C0000000000000'), 'AggregateFunction(histogram(5), Int64)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionHistogram.h:301: DB::AggregateFunctionHistogramData::read(DB::ReadBuffer&, unsigned int) @ 0x0000000017606c7a in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionHistogram.h:361: DB::AggregateFunctionHistogram::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017615d66 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:10:38.518544 [ 5625 ] {4f6efab6-cb32-43d3-b605-75e78c3c6bdc} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 46. Bytes expected: 80.: While processing finalizeAggregation(CAST(unhex('00000000000024C000000000000018C00500000000000024C0000000000000F03F00000000000022C0000000000000F03F00000000000020C0000000000000'), 'AggregateFunction(histogram(5), Int64)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionHistogram.h:301: DB::AggregateFunctionHistogramData::read(DB::ReadBuffer&, unsigned int) @ 0x0000000017606c7a in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionHistogram.h:361: DB::AggregateFunctionHistogram::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017615d66 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:10:38.674598 [ 5625 ] {00518df5-06cb-4da5-a878-da33aee985bc} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 56. Bytes expected: 120.: While processing finalizeAggregation(CAST(unhex('0F01000000000000244000000000000026400000000000002840000000000000244000000000000026400000000000002840000000000000F03F'), 'AggregateFunction(mannWhitneyUTest, Float64, UInt8)')). (CANNOT_READ_ALL_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52080) (comment: 02477_invalid_reads.sql) (in query: -- StatisticalSample SELECT finalizeAggregation(CAST(unhex('0F01000000000000244000000000000026400000000000002840000000000000244000000000000026400000000000002840000000000000F03F'), 'AggregateFunction(mannWhitneyUTest, Float64, UInt8)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/StatCommon.h:115: DB::StatisticalSample::read(DB::ReadBuffer&, DB::Arena*) @ 0x0000000017823eac in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionMannWhitney.h:227: DB::AggregateFunctionMannWhitney::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017828c5b in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:10:38.675721 [ 5625 ] {00518df5-06cb-4da5-a878-da33aee985bc} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 56. Bytes expected: 120.: While processing finalizeAggregation(CAST(unhex('0F01000000000000244000000000000026400000000000002840000000000000244000000000000026400000000000002840000000000000F03F'), 'AggregateFunction(mannWhitneyUTest, Float64, UInt8)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/StatCommon.h:115: DB::StatisticalSample::read(DB::ReadBuffer&, DB::Arena*) @ 0x0000000017823eac in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionMannWhitney.h:227: DB::AggregateFunctionMannWhitney::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017828c5b in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:10:38.808662 [ 5625 ] {563f58b0-9f7b-4bc1-b152-3d6746cbf185} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 64. Bytes expected: 240.: While processing finalizeAggregation(CAST(unhex('0F010000000000000001000000000000000300000000000000FFFFFFFFFFFFFFFF03340B9B047F000001000000000000000500000065000000FFFFFFFFFFFFFFFF'), 'AggregateFunction(maxIntersections, UInt8, UInt8)')). (CANNOT_READ_ALL_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52080) (comment: 02477_invalid_reads.sql) (in query: -- maxIntersections SELECT finalizeAggregation(CAST(unhex('0F010000000000000001000000000000000300000000000000FFFFFFFFFFFFFFFF03340B9B047F000001000000000000000500000065000000FFFFFFFFFFFFFFFF'), 'AggregateFunction(maxIntersections, UInt8, UInt8)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionMaxIntersections.h:149: DB::AggregateFunctionIntersectionsMax::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000175d6133 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 2024.10.22 10:10:38.810370 [ 5625 ] {563f58b0-9f7b-4bc1-b152-3d6746cbf185} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 64. Bytes expected: 240.: While processing finalizeAggregation(CAST(unhex('0F010000000000000001000000000000000300000000000000FFFFFFFFFFFFFFFF03340B9B047F000001000000000000000500000065000000FFFFFFFFFFFFFFFF'), 'AggregateFunction(maxIntersections, UInt8, UInt8)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionMaxIntersections.h:149: DB::AggregateFunctionIntersectionsMax::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000175d6133 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 2024.10.22 10:10:38.974834 [ 5625 ] {31de0061-e41f-4666-8db8-0f72c00182cd} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 44. Bytes expected: 65.: While processing finalizeAggregation(CAST(unhex('FFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'), 'AggregateFunction(sequenceNextNode(\'forward\', \'head\'), DateTime, Nullable(String), UInt8, Nullable(UInt8))')). (CANNOT_READ_ALL_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52080) (comment: 02477_invalid_reads.sql) (in query: -- sequenceNextNode (This was fine because it would fail in the next readBinary call, but better to add a test) SELECT finalizeAggregation(CAST(unhex('FFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'), 'AggregateFunction(sequenceNextNode(''forward'', ''head''), DateTime, Nullable(String), UInt8, Nullable(UInt8))')) SETTINGS allow_experimental_funnel_functions=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:96: DB::NodeBase, 64ul>::read(DB::ReadBuffer&, DB::Arena*) @ 0x000000001783d03e in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:334: DB::SequenceNextNodeImpl>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000178425fe in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionNull.h:177: DB::AggregateFunctionNullBase>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017af2a61 in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 11. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 2024.10.22 10:10:38.976107 [ 5625 ] {31de0061-e41f-4666-8db8-0f72c00182cd} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 44. Bytes expected: 65.: While processing finalizeAggregation(CAST(unhex('FFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'), 'AggregateFunction(sequenceNextNode(\'forward\', \'head\'), DateTime, Nullable(String), UInt8, Nullable(UInt8))')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:96: DB::NodeBase, 64ul>::read(DB::ReadBuffer&, DB::Arena*) @ 0x000000001783d03e in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:334: DB::SequenceNextNodeImpl>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000178425fe in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionNull.h:177: DB::AggregateFunctionNullBase>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017af2a61 in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 11. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 2024.10.22 10:10:39.123318 [ 5625 ] {36e246c8-26b4-46d4-be88-d0af3c1c69ad} executeQuery: Code: 128. DB::Exception: Too large node state size: While processing finalizeAggregation(CAST(unhex('FFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'), 'AggregateFunction(sequenceNextNode(\'forward\', \'head\'), DateTime, Nullable(String), UInt8, Nullable(UInt8))')). (TOO_LARGE_ARRAY_SIZE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52080) (comment: 02477_invalid_reads.sql) (in query: -- Fuzzer (ALL) SELECT finalizeAggregation(CAST(unhex('FFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'), 'AggregateFunction(sequenceNextNode(\'forward\', \'head\'), DateTime, Nullable(String), UInt8, Nullable(UInt8))')) SETTINGS allow_experimental_funnel_functions = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5e521e in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:90: DB::NodeBase, 64ul>::read(DB::ReadBuffer&, DB::Arena*) @ 0x000000001783cfc2 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:334: DB::SequenceNextNodeImpl>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000178425fe in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionNull.h:177: DB::AggregateFunctionNullBase>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017af2a61 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:10:39.124290 [ 5625 ] {36e246c8-26b4-46d4-be88-d0af3c1c69ad} TCPHandler: Code: 128. DB::Exception: Too large node state size: While processing finalizeAggregation(CAST(unhex('FFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'), 'AggregateFunction(sequenceNextNode(\'forward\', \'head\'), DateTime, Nullable(String), UInt8, Nullable(UInt8))')). (TOO_LARGE_ARRAY_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5e521e in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:90: DB::NodeBase, 64ul>::read(DB::ReadBuffer&, DB::Arena*) @ 0x000000001783cfc2 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:334: DB::SequenceNextNodeImpl>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000178425fe in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionNull.h:177: DB::AggregateFunctionNullBase>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017af2a61 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:10:39.138221 [ 5625 ] {8e251be1-8358-4703-83f7-b86a4520d3a1} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 44. Bytes expected: 65.: While processing finalizeAggregation(CAST(unhex('FFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'), 'AggregateFunction(sequenceNextNode(\'forward\', \'head\'), DateTime, Nullable(String), UInt8, Nullable(UInt8))')). (CANNOT_READ_ALL_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52080) (comment: 02477_invalid_reads.sql) (in query: -- Fuzzer 2 (UBSAN) SELECT finalizeAggregation(CAST(unhex('FFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'), 'AggregateFunction(sequenceNextNode(\'forward\', \'head\'), DateTime, Nullable(String), UInt8, Nullable(UInt8))')) SETTINGS allow_experimental_funnel_functions = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:96: DB::NodeBase, 64ul>::read(DB::ReadBuffer&, DB::Arena*) @ 0x000000001783d03e in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:334: DB::SequenceNextNodeImpl>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000178425fe in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionNull.h:177: DB::AggregateFunctionNullBase>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017af2a61 in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 11. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 2024.10.22 10:10:39.139541 [ 5625 ] {8e251be1-8358-4703-83f7-b86a4520d3a1} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 44. Bytes expected: 65.: While processing finalizeAggregation(CAST(unhex('FFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'), 'AggregateFunction(sequenceNextNode(\'forward\', \'head\'), DateTime, Nullable(String), UInt8, Nullable(UInt8))')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:96: DB::NodeBase, 64ul>::read(DB::ReadBuffer&, DB::Arena*) @ 0x000000001783d03e in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:334: DB::SequenceNextNodeImpl>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000178425fe in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionNull.h:177: DB::AggregateFunctionNullBase>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017af2a61 in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 11. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 2024.10.22 10:10:39.276683 [ 5625 ] {582f890a-39b3-4858-9d3e-f5eb01bb369d} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 8. Bytes expected: 32.: While processing finalizeAggregation(CAST(unhex('04128345AA2BC97190'), 'AggregateFunction(uniqUpTo(10), String)')). (CANNOT_READ_ALL_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52080) (comment: 02477_invalid_reads.sql) (in query: -- uniqUpTo SELECT finalizeAggregation(CAST(unhex('04128345AA2BC97190'), 'AggregateFunction(uniqUpTo(10), String)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionUniqUpTo.h:112: DB::AggregateFunctionUniqUpToData::read(DB::ReadBuffer&, char8_t) @ 0x00000000173de616 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionUniqUpTo.h:210: DB::AggregateFunctionUniqUpTo::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017407887 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:10:39.277655 [ 5625 ] {582f890a-39b3-4858-9d3e-f5eb01bb369d} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 8. Bytes expected: 32.: While processing finalizeAggregation(CAST(unhex('04128345AA2BC97190'), 'AggregateFunction(uniqUpTo(10), String)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionUniqUpTo.h:112: DB::AggregateFunctionUniqUpToData::read(DB::ReadBuffer&, char8_t) @ 0x00000000173de616 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionUniqUpTo.h:210: DB::AggregateFunctionUniqUpTo::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017407887 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:10:39.425153 [ 5625 ] {2d213304-f44f-4b91-bc78-966660e5c589} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 8. Bytes expected: 120.: While processing finalizeAggregation(CAST(unhex('0F0000000000000000'), 'AggregateFunction(quantileExact, UInt64)')). (CANNOT_READ_ALL_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52080) (comment: 02477_invalid_reads.sql) (in query: -- quantiles SELECT finalizeAggregation(CAST(unhex('0F0000000000000000'), 'AggregateFunction(quantileExact, UInt64)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/QuantileExact.h:65: DB::QuantileExactBase>::deserialize(DB::ReadBuffer&) @ 0x000000001480d597 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:193: DB::AggregateFunctionQuantile, DB::NameQuantileExact, false, void, false>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001480b1d7 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:10:39.426225 [ 5625 ] {2d213304-f44f-4b91-bc78-966660e5c589} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 8. Bytes expected: 120.: While processing finalizeAggregation(CAST(unhex('0F0000000000000000'), 'AggregateFunction(quantileExact, UInt64)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/QuantileExact.h:65: DB::QuantileExactBase>::deserialize(DB::ReadBuffer&) @ 0x000000001480d597 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:193: DB::AggregateFunctionQuantile, DB::NameQuantileExact, false, void, false>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001480b1d7 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:10:39.541233 [ 5625 ] {68c314e0-939e-40be-abb7-8af57e7e951a} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 8. Bytes expected: 120.: While processing finalizeAggregation(CAST(unhex('0F000000000000803F'), 'AggregateFunction(quantileTDigest, UInt64)')). (CANNOT_READ_ALL_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52080) (comment: 02477_invalid_reads.sql) (in query: SELECT finalizeAggregation(CAST(unhex('0F000000000000803F'), 'AggregateFunction(quantileTDigest, UInt64)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/QuantileTDigest.h:319: DB::QuantileTDigest::deserialize(DB::ReadBuffer&) @ 0x0000000014c9c51c in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:193: DB::AggregateFunctionQuantile, DB::NameQuantileTDigest, false, float, false>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014c99977 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:10:39.542726 [ 5625 ] {68c314e0-939e-40be-abb7-8af57e7e951a} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 8. Bytes expected: 120.: While processing finalizeAggregation(CAST(unhex('0F000000000000803F'), 'AggregateFunction(quantileTDigest, UInt64)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5e46cc in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5e44ef in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/QuantileTDigest.h:319: DB::QuantileTDigest::deserialize(DB::ReadBuffer&) @ 0x0000000014c9c51c in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:193: DB::AggregateFunctionQuantile, DB::NameQuantileTDigest, false, float, false>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014c99977 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba2ea6a in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ec9b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b21a833 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21a5ab in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21daa6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21da40 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b21d9e0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b21d988 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:10:45.426607 [ 672 ] {38773acb-9019-4b47-8630-8fca59d7a414} executeQuery: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00, current rows: 30.00: While executing Numbers. (TOO_MANY_ROWS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52280) (comment: 02465_limit_trivial_max_rows_to_read.sql) (in query: SELECT number FROM numbers(30);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b87c2a4 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f10f1 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:10:45.427917 [ 672 ] {38773acb-9019-4b47-8630-8fca59d7a414} TCPHandler: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00, current rows: 30.00: While executing Numbers. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b87c2a4 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f10f1 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:10:45.445851 [ 672 ] {ced4881d-3adf-4305-93d7-04b417797c9e} executeQuery: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00, current rows: 30.00: While executing Numbers. (TOO_MANY_ROWS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52280) (comment: 02465_limit_trivial_max_rows_to_read.sql) (in query: SELECT number FROM numbers(30) LIMIT 21;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b87c2a4 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f10f1 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:10:45.447207 [ 672 ] {ced4881d-3adf-4305-93d7-04b417797c9e} TCPHandler: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00, current rows: 30.00: While executing Numbers. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b87c2a4 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f10f1 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:10:45.666039 [ 672 ] {dba69182-11aa-469d-b369-8238c825db2f} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 20.00, current rows: 100.00. (TOO_MANY_ROWS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52280) (comment: 02465_limit_trivial_max_rows_to_read.sql) (in query: SELECT a FROM t_max_rows_to_read LIMIT 11 offset 11;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8a5e39 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee9a1c3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1786: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8aa6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:45.667123 [ 672 ] {dba69182-11aa-469d-b369-8238c825db2f} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 20.00, current rows: 100.00. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8a5e39 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee9a1c3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1786: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8aa6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:45.687896 [ 672 ] {4d2b2a10-b33a-47e1-9f8d-eb9ba1551dd0} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 20.00, current rows: 52.00. (TOO_MANY_ROWS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52280) (comment: 02465_limit_trivial_max_rows_to_read.sql) (in query: SELECT a FROM t_max_rows_to_read WHERE a > 50 LIMIT 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8a5e39 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee9a1c3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1786: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8aa6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:45.688894 [ 672 ] {4d2b2a10-b33a-47e1-9f8d-eb9ba1551dd0} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 20.00, current rows: 52.00. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8a5e39 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee9a1c3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1786: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8aa6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:52.512728 [ 6848 ] {fb6903ce-df9d-4b5a-8226-7395c030b3ab} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34400) (comment: 02461_cancel_finish_race.sh) (in query: KILL QUERY WHERE current_database = 'test_4gq1ktdw' SYNC FORMAT Null), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001ccae2fb in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e6d4ca0 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e6d537c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d4c16 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:52.514463 [ 6848 ] {fb6903ce-df9d-4b5a-8226-7395c030b3ab} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001ccae2fb in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e6d4ca0 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e6d537c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d4c16 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:52.515641 [ 5625 ] {c15d37d8-2c50-49b0-b1e0-82ae2e2f3a67} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34394) (comment: 02461_cancel_finish_race.sh) (in query: KILL QUERY WHERE current_database = 'test_4gq1ktdw' SYNC FORMAT Null), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001ccae2fb in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e6d4ca0 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e6d537c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d4c16 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:52.517197 [ 5625 ] {c15d37d8-2c50-49b0-b1e0-82ae2e2f3a67} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001ccae2fb in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e6d4ca0 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e6d537c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d4c16 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:52.687322 [ 12920 ] {6e2900e5-9929-4767-a3ef-51ba66a15fa4} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34422) (comment: 02461_cancel_finish_race.sh) (in query: KILL QUERY WHERE current_database = 'test_4gq1ktdw' SYNC FORMAT Null), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001ccae2fb in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e6d4ca0 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e6d537c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d4c16 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:52.689000 [ 12920 ] {6e2900e5-9929-4767-a3ef-51ba66a15fa4} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001ccae2fb in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e6d4ca0 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e6d537c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d4c16 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:56.601490 [ 12920 ] {f52502d2-87ee-4cb0-a833-78309a7b7291} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34616) (comment: 02461_cancel_finish_race.sh) (in query: KILL QUERY WHERE current_database = 'test_4gq1ktdw' SYNC FORMAT Null), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:437: DB::QueryStatus::addPipelineExecutor(DB::PipelineExecutor*) @ 0x000000001ccadfff in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:63: DB::PipelineExecutor::PipelineExecutor(std::shared_ptr, std::allocator>>>&, std::shared_ptr) @ 0x000000001e6d403d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::PipelineExecutor* std::construct_at[abi:v15000], std::allocator>>>&, std::shared_ptr&, DB::PipelineExecutor*>(DB::PipelineExecutor*, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b8720e7 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000], std::allocator>>>&, std::shared_ptr&, void, void>(std::allocator&, DB::PipelineExecutor*, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b871e89 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000], std::allocator>>>&, std::shared_ptr&>(std::allocator, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b871b8f in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr, std::allocator>>>&, std::shared_ptr&, void>(std::allocator const&, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b871a02 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000], std::allocator>>>&, std::shared_ptr&, void>(std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b865a8e in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:106: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long) @ 0x000000001e6f668a in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:153: DB::PullingAsyncPipelineExecutor::pull(DB::Block&, unsigned long) @ 0x000000001e6f6b89 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:914: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f69f in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:56.881006 [ 12930 ] {ac8117b4-1af4-4093-91ea-c36a366f0c6f} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34662) (comment: 02461_cancel_finish_race.sh) (in query: KILL QUERY WHERE current_database = 'test_4gq1ktdw' SYNC FORMAT Null), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:437: DB::QueryStatus::addPipelineExecutor(DB::PipelineExecutor*) @ 0x000000001ccadfff in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:63: DB::PipelineExecutor::PipelineExecutor(std::shared_ptr, std::allocator>>>&, std::shared_ptr) @ 0x000000001e6d403d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::PipelineExecutor* std::construct_at[abi:v15000], std::allocator>>>&, std::shared_ptr&, DB::PipelineExecutor*>(DB::PipelineExecutor*, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b8720e7 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000], std::allocator>>>&, std::shared_ptr&, void, void>(std::allocator&, DB::PipelineExecutor*, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b871e89 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000], std::allocator>>>&, std::shared_ptr&>(std::allocator, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b871b8f in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr, std::allocator>>>&, std::shared_ptr&, void>(std::allocator const&, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b871a02 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000], std::allocator>>>&, std::shared_ptr&, void>(std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b865a8e in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:47: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6faf48 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e6fb081 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterKillQueryQuery.cpp:426: DB::InterpreterKillQueryQuery::getSelectResult(String const&, String const&) @ 0x000000001ca9240d in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterKillQueryQuery.cpp:215: DB::InterpreterKillQueryQuery::execute() @ 0x000000001ca8e826 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:56.881156 [ 12920 ] {f52502d2-87ee-4cb0-a833-78309a7b7291} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:437: DB::QueryStatus::addPipelineExecutor(DB::PipelineExecutor*) @ 0x000000001ccadfff in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:63: DB::PipelineExecutor::PipelineExecutor(std::shared_ptr, std::allocator>>>&, std::shared_ptr) @ 0x000000001e6d403d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::PipelineExecutor* std::construct_at[abi:v15000], std::allocator>>>&, std::shared_ptr&, DB::PipelineExecutor*>(DB::PipelineExecutor*, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b8720e7 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000], std::allocator>>>&, std::shared_ptr&, void, void>(std::allocator&, DB::PipelineExecutor*, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b871e89 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000], std::allocator>>>&, std::shared_ptr&>(std::allocator, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b871b8f in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr, std::allocator>>>&, std::shared_ptr&, void>(std::allocator const&, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b871a02 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000], std::allocator>>>&, std::shared_ptr&, void>(std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b865a8e in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:106: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long) @ 0x000000001e6f668a in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:153: DB::PullingAsyncPipelineExecutor::pull(DB::Block&, unsigned long) @ 0x000000001e6f6b89 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:914: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f69f in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:56.881204 [ 12925 ] {a5572846-5ac4-4b5d-b455-c59f072b73a1} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34632) (comment: 02461_cancel_finish_race.sh) (in query: KILL QUERY WHERE current_database = 'test_4gq1ktdw' SYNC FORMAT Null), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001ccae2fb in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e6d4ca0 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e6d537c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d4c16 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:56.881257 [ 12924 ] {05d18ced-3815-4ece-b876-5c4771764486} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34628) (comment: 02461_cancel_finish_race.sh) (in query: KILL QUERY WHERE current_database = 'test_4gq1ktdw' SYNC FORMAT Null), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001ccae2fb in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e6d4ca0 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e6d537c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d4c16 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:56.883101 [ 12924 ] {05d18ced-3815-4ece-b876-5c4771764486} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001ccae2fb in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e6d4ca0 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e6d537c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d4c16 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:56.883282 [ 12925 ] {a5572846-5ac4-4b5d-b455-c59f072b73a1} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001ccae2fb in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e6d4ca0 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e6d537c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d4c16 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:56.909909 [ 12930 ] {ac8117b4-1af4-4093-91ea-c36a366f0c6f} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:437: DB::QueryStatus::addPipelineExecutor(DB::PipelineExecutor*) @ 0x000000001ccadfff in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:63: DB::PipelineExecutor::PipelineExecutor(std::shared_ptr, std::allocator>>>&, std::shared_ptr) @ 0x000000001e6d403d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::PipelineExecutor* std::construct_at[abi:v15000], std::allocator>>>&, std::shared_ptr&, DB::PipelineExecutor*>(DB::PipelineExecutor*, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b8720e7 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000], std::allocator>>>&, std::shared_ptr&, void, void>(std::allocator&, DB::PipelineExecutor*, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b871e89 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000], std::allocator>>>&, std::shared_ptr&>(std::allocator, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b871b8f in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr, std::allocator>>>&, std::shared_ptr&, void>(std::allocator const&, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b871a02 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000], std::allocator>>>&, std::shared_ptr&, void>(std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b865a8e in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:47: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6faf48 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e6fb081 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterKillQueryQuery.cpp:426: DB::InterpreterKillQueryQuery::getSelectResult(String const&, String const&) @ 0x000000001ca9240d in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterKillQueryQuery.cpp:215: DB::InterpreterKillQueryQuery::execute() @ 0x000000001ca8e826 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:10:58.505606 [ 12933 ] {7f2b385f-886c-4673-bd9f-25343631fd14} executeQuery: Code: 36. DB::Exception: Bad hdfs url: . It should have structure 'hdfs://:/'. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56490) (comment: 02458_empty_hdfs_url.sql) (in query: SELECT * FROM hdfsCluster('test_shard_localhost', '', 'TSV');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/HDFS/HDFSCommon.cpp:199: DB::checkHDFSURL(String const&) @ 0x000000001ae97af9 in /usr/bin/clickhouse 7. /build/src/Storages/HDFS/StorageHDFSCluster.cpp:53: DB::StorageHDFSCluster::StorageHDFSCluster(std::shared_ptr, String const&, String const&, DB::StorageID const&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, bool) @ 0x000000001ae99d1c in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageHDFSCluster* std::construct_at[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, DB::StorageHDFSCluster*>(DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2f7f in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void, void>(std::allocator&, DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2cd5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool>(std::allocator, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2963 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::allocator const&, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2775 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c1a3b in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionHDFSCluster.cpp:40: DB::TableFunctionHDFSCluster::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a9c1635 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9806c7 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 16. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 17. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:10:58.506712 [ 12933 ] {7f2b385f-886c-4673-bd9f-25343631fd14} TCPHandler: Code: 36. DB::Exception: Bad hdfs url: . It should have structure 'hdfs://:/'. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/HDFS/HDFSCommon.cpp:199: DB::checkHDFSURL(String const&) @ 0x000000001ae97af9 in /usr/bin/clickhouse 7. /build/src/Storages/HDFS/StorageHDFSCluster.cpp:53: DB::StorageHDFSCluster::StorageHDFSCluster(std::shared_ptr, String const&, String const&, DB::StorageID const&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, bool) @ 0x000000001ae99d1c in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageHDFSCluster* std::construct_at[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, DB::StorageHDFSCluster*>(DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2f7f in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void, void>(std::allocator&, DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2cd5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool>(std::allocator, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2963 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::allocator const&, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2775 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c1a3b in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionHDFSCluster.cpp:40: DB::TableFunctionHDFSCluster::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a9c1635 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9806c7 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 16. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 17. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:10:58.514075 [ 12933 ] {f79897c2-dd55-4225-ac3b-06ad018337b2} executeQuery: Code: 36. DB::Exception: Bad hdfs url: . It should have structure 'hdfs://:/'. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56490) (comment: 02458_empty_hdfs_url.sql) (in query: SELECT * FROM hdfsCluster('test_shard_localhost', ' ', 'TSV');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/HDFS/HDFSCommon.cpp:199: DB::checkHDFSURL(String const&) @ 0x000000001ae97af9 in /usr/bin/clickhouse 7. /build/src/Storages/HDFS/StorageHDFSCluster.cpp:53: DB::StorageHDFSCluster::StorageHDFSCluster(std::shared_ptr, String const&, String const&, DB::StorageID const&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, bool) @ 0x000000001ae99d1c in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageHDFSCluster* std::construct_at[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, DB::StorageHDFSCluster*>(DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2f7f in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void, void>(std::allocator&, DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2cd5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool>(std::allocator, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2963 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::allocator const&, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2775 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c1a3b in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionHDFSCluster.cpp:40: DB::TableFunctionHDFSCluster::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a9c1635 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9806c7 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 16. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 17. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:10:58.514915 [ 12933 ] {f79897c2-dd55-4225-ac3b-06ad018337b2} TCPHandler: Code: 36. DB::Exception: Bad hdfs url: . It should have structure 'hdfs://:/'. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/HDFS/HDFSCommon.cpp:199: DB::checkHDFSURL(String const&) @ 0x000000001ae97af9 in /usr/bin/clickhouse 7. /build/src/Storages/HDFS/StorageHDFSCluster.cpp:53: DB::StorageHDFSCluster::StorageHDFSCluster(std::shared_ptr, String const&, String const&, DB::StorageID const&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, bool) @ 0x000000001ae99d1c in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageHDFSCluster* std::construct_at[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, DB::StorageHDFSCluster*>(DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2f7f in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void, void>(std::allocator&, DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2cd5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool>(std::allocator, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2963 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::allocator const&, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2775 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c1a3b in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionHDFSCluster.cpp:40: DB::TableFunctionHDFSCluster::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a9c1635 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9806c7 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 16. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 17. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:10:58.521328 [ 12933 ] {2d9704d8-19cc-4b6b-9b76-f166c9a51b7d} executeQuery: Code: 36. DB::Exception: Bad hdfs url: /. It should have structure 'hdfs://:/'. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56490) (comment: 02458_empty_hdfs_url.sql) (in query: SELECT * FROM hdfsCluster('test_shard_localhost', '/', 'TSV');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/HDFS/HDFSCommon.cpp:199: DB::checkHDFSURL(String const&) @ 0x000000001ae97af9 in /usr/bin/clickhouse 7. /build/src/Storages/HDFS/StorageHDFSCluster.cpp:53: DB::StorageHDFSCluster::StorageHDFSCluster(std::shared_ptr, String const&, String const&, DB::StorageID const&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, bool) @ 0x000000001ae99d1c in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageHDFSCluster* std::construct_at[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, DB::StorageHDFSCluster*>(DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2f7f in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void, void>(std::allocator&, DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2cd5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool>(std::allocator, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2963 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::allocator const&, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2775 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c1a3b in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionHDFSCluster.cpp:40: DB::TableFunctionHDFSCluster::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a9c1635 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9806c7 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 16. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 17. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:10:58.522246 [ 12933 ] {2d9704d8-19cc-4b6b-9b76-f166c9a51b7d} TCPHandler: Code: 36. DB::Exception: Bad hdfs url: /. It should have structure 'hdfs://:/'. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/HDFS/HDFSCommon.cpp:199: DB::checkHDFSURL(String const&) @ 0x000000001ae97af9 in /usr/bin/clickhouse 7. /build/src/Storages/HDFS/StorageHDFSCluster.cpp:53: DB::StorageHDFSCluster::StorageHDFSCluster(std::shared_ptr, String const&, String const&, DB::StorageID const&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, bool) @ 0x000000001ae99d1c in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageHDFSCluster* std::construct_at[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, DB::StorageHDFSCluster*>(DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2f7f in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void, void>(std::allocator&, DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2cd5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool>(std::allocator, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2963 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::allocator const&, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2775 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c1a3b in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionHDFSCluster.cpp:40: DB::TableFunctionHDFSCluster::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a9c1635 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9806c7 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 16. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 17. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:10:58.542177 [ 12933 ] {c757d757-3ed4-42e9-85c4-d93edc37c154} executeQuery: Code: 36. DB::Exception: Bad hdfs url: http/. It should have structure 'hdfs://:/'. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56490) (comment: 02458_empty_hdfs_url.sql) (in query: SELECT * FROM hdfsCluster('test_shard_localhost', 'http/', 'TSV');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/HDFS/HDFSCommon.cpp:199: DB::checkHDFSURL(String const&) @ 0x000000001ae97af9 in /usr/bin/clickhouse 7. /build/src/Storages/HDFS/StorageHDFSCluster.cpp:53: DB::StorageHDFSCluster::StorageHDFSCluster(std::shared_ptr, String const&, String const&, DB::StorageID const&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, bool) @ 0x000000001ae99d1c in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageHDFSCluster* std::construct_at[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, DB::StorageHDFSCluster*>(DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2f7f in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void, void>(std::allocator&, DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2cd5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool>(std::allocator, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2963 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::allocator const&, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2775 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c1a3b in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionHDFSCluster.cpp:40: DB::TableFunctionHDFSCluster::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a9c1635 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9806c7 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 16. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 17. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:10:58.543193 [ 12933 ] {c757d757-3ed4-42e9-85c4-d93edc37c154} TCPHandler: Code: 36. DB::Exception: Bad hdfs url: http/. It should have structure 'hdfs://:/'. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/HDFS/HDFSCommon.cpp:199: DB::checkHDFSURL(String const&) @ 0x000000001ae97af9 in /usr/bin/clickhouse 7. /build/src/Storages/HDFS/StorageHDFSCluster.cpp:53: DB::StorageHDFSCluster::StorageHDFSCluster(std::shared_ptr, String const&, String const&, DB::StorageID const&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, bool) @ 0x000000001ae99d1c in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageHDFSCluster* std::construct_at[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, DB::StorageHDFSCluster*>(DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2f7f in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void, void>(std::allocator&, DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2cd5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool>(std::allocator, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2963 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::allocator const&, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c2775 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9c1a3b in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionHDFSCluster.cpp:40: DB::TableFunctionHDFSCluster::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a9c1635 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9806c7 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 16. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 17. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:11:00.528718 [ 12925 ] {04870219-8894-4a9c-8790-e441a9318883} executeQuery: Code: 252. DB::Exception: Too many parts (5 with average size of 268.00 B) in table 'test_7j1va5k7.test_02521_insert_delay (ee2f6b36-8381-49c9-bc0c-c82759752e2a)'. Merges are processing significantly slower than inserts. (TOO_MANY_PARTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56550) (comment: 02521_incorrect_dealy_for_insert_bug_44902.sh) (in query: INSERT INTO test_02521_insert_delay VALUES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001def7d88 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001deaa284 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e3abc2c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001ebcd539 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd515 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd4f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd4d5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd49d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcc8b5 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:93: DB::PushingPipelineExecutor::start() @ 0x000000001e6ff916 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:841: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e65144a in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:11:00.561880 [ 12925 ] {04870219-8894-4a9c-8790-e441a9318883} TCPHandler: Code: 252. DB::Exception: Too many parts (5 with average size of 268.00 B) in table 'test_7j1va5k7.test_02521_insert_delay (ee2f6b36-8381-49c9-bc0c-c82759752e2a)'. Merges are processing significantly slower than inserts. (TOO_MANY_PARTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001def7d88 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001deaa284 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e3abc2c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001ebcd539 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd515 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd4f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd4d5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd49d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcc8b5 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:93: DB::PushingPipelineExecutor::start() @ 0x000000001e6ff916 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:841: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e65144a in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:11:06.577737 [ 5625 ] {a3e1b68e-040f-4de6-ba4d-0afd34a45f4e} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56940) (comment: 02461_cancel_finish_race.sh) (in query: KILL QUERY WHERE current_database = 'test_4gq1ktdw' SYNC FORMAT Null), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:437: DB::QueryStatus::addPipelineExecutor(DB::PipelineExecutor*) @ 0x000000001ccadfff in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:63: DB::PipelineExecutor::PipelineExecutor(std::shared_ptr, std::allocator>>>&, std::shared_ptr) @ 0x000000001e6d403d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::PipelineExecutor* std::construct_at[abi:v15000], std::allocator>>>&, std::shared_ptr&, DB::PipelineExecutor*>(DB::PipelineExecutor*, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b8720e7 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000], std::allocator>>>&, std::shared_ptr&, void, void>(std::allocator&, DB::PipelineExecutor*, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b871e89 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000], std::allocator>>>&, std::shared_ptr&>(std::allocator, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b871b8f in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr, std::allocator>>>&, std::shared_ptr&, void>(std::allocator const&, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b871a02 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000], std::allocator>>>&, std::shared_ptr&, void>(std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b865a8e in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:106: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long) @ 0x000000001e6f668a in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:153: DB::PullingAsyncPipelineExecutor::pull(DB::Block&, unsigned long) @ 0x000000001e6f6b89 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:914: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f69f in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:06.577745 [ 12916 ] {e3f7bd47-0b28-447f-839e-7e8d0e386f79} executeQuery: Code: 479. DB::Exception: Unknown disk name __un_exists_disk while execute function filesystemCapacity: While processing filesystemCapacity('__un_exists_disk'). (UNKNOWN_DISK) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56916) (comment: 02457_filesystem_function.sql) (in query: select filesystemCapacity('__un_exists_disk');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&&) @ 0x000000000d9ff04c in /usr/bin/clickhouse 6. /build/src/Functions/filesystem.cpp:100: DB::(anonymous namespace)::FilesystemImpl::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e1d7305 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:11:06.579097 [ 12916 ] {e3f7bd47-0b28-447f-839e-7e8d0e386f79} TCPHandler: Code: 479. DB::Exception: Unknown disk name __un_exists_disk while execute function filesystemCapacity: While processing filesystemCapacity('__un_exists_disk'). (UNKNOWN_DISK), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&&) @ 0x000000000d9ff04c in /usr/bin/clickhouse 6. /build/src/Functions/filesystem.cpp:100: DB::(anonymous namespace)::FilesystemImpl::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e1d7305 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:11:06.579294 [ 5625 ] {a3e1b68e-040f-4de6-ba4d-0afd34a45f4e} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:437: DB::QueryStatus::addPipelineExecutor(DB::PipelineExecutor*) @ 0x000000001ccadfff in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:63: DB::PipelineExecutor::PipelineExecutor(std::shared_ptr, std::allocator>>>&, std::shared_ptr) @ 0x000000001e6d403d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::PipelineExecutor* std::construct_at[abi:v15000], std::allocator>>>&, std::shared_ptr&, DB::PipelineExecutor*>(DB::PipelineExecutor*, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b8720e7 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000], std::allocator>>>&, std::shared_ptr&, void, void>(std::allocator&, DB::PipelineExecutor*, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b871e89 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000], std::allocator>>>&, std::shared_ptr&>(std::allocator, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b871b8f in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr, std::allocator>>>&, std::shared_ptr&, void>(std::allocator const&, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b871a02 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000], std::allocator>>>&, std::shared_ptr&, void>(std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b865a8e in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:106: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long) @ 0x000000001e6f668a in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:153: DB::PullingAsyncPipelineExecutor::pull(DB::Block&, unsigned long) @ 0x000000001e6f6b89 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:914: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f69f in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:09.829298 [ 12924 ] {34770635-b3ef-4949-83a9-7d6b1e4b36cc} executeQuery: Code: 41. DB::ParsingException: Cannot read DateTime: unexpected word after Date: While processing parseDateTimeBestEffort('01/12/2017,'). (CANNOT_PARSE_DATETIME) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57672) (comment: 02457_parse_date_time_best_effort.sql) (in query: select parseDateTimeBestEffort('01/12/2017,');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException<>(int, FormatStringHelperImpl<>) @ 0x000000000b268e77 in /usr/bin/clickhouse 6. /build/src/IO/parseDateTimeBestEffort.cpp:98: auto void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*)::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()<>(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x00000000139b5378 in /usr/bin/clickhouse 7. /build/src/IO/parseDateTimeBestEffort.cpp:575: void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*) @ 0x00000000139ae4a0 in /usr/bin/clickhouse 8. /build/src/IO/parseDateTimeBestEffort.cpp:686: DB::parseDateTimeBestEffort(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&) @ 0x00000000139ac692 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1380: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bbf1806 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bbf0d34 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbefabc in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:11:09.830296 [ 12924 ] {34770635-b3ef-4949-83a9-7d6b1e4b36cc} TCPHandler: Code: 41. DB::ParsingException: Cannot read DateTime: unexpected word after Date: While processing parseDateTimeBestEffort('01/12/2017,'). (CANNOT_PARSE_DATETIME), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException<>(int, FormatStringHelperImpl<>) @ 0x000000000b268e77 in /usr/bin/clickhouse 6. /build/src/IO/parseDateTimeBestEffort.cpp:98: auto void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*)::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()<>(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x00000000139b5378 in /usr/bin/clickhouse 7. /build/src/IO/parseDateTimeBestEffort.cpp:575: void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*) @ 0x00000000139ae4a0 in /usr/bin/clickhouse 8. /build/src/IO/parseDateTimeBestEffort.cpp:686: DB::parseDateTimeBestEffort(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&) @ 0x00000000139ac692 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1380: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bbf1806 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bbf0d34 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbefabc in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:11:10.137613 [ 12924 ] {853cf98e-e2a0-46a2-81d2-d071ab082d63} executeQuery: Code: 41. DB::ParsingException: Cannot read DateTime: unexpected word after Date: While processing parseDateTimeBestEffortUS('18:31:44,,,, 31/12/2015'). (CANNOT_PARSE_DATETIME) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57672) (comment: 02457_parse_date_time_best_effort.sql) (in query: select parseDateTimeBestEffortUS('18:31:44,,,, 31/12/2015');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException<>(int, FormatStringHelperImpl<>) @ 0x000000000b268e77 in /usr/bin/clickhouse 6. /build/src/IO/parseDateTimeBestEffort.cpp:98: auto void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*)::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()<>(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x00000000139b6bb8 in /usr/bin/clickhouse 7. /build/src/IO/parseDateTimeBestEffort.cpp:575: void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*) @ 0x00000000139b0500 in /usr/bin/clickhouse 8. /build/src/IO/parseDateTimeBestEffort.cpp:691: DB::parseDateTimeBestEffortUS(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&) @ 0x00000000139ae892 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1395: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bc01326 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bc00854 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbff55c in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:11:10.138521 [ 12924 ] {853cf98e-e2a0-46a2-81d2-d071ab082d63} TCPHandler: Code: 41. DB::ParsingException: Cannot read DateTime: unexpected word after Date: While processing parseDateTimeBestEffortUS('18:31:44,,,, 31/12/2015'). (CANNOT_PARSE_DATETIME), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException<>(int, FormatStringHelperImpl<>) @ 0x000000000b268e77 in /usr/bin/clickhouse 6. /build/src/IO/parseDateTimeBestEffort.cpp:98: auto void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*)::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()<>(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x00000000139b6bb8 in /usr/bin/clickhouse 7. /build/src/IO/parseDateTimeBestEffort.cpp:575: void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*) @ 0x00000000139b0500 in /usr/bin/clickhouse 8. /build/src/IO/parseDateTimeBestEffort.cpp:691: DB::parseDateTimeBestEffortUS(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&) @ 0x00000000139ae892 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1395: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bc01326 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bc00854 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbff55c in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:11:10.492838 [ 12924 ] {4ac313a6-8d87-4007-92a1-75d86e625a30} executeQuery: Code: 6. DB::Exception: Cannot parse string '18:31:44, 31/12/2015,' as DateTime: syntax error at position 20 (parsed just '18:31:44, 31/12/2015'): While processing parseDateTimeBestEffortUS('18:31:44, 31/12/2015,'). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57672) (comment: 02457_parse_date_time_best_effort.sql) (in query: select parseDateTimeBestEffortUS('18:31:44, 31/12/2015,');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bc013a8 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bc00854 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbff55c in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:11:10.504011 [ 12924 ] {4ac313a6-8d87-4007-92a1-75d86e625a30} TCPHandler: Code: 6. DB::Exception: Cannot parse string '18:31:44, 31/12/2015,' as DateTime: syntax error at position 20 (parsed just '18:31:44, 31/12/2015'): While processing parseDateTimeBestEffortUS('18:31:44, 31/12/2015,'). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bc013a8 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bc00854 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbff55c in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:11:10.891029 [ 12924 ] {44dad0bc-46fe-4f8b-8280-bdb442e51c12} executeQuery: Code: 6. DB::Exception: Cannot parse string '01/12/2017, 18:31:44,' as DateTime: syntax error at position 20 (parsed just '01/12/2017, 18:31:44'): While processing parseDateTimeBestEffort('01/12/2017, 18:31:44,'). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57672) (comment: 02457_parse_date_time_best_effort.sql) (in query: select parseDateTimeBestEffort('01/12/2017, 18:31:44,');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bbf1888 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bbf0d34 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbefabc in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:11:10.902164 [ 12924 ] {44dad0bc-46fe-4f8b-8280-bdb442e51c12} TCPHandler: Code: 6. DB::Exception: Cannot parse string '01/12/2017, 18:31:44,' as DateTime: syntax error at position 20 (parsed just '01/12/2017, 18:31:44'): While processing parseDateTimeBestEffort('01/12/2017, 18:31:44,'). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bbf1888 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bbf0d34 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbefabc in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:11:10.909879 [ 12924 ] {ac5ee3d4-1f25-4dfb-8a5b-7502580fdf8c} executeQuery: Code: 41. DB::ParsingException: Cannot read DateTime: unexpected word after Date: While processing parseDateTimeBestEffort('01/12/2017, ,,,18:31:44'). (CANNOT_PARSE_DATETIME) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57672) (comment: 02457_parse_date_time_best_effort.sql) (in query: select parseDateTimeBestEffort('01/12/2017, ,,,18:31:44');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException<>(int, FormatStringHelperImpl<>) @ 0x000000000b268e77 in /usr/bin/clickhouse 6. /build/src/IO/parseDateTimeBestEffort.cpp:98: auto void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*)::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()<>(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x00000000139b5378 in /usr/bin/clickhouse 7. /build/src/IO/parseDateTimeBestEffort.cpp:575: void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*) @ 0x00000000139ae4a0 in /usr/bin/clickhouse 8. /build/src/IO/parseDateTimeBestEffort.cpp:686: DB::parseDateTimeBestEffort(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&) @ 0x00000000139ac692 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1380: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bbf1806 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bbf0d34 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbefabc in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:11:10.910703 [ 12924 ] {ac5ee3d4-1f25-4dfb-8a5b-7502580fdf8c} TCPHandler: Code: 41. DB::ParsingException: Cannot read DateTime: unexpected word after Date: While processing parseDateTimeBestEffort('01/12/2017, ,,,18:31:44'). (CANNOT_PARSE_DATETIME), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException<>(int, FormatStringHelperImpl<>) @ 0x000000000b268e77 in /usr/bin/clickhouse 6. /build/src/IO/parseDateTimeBestEffort.cpp:98: auto void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*)::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()<>(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x00000000139b5378 in /usr/bin/clickhouse 7. /build/src/IO/parseDateTimeBestEffort.cpp:575: void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*) @ 0x00000000139ae4a0 in /usr/bin/clickhouse 8. /build/src/IO/parseDateTimeBestEffort.cpp:686: DB::parseDateTimeBestEffort(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&) @ 0x00000000139ac692 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1380: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bbf1806 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bbf0d34 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbefabc in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:11:10.931319 [ 12924 ] {d370ce1d-0628-476d-a299-34df9b9db79b} executeQuery: Code: 41. DB::ParsingException: Cannot read DateTime: unexpected word after Date: While processing parseDateTimeBestEffort('18:31:44 ,,,,, 31/12/2015'). (CANNOT_PARSE_DATETIME) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57672) (comment: 02457_parse_date_time_best_effort.sql) (in query: select parseDateTimeBestEffort('18:31:44 ,,,,, 31/12/2015');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException<>(int, FormatStringHelperImpl<>) @ 0x000000000b268e77 in /usr/bin/clickhouse 6. /build/src/IO/parseDateTimeBestEffort.cpp:98: auto void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*)::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()<>(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x00000000139b5378 in /usr/bin/clickhouse 7. /build/src/IO/parseDateTimeBestEffort.cpp:575: void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*) @ 0x00000000139ae4a0 in /usr/bin/clickhouse 8. /build/src/IO/parseDateTimeBestEffort.cpp:686: DB::parseDateTimeBestEffort(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&) @ 0x00000000139ac692 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1380: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bbf1806 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bbf0d34 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbefabc in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:11:10.932173 [ 12924 ] {d370ce1d-0628-476d-a299-34df9b9db79b} TCPHandler: Code: 41. DB::ParsingException: Cannot read DateTime: unexpected word after Date: While processing parseDateTimeBestEffort('18:31:44 ,,,,, 31/12/2015'). (CANNOT_PARSE_DATETIME), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException<>(int, FormatStringHelperImpl<>) @ 0x000000000b268e77 in /usr/bin/clickhouse 6. /build/src/IO/parseDateTimeBestEffort.cpp:98: auto void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*)::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()<>(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x00000000139b5378 in /usr/bin/clickhouse 7. /build/src/IO/parseDateTimeBestEffort.cpp:575: void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*) @ 0x00000000139ae4a0 in /usr/bin/clickhouse 8. /build/src/IO/parseDateTimeBestEffort.cpp:686: DB::parseDateTimeBestEffort(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&) @ 0x00000000139ac692 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1380: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bbf1806 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bbf0d34 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbefabc in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:11:12.115235 [ 12923 ] {0c7d805d-f693-4fa8-9800-e4cba80c18bb} executeQuery: Code: 277. DB::Exception: Index `ix1` is not used and setting 'force_data_skipping_indices' contains it. (INDEX_NOT_USED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57780) (comment: 02456_bloom_filter_assert.gen.sql) (in query: SELECT count() FROM bftest__fuzz_21 WHERE hasAll(x, [42, -42]) SETTINGS use_skip_indexes=1, force_data_skipping_indices='ix1';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:930: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool) @ 0x000000001dfb616b in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1493: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea55a1 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1373: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea2a33 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001eea274d in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1677: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001eea79ec in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1785: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8a5b in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 24. ? @ 0x00007f1a0debbac3 in ? 25. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:12.116179 [ 12923 ] {0c7d805d-f693-4fa8-9800-e4cba80c18bb} TCPHandler: Code: 277. DB::Exception: Index `ix1` is not used and setting 'force_data_skipping_indices' contains it. (INDEX_NOT_USED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:930: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool) @ 0x000000001dfb616b in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1493: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea55a1 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1373: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea2a33 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001eea274d in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1677: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001eea79ec in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1785: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8a5b in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 24. ? @ 0x00007f1a0debbac3 in ? 25. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:12.483321 [ 12923 ] {87d1e7fa-9518-424a-a820-1b79ad3e4da8} executeQuery: Code: 277. DB::Exception: Index `ix1` is not used and setting 'force_data_skipping_indices' contains it. (INDEX_NOT_USED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57780) (comment: 02456_bloom_filter_assert.gen.sql) (in query: SELECT count() FROM bftest__fuzz_21 WHERE hasAll(x, [42, -42]) SETTINGS use_skip_indexes=1, force_data_skipping_indices='ix1';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:930: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool) @ 0x000000001dfb616b in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1493: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea55a1 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1373: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea2a33 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001eea274d in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1677: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001eea79ec in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1785: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8a5b in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 24. ? @ 0x00007f1a0debbac3 in ? 25. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:12.484351 [ 12923 ] {87d1e7fa-9518-424a-a820-1b79ad3e4da8} TCPHandler: Code: 277. DB::Exception: Index `ix1` is not used and setting 'force_data_skipping_indices' contains it. (INDEX_NOT_USED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:930: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool) @ 0x000000001dfb616b in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1493: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea55a1 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1373: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea2a33 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001eea274d in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1677: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001eea79ec in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1785: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8a5b in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 24. ? @ 0x00007f1a0debbac3 in ? 25. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:12.787555 [ 12923 ] {90fe1406-e328-4789-9fca-1b137e7f516d} executeQuery: Code: 277. DB::Exception: Index `ix1` is not used and setting 'force_data_skipping_indices' contains it. (INDEX_NOT_USED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57780) (comment: 02456_bloom_filter_assert.gen.sql) (in query: SELECT count() FROM bftest__fuzz_21 WHERE hasAll(x, [42, -42]) SETTINGS use_skip_indexes=1, force_data_skipping_indices='ix1';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:930: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool) @ 0x000000001dfb616b in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1493: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea55a1 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1373: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea2a33 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001eea274d in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1677: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001eea79ec in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1785: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8a5b in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 24. ? @ 0x00007f1a0debbac3 in ? 25. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:12.788319 [ 12923 ] {90fe1406-e328-4789-9fca-1b137e7f516d} TCPHandler: Code: 277. DB::Exception: Index `ix1` is not used and setting 'force_data_skipping_indices' contains it. (INDEX_NOT_USED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:930: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool) @ 0x000000001dfb616b in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1493: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea55a1 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1373: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea2a33 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001eea274d in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1677: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001eea79ec in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1785: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8a5b in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 24. ? @ 0x00007f1a0debbac3 in ? 25. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:16.195626 [ 12922 ] {} ServerErrorHandler: Code: 210. DB::NetException: Connection reset by peer, while reading from socket ([::1]:58082). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000013cf152c in /usr/bin/clickhouse 6. /build/src/IO/ReadBufferFromPocoSocket.cpp:86: DB::ReadBufferFromPocoSocket::nextImpl() @ 0x0000000013cf07a0 in /usr/bin/clickhouse 7. /build/src/IO/ReadBuffer.h:71: DB::ReadBuffer::next() @ 0x000000000b21bd7c in /usr/bin/clickhouse 8. /build/src/IO/ReadBuffer.h:105: DB::TCPHandler::runImpl() @ 0x000000001e6467c1 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 10. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 12. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 15. ? @ 0x00007f1a0debbac3 in ? 16. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:11:16.196353 [ 12919 ] {} ServerErrorHandler: Code: 210. DB::NetException: Connection reset by peer, while reading from socket ([::1]:58068). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000013cf152c in /usr/bin/clickhouse 6. /build/src/IO/ReadBufferFromPocoSocket.cpp:86: DB::ReadBufferFromPocoSocket::nextImpl() @ 0x0000000013cf07a0 in /usr/bin/clickhouse 7. /build/src/IO/ReadBuffer.h:71: DB::ReadBuffer::next() @ 0x000000000b21bd7c in /usr/bin/clickhouse 8. /build/src/IO/ReadBuffer.h:105: DB::TCPHandler::runImpl() @ 0x000000001e6467c1 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 10. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 12. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 15. ? @ 0x00007f1a0debbac3 in ? 16. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:11:18.722191 [ 12920 ] {8c99742b-15e5-419e-9ca6-285c53f1da07} executeQuery: Code: 44. DB::Exception: Cannot create table with column '_row_exists' for *MergeTree engines because it is reserved for lightweight delete feature. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33234) (comment: 02454_disable_mergetree_with_lightweight_delete_column.sql) (in query: CREATE TABLE t_row_exists (`a` int, `_row_exists` int) ENGINE = MergeTree ORDER BY a SETTINGS index_granularity = 32370, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 0., merge_max_block_size = 5647, prefer_fetch_merged_part_size_threshold = 5415233076, vertical_merge_algorithm_min_rows_to_activate = 829221, vertical_merge_algorithm_min_columns_to_activate = 1, min_merge_bytes_to_use_direct_io = 10737418240, index_granularity_bytes = 20178966, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 47151, primary_key_compress_block_size = 12996), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:848: DB::InterpreterCreateQuery::validateTableStructure(DB::ASTCreateQuery const&, DB::InterpreterCreateQuery::TableProperties const&) const @ 0x000000001c7f0a47 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:823: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ef550 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:18.723022 [ 12920 ] {8c99742b-15e5-419e-9ca6-285c53f1da07} TCPHandler: Code: 44. DB::Exception: Cannot create table with column '_row_exists' for *MergeTree engines because it is reserved for lightweight delete feature. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:848: DB::InterpreterCreateQuery::validateTableStructure(DB::ASTCreateQuery const&, DB::InterpreterCreateQuery::TableProperties const&) const @ 0x000000001c7f0a47 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:823: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ef550 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:18.843231 [ 12920 ] {b6557d51-0960-4801-8b0f-07d41f30ed7c} executeQuery: Code: 44. DB::Exception: Cannot add column `_row_exists`: this column name is reserved for lightweight delete feature. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33234) (comment: 02454_disable_mergetree_with_lightweight_delete_column.sql) (in query: alter table t_row_exists add column _row_exists int;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1100: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d592196 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da4c5 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:18.843875 [ 12920 ] {b6557d51-0960-4801-8b0f-07d41f30ed7c} TCPHandler: Code: 44. DB::Exception: Cannot add column `_row_exists`: this column name is reserved for lightweight delete feature. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1100: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d592196 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da4c5 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:18.934743 [ 12920 ] {27c3f300-90aa-4dd5-969b-432d8683d831} executeQuery: Code: 44. DB::Exception: Cannot rename to `_row_exists`: this column name is reserved for lightweight delete feature. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33234) (comment: 02454_disable_mergetree_with_lightweight_delete_column.sql) (in query: alter table t_row_exists rename column b to _row_exists;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1309: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d59520e in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da4c5 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:18.935398 [ 12920 ] {27c3f300-90aa-4dd5-969b-432d8683d831} TCPHandler: Code: 44. DB::Exception: Cannot rename to `_row_exists`: this column name is reserved for lightweight delete feature. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1309: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d59520e in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da4c5 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:19.030993 [ 12920 ] {b448c67b-88ad-4c49-9c01-c582b885712a} executeQuery: Code: 10. DB::Exception: Wrong column name. Cannot find column `_row_exists` to rename. (NOT_FOUND_COLUMN_IN_BLOCK) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33234) (comment: 02454_disable_mergetree_with_lightweight_delete_column.sql) (in query: alter table t_row_exists rename column _row_exists to c;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1298: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d594e91 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da4c5 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:19.031669 [ 12920 ] {b448c67b-88ad-4c49-9c01-c582b885712a} TCPHandler: Code: 10. DB::Exception: Wrong column name. Cannot find column `_row_exists` to rename. (NOT_FOUND_COLUMN_IN_BLOCK), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1298: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d594e91 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da4c5 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:19.124912 [ 12920 ] {4fdff36b-d5c2-4bb3-b739-29b174f2c8c7} executeQuery: Code: 10. DB::Exception: Wrong column name. Cannot find column `_row_exists` to drop. (NOT_FOUND_COLUMN_IN_BLOCK) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33234) (comment: 02454_disable_mergetree_with_lightweight_delete_column.sql) (in query: alter table t_row_exists drop column _row_exists;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1249: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d594679 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da4c5 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:19.125503 [ 12920 ] {4fdff36b-d5c2-4bb3-b739-29b174f2c8c7} TCPHandler: Code: 10. DB::Exception: Wrong column name. Cannot find column `_row_exists` to drop. (NOT_FOUND_COLUMN_IN_BLOCK), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1249: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d594679 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da4c5 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:19.134129 [ 12920 ] {8e3f6f8a-dd04-45b9-aa7f-b58c569c0935} executeQuery: Code: 10. DB::Exception: Wrong column name. Cannot find column `unknown_column` to drop. (NOT_FOUND_COLUMN_IN_BLOCK) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33234) (comment: 02454_disable_mergetree_with_lightweight_delete_column.sql) (in query: alter table t_row_exists drop column unknown_column;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1249: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d594679 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da4c5 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:19.134867 [ 12920 ] {8e3f6f8a-dd04-45b9-aa7f-b58c569c0935} TCPHandler: Code: 10. DB::Exception: Wrong column name. Cannot find column `unknown_column` to drop. (NOT_FOUND_COLUMN_IN_BLOCK), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1249: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d594679 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da4c5 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:19.601898 [ 12920 ] {113c4c04-9204-4678-a5bc-9fc2ce8f0b1b} executeQuery: Code: 48. DB::Exception: Alter of type 'ADD_COLUMN' is not supported by storage Memory. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33234) (comment: 02454_disable_mergetree_with_lightweight_delete_column.sql) (in query: alter table t_row_exists add column _row_exists int;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af4aecc in /usr/bin/clickhouse 6. /build/src/Storages/IStorage.cpp:203: DB::IStorage::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d5f0dbc in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:19.602595 [ 12920 ] {113c4c04-9204-4678-a5bc-9fc2ce8f0b1b} TCPHandler: Code: 48. DB::Exception: Alter of type 'ADD_COLUMN' is not supported by storage Memory. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af4aecc in /usr/bin/clickhouse 6. /build/src/Storages/IStorage.cpp:203: DB::IStorage::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d5f0dbc in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:19.609354 [ 12920 ] {3c0edfb2-4704-4cc6-815c-c886536c70b5} executeQuery: Code: 48. DB::Exception: Alter of type 'RENAME_COLUMN' is not supported by storage Memory. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33234) (comment: 02454_disable_mergetree_with_lightweight_delete_column.sql) (in query: alter table t_row_exists rename column b to _row_exists;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af4aecc in /usr/bin/clickhouse 6. /build/src/Storages/IStorage.cpp:203: DB::IStorage::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d5f0dbc in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:19.609944 [ 12920 ] {3c0edfb2-4704-4cc6-815c-c886536c70b5} TCPHandler: Code: 48. DB::Exception: Alter of type 'RENAME_COLUMN' is not supported by storage Memory. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af4aecc in /usr/bin/clickhouse 6. /build/src/Storages/IStorage.cpp:203: DB::IStorage::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d5f0dbc in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:19.645885 [ 12924 ] {3cebe871-7757-45d2-89a7-1a5c56dbb313} DiskLocal: Cannot create the root directory of disk __tmp_internal_96338278750696980453966033776619367191 (/local/). 2024.10.22 10:11:19.646137 [ 12924 ] {3cebe871-7757-45d2-89a7-1a5c56dbb313} DiskLocal: Cannot gain read access of the disk directory: /local/ 2024.10.22 10:11:19.788816 [ 12924 ] {3cebe871-7757-45d2-89a7-1a5c56dbb313} DiskLocal: Disk __tmp_internal_96338278750696980453966033776619367191 is marked as broken during startup: Code: 481. DB::ErrnoException: Cannot check read access to file: /local/, errno: 2, strerror: No such file or directory. (PATH_ACCESS_DENIED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b2043aa in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:169: DB::ErrnoException::ErrnoException(String const&, int, int, std::optional const&) @ 0x00000000138e6cb0 in /usr/bin/clickhouse 6. /build/src/Common/Exception.cpp:224: DB::throwFromErrnoWithPath(String const&, String const&, int, int) @ 0x00000000138e245b in /usr/bin/clickhouse 7. /build/src/Common/filesystemHelpers.cpp:320: FS::canRead(String const&) @ 0x000000001396b35f in /usr/bin/clickhouse 8. /build/src/Disks/DiskLocal.cpp:615: DB::DiskLocal::setup() @ 0x000000001bb8428c in /usr/bin/clickhouse 9. /build/src/Disks/DiskLocal.cpp:686: DB::DiskLocal::startupImpl(std::shared_ptr) @ 0x000000001bb858ba in /usr/bin/clickhouse 10. /build/src/Disks/IDisk.cpp:174: DB::IDisk::startup(std::shared_ptr, bool) @ 0x000000001bb962c3 in /usr/bin/clickhouse 11. /build/src/Disks/DiskLocal.cpp:736: DB::registerDiskLocal(DB::DiskFactory&, bool)::$_0::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb86703 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval>(), std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000], std::map, std::less, std::allocator>>> const&>(DB::registerDiskLocal(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bb862d7 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call, std::map, std::less, std::allocator>>> const&>(DB::registerDiskLocal(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bb8623d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bb861dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::__call_impl (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bb86185 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb910fe in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb8e841 in /usr/bin/clickhouse 18. /build/src/Disks/DiskFactory.cpp:37: DB::DiskFactory::create(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb8e59d in /usr/bin/clickhouse 19. /build/src/Disks/getOrCreateDiskFromAST.cpp:49: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001e1b8064 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_0&>()(std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000])::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7f9d in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call)::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7f5d in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7f1d in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (std::map, std::less, std::allocator>>> const&)>::__call_impl)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, std::map, std::less, std::allocator>>> const&) @ 0x000000001e1b7ee8 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) const @ 0x000000001be534fe in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (std::map, std::less, std::allocator>>> const&)>::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001bdee6bd in /usr/bin/clickhouse 26. /build/src/Interpreters/Context.cpp:3548: DB::Context::getOrCreateDisk(String const&, std::function (std::map, std::less, std::allocator>>> const&)>) const @ 0x000000001bddc898 in /usr/bin/clickhouse 27. /build/src/Disks/getOrCreateDiskFromAST.cpp:48: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr) @ 0x000000001e1b7663 in /usr/bin/clickhouse 28. /build/src/Disks/getOrCreateDiskFromAST.cpp:93: DB::(anonymous namespace)::DiskConfigurationFlattener::visit(std::shared_ptr&, DB::(anonymous namespace)::DiskConfigurationFlattener::Data&) @ 0x000000001e1b721b in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001e1b7080 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001e1b832e in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001e1b672a in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:11:19.951431 [ 12924 ] {3cebe871-7757-45d2-89a7-1a5c56dbb313} executeQuery: Code: 36. DB::Exception: Path of the custom local disk must be inside `/var/lib/clickhouse/disks/` directory: While processing disk(type = local, path = '/local/'). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33244) (comment: 02454_create_table_with_custom_disk.sql) (in query: CREATE TABLE test (a Int32) ENGINE = MergeTree() order by tuple() SETTINGS disk = disk(type=local, path='/local/');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Disks/getOrCreateDiskFromAST.cpp:70: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr) @ 0x000000001e1b7a5c in /usr/bin/clickhouse 7. /build/src/Disks/getOrCreateDiskFromAST.cpp:93: DB::(anonymous namespace)::DiskConfigurationFlattener::visit(std::shared_ptr&, DB::(anonymous namespace)::DiskConfigurationFlattener::Data&) @ 0x000000001e1b721b in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001e1b7080 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001e1b832e in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001e1b672a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001e1b65e5 in /usr/bin/clickhouse 12. /build/src/Disks/getOrCreateDiskFromAST.cpp:112: DB::getOrCreateDiskFromDiskAST(std::shared_ptr const&, std::shared_ptr) @ 0x000000001e1b5e78 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:67: DB::MergeTreeSettings::loadFromQuery(DB::ASTStorage&, std::shared_ptr) @ 0x000000001e15c239 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:602: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35d7c1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:11:19.952370 [ 12924 ] {3cebe871-7757-45d2-89a7-1a5c56dbb313} TCPHandler: Code: 36. DB::Exception: Path of the custom local disk must be inside `/var/lib/clickhouse/disks/` directory: While processing disk(type = local, path = '/local/'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Disks/getOrCreateDiskFromAST.cpp:70: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr) @ 0x000000001e1b7a5c in /usr/bin/clickhouse 7. /build/src/Disks/getOrCreateDiskFromAST.cpp:93: DB::(anonymous namespace)::DiskConfigurationFlattener::visit(std::shared_ptr&, DB::(anonymous namespace)::DiskConfigurationFlattener::Data&) @ 0x000000001e1b721b in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001e1b7080 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001e1b832e in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001e1b672a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001e1b65e5 in /usr/bin/clickhouse 12. /build/src/Disks/getOrCreateDiskFromAST.cpp:112: DB::getOrCreateDiskFromDiskAST(std::shared_ptr const&, std::shared_ptr) @ 0x000000001e1b5e78 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:67: DB::MergeTreeSettings::loadFromQuery(DB::ASTStorage&, std::shared_ptr) @ 0x000000001e15c239 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:602: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35d7c1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:11:24.712290 [ 12929 ] {1ecb03ad-323d-4a57-98ad-7c0933373616} executeQuery: Code: 53. DB::Exception: Cannot convert string default.table_name to type Int32: While processing n IN ('default.table_name') AS m: default expression and column type are incompatible. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33296) (comment: 02433_default_expression_operator_in.sql) (in query: -- Ensure that a table name cannot be passed to IN as string literal create table test (n int, m default n in 'default.table_name') engine=Memory;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/convertFieldToType.cpp:508: DB::(anonymous namespace)::convertFieldToTypeImpl(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d072042 in /usr/bin/clickhouse 7. /build/src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToType(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d06e77d in /usr/bin/clickhouse 8. /build/src/Interpreters/convertFieldToType.cpp:582: DB::convertFieldToTypeStrict(DB::Field const&, DB::IDataType const&) @ 0x000000001d07293d in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:117: DB::Block DB::createBlockFromCollection(DB::Array const&, std::vector, std::allocator>> const&, bool) @ 0x000000001bff392f in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:317: DB::(anonymous namespace)::createBlockForSet(std::shared_ptr const&, std::shared_ptr const&, std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001bfe88ba in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:427: DB::makeExplicitSet(DB::ASTFunction const*, DB::ActionsDAG const&, std::shared_ptr, DB::PreparedSets&) @ 0x000000001bfe7edd in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:1443: DB::ActionsMatcher::makeSet(DB::ASTFunction const&, DB::ActionsMatcher::Data&, bool) @ 0x000000001bff1fae in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:921: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfec241 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:1696: DB::ExpressionAnalyzer::getActionsDAG(bool, bool) @ 0x000000001bfbcff8 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:1729: DB::ExpressionAnalyzer::getActions(bool, bool, DB::CompileExpressions) @ 0x000000001bfbd363 in /usr/bin/clickhouse 22. /build/src/Storages/ColumnsDescription.cpp:847: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad4a5 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:571: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ec6ba in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 10:11:24.713301 [ 12929 ] {1ecb03ad-323d-4a57-98ad-7c0933373616} TCPHandler: Code: 53. DB::Exception: Cannot convert string default.table_name to type Int32: While processing n IN ('default.table_name') AS m: default expression and column type are incompatible. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/convertFieldToType.cpp:508: DB::(anonymous namespace)::convertFieldToTypeImpl(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d072042 in /usr/bin/clickhouse 7. /build/src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToType(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d06e77d in /usr/bin/clickhouse 8. /build/src/Interpreters/convertFieldToType.cpp:582: DB::convertFieldToTypeStrict(DB::Field const&, DB::IDataType const&) @ 0x000000001d07293d in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:117: DB::Block DB::createBlockFromCollection(DB::Array const&, std::vector, std::allocator>> const&, bool) @ 0x000000001bff392f in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:317: DB::(anonymous namespace)::createBlockForSet(std::shared_ptr const&, std::shared_ptr const&, std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001bfe88ba in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:427: DB::makeExplicitSet(DB::ASTFunction const*, DB::ActionsDAG const&, std::shared_ptr, DB::PreparedSets&) @ 0x000000001bfe7edd in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:1443: DB::ActionsMatcher::makeSet(DB::ASTFunction const&, DB::ActionsMatcher::Data&, bool) @ 0x000000001bff1fae in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:921: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfec241 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:1696: DB::ExpressionAnalyzer::getActionsDAG(bool, bool) @ 0x000000001bfbcff8 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:1729: DB::ExpressionAnalyzer::getActions(bool, bool, DB::CompileExpressions) @ 0x000000001bfbd363 in /usr/bin/clickhouse 22. /build/src/Storages/ColumnsDescription.cpp:847: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad4a5 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:571: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ec6ba in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 10:11:24.721450 [ 12929 ] {aa8c7a44-c34f-494c-95b3-688a0170165f} executeQuery: Code: 53. DB::Exception: Cannot convert string default.table_name to type Int32: While processing n IN ('default.table_name') AS m: default expression and column type are incompatible. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33296) (comment: 02433_default_expression_operator_in.sql) (in query: create table test (n int, m default in(n, 'default.table_name')) engine=Memory;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/convertFieldToType.cpp:508: DB::(anonymous namespace)::convertFieldToTypeImpl(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d072042 in /usr/bin/clickhouse 7. /build/src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToType(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d06e77d in /usr/bin/clickhouse 8. /build/src/Interpreters/convertFieldToType.cpp:582: DB::convertFieldToTypeStrict(DB::Field const&, DB::IDataType const&) @ 0x000000001d07293d in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:117: DB::Block DB::createBlockFromCollection(DB::Array const&, std::vector, std::allocator>> const&, bool) @ 0x000000001bff392f in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:317: DB::(anonymous namespace)::createBlockForSet(std::shared_ptr const&, std::shared_ptr const&, std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001bfe88ba in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:427: DB::makeExplicitSet(DB::ASTFunction const*, DB::ActionsDAG const&, std::shared_ptr, DB::PreparedSets&) @ 0x000000001bfe7edd in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:1443: DB::ActionsMatcher::makeSet(DB::ASTFunction const&, DB::ActionsMatcher::Data&, bool) @ 0x000000001bff1fae in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:921: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfec241 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:1696: DB::ExpressionAnalyzer::getActionsDAG(bool, bool) @ 0x000000001bfbcff8 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:1729: DB::ExpressionAnalyzer::getActions(bool, bool, DB::CompileExpressions) @ 0x000000001bfbd363 in /usr/bin/clickhouse 22. /build/src/Storages/ColumnsDescription.cpp:847: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad4a5 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:571: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ec6ba in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 10:11:24.722311 [ 12929 ] {aa8c7a44-c34f-494c-95b3-688a0170165f} TCPHandler: Code: 53. DB::Exception: Cannot convert string default.table_name to type Int32: While processing n IN ('default.table_name') AS m: default expression and column type are incompatible. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/convertFieldToType.cpp:508: DB::(anonymous namespace)::convertFieldToTypeImpl(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d072042 in /usr/bin/clickhouse 7. /build/src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToType(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d06e77d in /usr/bin/clickhouse 8. /build/src/Interpreters/convertFieldToType.cpp:582: DB::convertFieldToTypeStrict(DB::Field const&, DB::IDataType const&) @ 0x000000001d07293d in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:117: DB::Block DB::createBlockFromCollection(DB::Array const&, std::vector, std::allocator>> const&, bool) @ 0x000000001bff392f in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:317: DB::(anonymous namespace)::createBlockForSet(std::shared_ptr const&, std::shared_ptr const&, std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001bfe88ba in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:427: DB::makeExplicitSet(DB::ASTFunction const*, DB::ActionsDAG const&, std::shared_ptr, DB::PreparedSets&) @ 0x000000001bfe7edd in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:1443: DB::ActionsMatcher::makeSet(DB::ASTFunction const&, DB::ActionsMatcher::Data&, bool) @ 0x000000001bff1fae in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:921: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfec241 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:1696: DB::ExpressionAnalyzer::getActionsDAG(bool, bool) @ 0x000000001bfbcff8 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:1729: DB::ExpressionAnalyzer::getActions(bool, bool, DB::CompileExpressions) @ 0x000000001bfbd363 in /usr/bin/clickhouse 22. /build/src/Storages/ColumnsDescription.cpp:847: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad4a5 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:571: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ec6ba in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 10:11:25.022655 [ 12928 ] {4b245d56-2572-49d1-8972-d55af3aec14e} test_zf7dg8vj.rmt (ReplicatedMergeTreeQueue): Partition id '123' was provided as a hint, but there's not such partition in ZooKeeper 2024.10.22 10:11:25.131793 [ 12928 ] {b71f86ee-252a-4a20-ae9e-d293fd2f45c9} executeQuery: Code: 388. DB::Exception: Cannot select parts for optimization: there are no parts in partition 123. (CANNOT_ASSIGN_OPTIMIZE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33270) (comment: 02439_merge_selecting_partitions.sql) (in query: optimize table rmt partition tuple(123);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:5443: auto DB::StorageReplicatedMergeTree::optimize(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr const&, bool, bool, std::vector> const&, bool, std::shared_ptr)::$_0::operator()(FormatStringHelperImpl::type>, String const&) const @ 0x000000001d8d80c1 in /usr/bin/clickhouse 7. /build/src/Storages/StorageReplicatedMergeTree.cpp:5470: DB::StorageReplicatedMergeTree::optimize(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr const&, bool, bool, std::vector> const&, bool, std::shared_ptr)::$_1::operator()(String const&) const @ 0x000000001d87bc3f in /usr/bin/clickhouse 8. /build/src/Storages/StorageReplicatedMergeTree.cpp:5566: DB::StorageReplicatedMergeTree::optimize(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr const&, bool, bool, std::vector> const&, bool, std::shared_ptr) @ 0x000000001d87b85f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:82: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca981c5 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:25.132527 [ 12928 ] {b71f86ee-252a-4a20-ae9e-d293fd2f45c9} TCPHandler: Code: 388. DB::Exception: Cannot select parts for optimization: there are no parts in partition 123. (CANNOT_ASSIGN_OPTIMIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:5443: auto DB::StorageReplicatedMergeTree::optimize(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr const&, bool, bool, std::vector> const&, bool, std::shared_ptr)::$_0::operator()(FormatStringHelperImpl::type>, String const&) const @ 0x000000001d8d80c1 in /usr/bin/clickhouse 7. /build/src/Storages/StorageReplicatedMergeTree.cpp:5470: DB::StorageReplicatedMergeTree::optimize(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr const&, bool, bool, std::vector> const&, bool, std::shared_ptr)::$_1::operator()(String const&) const @ 0x000000001d87bc3f in /usr/bin/clickhouse 8. /build/src/Storages/StorageReplicatedMergeTree.cpp:5566: DB::StorageReplicatedMergeTree::optimize(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr const&, bool, bool, std::vector> const&, bool, std::shared_ptr) @ 0x000000001d87b85f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:82: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca981c5 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:27.650963 [ 1300 ] {4272a814-f1a2-42e2-9de7-be0473112026} AsynchronousInsertQueue: Failed parsing for query 'INSERT INTO test_xe799u0z.t_async_inserts_logs FORMAT Values' with query id fc2808dd-2e6f-4269-bd9c-d85c1a85103c. DB::ParsingException: Cannot parse input: expected '(' before: 'qqqqqq': at row 0 2024.10.22 10:11:27.651746 [ 4571 ] {3f07a879-8083-4c71-ba69-074eac4b4869} AsynchronousInsertQueue: Failed parsing for query 'INSERT INTO test_xe799u0z.t_async_inserts_logs FORMAT JSONEachRow' with query id 89907211-ae7c-4a7c-a1cd-11c426f48bb6. DB::ParsingException: Cannot parse input: expected '{' before: 'qqqqqq': (at row 1) 2024.10.22 10:11:27.816593 [ 12919 ] {fc2808dd-2e6f-4269-bd9c-d85c1a85103c} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected '(' before: 'qqqqqq': at row 0: While executing WaitForAsyncInsert. (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:60262) (comment: 02456_async_inserts_logs.sh) (in query: INSERT INTO t_async_inserts_logs VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp:217: DB::ValuesBlockInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long) @ 0x000000001eb58a6d in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp:122: DB::ValuesBlockInputFormat::generate() @ 0x000000001eb5827e in /usr/bin/clickhouse 10. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 12. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:60: DB::StreamingFormatExecutor::execute() @ 0x000000001e701481 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:44: DB::StreamingFormatExecutor::execute(DB::ReadBuffer&) @ 0x000000001e701012 in /usr/bin/clickhouse 14. /build/src/Interpreters/AsynchronousInsertQueue.cpp:582: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd7fd5c in /usr/bin/clickhouse 15. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd824ea in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82455 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82435 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd82415 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd823e0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a6a4e0 in /usr/bin/clickhouse 2024.10.22 10:11:27.944751 [ 12922 ] {89907211-ae7c-4a7c-a1cd-11c426f48bb6} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected '{' before: 'qqqqqq': While executing WaitForAsyncInsert: (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:60270) (comment: 02456_async_inserts_logs.sh) (in query: INSERT INTO t_async_inserts_logs FORMAT JSONEachRow ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/JSONEachRowRowInputFormat.cpp:161: DB::JSONEachRowRowInputFormat::readJSONObject(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&) @ 0x000000001e8c2fef in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/JSONEachRowRowInputFormat.cpp:219: DB::JSONEachRowRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8c33d4 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 13. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:60: DB::StreamingFormatExecutor::execute() @ 0x000000001e701481 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:44: DB::StreamingFormatExecutor::execute(DB::ReadBuffer&) @ 0x000000001e701012 in /usr/bin/clickhouse 15. /build/src/Interpreters/AsynchronousInsertQueue.cpp:582: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd7fd5c in /usr/bin/clickhouse 16. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd824ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82455 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82435 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd82415 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd823e0 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse 2024.10.22 10:11:27.944965 [ 12919 ] {fc2808dd-2e6f-4269-bd9c-d85c1a85103c} DynamicQueryHandler: Code: 27. DB::ParsingException: Cannot parse input: expected '(' before: 'qqqqqq': at row 0: While executing WaitForAsyncInsert. (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp:217: DB::ValuesBlockInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long) @ 0x000000001eb58a6d in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp:122: DB::ValuesBlockInputFormat::generate() @ 0x000000001eb5827e in /usr/bin/clickhouse 10. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 12. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:60: DB::StreamingFormatExecutor::execute() @ 0x000000001e701481 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:44: DB::StreamingFormatExecutor::execute(DB::ReadBuffer&) @ 0x000000001e701012 in /usr/bin/clickhouse 14. /build/src/Interpreters/AsynchronousInsertQueue.cpp:582: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd7fd5c in /usr/bin/clickhouse 15. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd824ea in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82455 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82435 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd82415 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd823e0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a6a4e0 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:11:27.946424 [ 12922 ] {89907211-ae7c-4a7c-a1cd-11c426f48bb6} DynamicQueryHandler: Code: 27. DB::ParsingException: Cannot parse input: expected '{' before: 'qqqqqq': While executing WaitForAsyncInsert: (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/JSONEachRowRowInputFormat.cpp:161: DB::JSONEachRowRowInputFormat::readJSONObject(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&) @ 0x000000001e8c2fef in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/JSONEachRowRowInputFormat.cpp:219: DB::JSONEachRowRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8c33d4 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 13. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:60: DB::StreamingFormatExecutor::execute() @ 0x000000001e701481 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:44: DB::StreamingFormatExecutor::execute(DB::ReadBuffer&) @ 0x000000001e701012 in /usr/bin/clickhouse 15. /build/src/Interpreters/AsynchronousInsertQueue.cpp:582: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd7fd5c in /usr/bin/clickhouse 16. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd824ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82455 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82435 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd82415 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd823e0 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:11:28.750240 [ 672 ] {43af2c64-6490-4551-9a5d-9588eba27ad6} executeQuery: Code: 48. DB::Exception: Method getDataAt is not supported for Array(ColumnLowCardinality): While executing RawBLOBRowOutputFormat. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:40932) (comment: 02429_low_cardinality_trash.sh) (in query: SELECT rand64(1) % 10 AS k, groupArray(toString(64 - floor(log2(rand64(2) + 1))))::Array(LowCardinality(String)) FROM numbers(100) GROUP BY k FORMAT RawBLOB), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Columns/ColumnArray.cpp:163: DB::ColumnArray::getDataAt(unsigned long) const @ 0x000000001d2026da in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/RawBLOBRowOutputFormat.cpp:21: DB::RawBLOBRowOutputFormat::writeField(DB::IColumn const&, DB::ISerialization const&, unsigned long) @ 0x000000001eb29e27 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/IRowOutputFormat.cpp:73: DB::IRowOutputFormat::write(std::vector::immutable_ptr, std::allocator::immutable_ptr>> const&, unsigned long) @ 0x000000001e705f12 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/IRowOutputFormat.cpp:31: DB::IRowOutputFormat::consume(DB::Chunk) @ 0x000000001e705b8f in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IOutputFormat.cpp:86: DB::IOutputFormat::work() @ 0x000000001e705152 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a6a4e0 in /usr/bin/clickhouse 2024.10.22 10:11:28.756743 [ 672 ] {43af2c64-6490-4551-9a5d-9588eba27ad6} DynamicQueryHandler: Code: 48. DB::Exception: Method getDataAt is not supported for Array(ColumnLowCardinality): While executing RawBLOBRowOutputFormat. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Columns/ColumnArray.cpp:163: DB::ColumnArray::getDataAt(unsigned long) const @ 0x000000001d2026da in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/RawBLOBRowOutputFormat.cpp:21: DB::RawBLOBRowOutputFormat::writeField(DB::IColumn const&, DB::ISerialization const&, unsigned long) @ 0x000000001eb29e27 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/IRowOutputFormat.cpp:73: DB::IRowOutputFormat::write(std::vector::immutable_ptr, std::allocator::immutable_ptr>> const&, unsigned long) @ 0x000000001e705f12 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/IRowOutputFormat.cpp:31: DB::IRowOutputFormat::consume(DB::Chunk) @ 0x000000001e705b8f in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IOutputFormat.cpp:86: DB::IOutputFormat::work() @ 0x000000001e705152 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a6a4e0 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:11:33.226773 [ 672 ] {01454578-138d-4a37-be3f-03834513e1ef} executeQuery: Code: 128. DB::Exception: Array sizes are too large: 13830481612736675823: Cannot extract table structure from Native format file. You can specify the structure manually. (TOO_LARGE_ARRAY_SIZE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56808) (comment: 02426_pod_array_overflow_2.sql) (in query: SELECT * FROM format(Native, 'k0\x23Array(Tuple(FixedString(1), Int64))\0\0\0\0\0\0\0�����\0����������������\0�\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0d\0\0\0\0\0\0\0\0\0\0\0\0\0�1?Vi�%');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/DataTypes/Serializations/SerializationArray.cpp:380: DB::SerializationArray::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba31d45 in /usr/bin/clickhouse 7. /build/src/Formats/NativeReader.cpp:97: DB::NativeReader::readData(DB::ISerialization const&, COW::immutable_ptr&, DB::ReadBuffer&, unsigned long, double) @ 0x000000001e6947f4 in /usr/bin/clickhouse 8. /build/src/Formats/NativeReader.cpp:206: DB::NativeReader::read() @ 0x000000001e69568a in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/NativeFormat.cpp:111: DB::NativeSchemaReader::readSchema() @ 0x000000001e906316 in /usr/bin/clickhouse 10. /build/src/Formats/ReadSchemaUtils.cpp:124: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&, std::unique_ptr>&) @ 0x000000001e69b343 in /usr/bin/clickhouse 11. /build/src/Formats/ReadSchemaUtils.cpp:239: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&) @ 0x000000001e69c8c8 in /usr/bin/clickhouse 12. /build/src/TableFunctions/TableFunctionFormat.cpp:60: DB::TableFunctionFormat::getActualTableStructure(std::shared_ptr, bool) const @ 0x000000001a9db518 in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionFormat.cpp:100: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9dbeb0 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 15. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 16. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 2024.10.22 10:11:33.227549 [ 672 ] {01454578-138d-4a37-be3f-03834513e1ef} TCPHandler: Code: 128. DB::Exception: Array sizes are too large: 13830481612736675823: Cannot extract table structure from Native format file. You can specify the structure manually. (TOO_LARGE_ARRAY_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/DataTypes/Serializations/SerializationArray.cpp:380: DB::SerializationArray::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba31d45 in /usr/bin/clickhouse 7. /build/src/Formats/NativeReader.cpp:97: DB::NativeReader::readData(DB::ISerialization const&, COW::immutable_ptr&, DB::ReadBuffer&, unsigned long, double) @ 0x000000001e6947f4 in /usr/bin/clickhouse 8. /build/src/Formats/NativeReader.cpp:206: DB::NativeReader::read() @ 0x000000001e69568a in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/NativeFormat.cpp:111: DB::NativeSchemaReader::readSchema() @ 0x000000001e906316 in /usr/bin/clickhouse 10. /build/src/Formats/ReadSchemaUtils.cpp:124: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&, std::unique_ptr>&) @ 0x000000001e69b343 in /usr/bin/clickhouse 11. /build/src/Formats/ReadSchemaUtils.cpp:239: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&) @ 0x000000001e69c8c8 in /usr/bin/clickhouse 12. /build/src/TableFunctions/TableFunctionFormat.cpp:60: DB::TableFunctionFormat::getActualTableStructure(std::shared_ptr, bool) const @ 0x000000001a9db518 in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionFormat.cpp:100: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9dbeb0 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 15. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 16. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 2024.10.22 10:11:33.752724 [ 672 ] {59314989-d52f-4ef3-bffa-bb5054d54f65} executeQuery: Code: 128. DB::Exception: Array sizes are too large: 13830481612736626689: Cannot extract table structure from Native format file. You can specify the structure manually. (TOO_LARGE_ARRAY_SIZE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56848) (comment: 02426_pod_array_overflow_3.sql) (in query: SELECT * FROM format(Native, '\x01\x01\x01x\x0CArray(UInt8)\x01\x00\xBD\xEF\xBF\xBD\xEF\xBF\xBD\xEF');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/DataTypes/Serializations/SerializationArray.cpp:380: DB::SerializationArray::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba31d45 in /usr/bin/clickhouse 7. /build/src/Formats/NativeReader.cpp:97: DB::NativeReader::readData(DB::ISerialization const&, COW::immutable_ptr&, DB::ReadBuffer&, unsigned long, double) @ 0x000000001e6947f4 in /usr/bin/clickhouse 8. /build/src/Formats/NativeReader.cpp:206: DB::NativeReader::read() @ 0x000000001e69568a in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/NativeFormat.cpp:111: DB::NativeSchemaReader::readSchema() @ 0x000000001e906316 in /usr/bin/clickhouse 10. /build/src/Formats/ReadSchemaUtils.cpp:124: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&, std::unique_ptr>&) @ 0x000000001e69b343 in /usr/bin/clickhouse 11. /build/src/Formats/ReadSchemaUtils.cpp:239: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&) @ 0x000000001e69c8c8 in /usr/bin/clickhouse 12. /build/src/TableFunctions/TableFunctionFormat.cpp:60: DB::TableFunctionFormat::getActualTableStructure(std::shared_ptr, bool) const @ 0x000000001a9db518 in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionFormat.cpp:100: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9dbeb0 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 15. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 16. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 2024.10.22 10:11:33.753440 [ 672 ] {59314989-d52f-4ef3-bffa-bb5054d54f65} TCPHandler: Code: 128. DB::Exception: Array sizes are too large: 13830481612736626689: Cannot extract table structure from Native format file. You can specify the structure manually. (TOO_LARGE_ARRAY_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/DataTypes/Serializations/SerializationArray.cpp:380: DB::SerializationArray::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba31d45 in /usr/bin/clickhouse 7. /build/src/Formats/NativeReader.cpp:97: DB::NativeReader::readData(DB::ISerialization const&, COW::immutable_ptr&, DB::ReadBuffer&, unsigned long, double) @ 0x000000001e6947f4 in /usr/bin/clickhouse 8. /build/src/Formats/NativeReader.cpp:206: DB::NativeReader::read() @ 0x000000001e69568a in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/NativeFormat.cpp:111: DB::NativeSchemaReader::readSchema() @ 0x000000001e906316 in /usr/bin/clickhouse 10. /build/src/Formats/ReadSchemaUtils.cpp:124: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&, std::unique_ptr>&) @ 0x000000001e69b343 in /usr/bin/clickhouse 11. /build/src/Formats/ReadSchemaUtils.cpp:239: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&) @ 0x000000001e69c8c8 in /usr/bin/clickhouse 12. /build/src/TableFunctions/TableFunctionFormat.cpp:60: DB::TableFunctionFormat::getActualTableStructure(std::shared_ptr, bool) const @ 0x000000001a9db518 in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionFormat.cpp:100: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9dbeb0 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 15. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 16. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 2024.10.22 10:11:37.817239 [ 1300 ] {628a71e2-9f2b-4c11-a903-7bfc4e839048} executeQuery: Code: 252. DB::Exception: Too many parts (1 with average size of 186.00 B) in table 'test_xe799u0z.t_async_inserts_logs (67284d2b-843d-4c9f-8d64-fb285d3df5ac)'. Merges are processing significantly slower than inserts. (TOO_MANY_PARTS) (version 23.8.16.42.altinitystable (altinity build)) (from 0.0.0.0:0) (comment: 02456_async_inserts_logs.sh) (in query: INSERT INTO test_xe799u0z.t_async_inserts_logs FORMAT Values), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001def7d88 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001deaa284 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e3abc2c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001ebcd539 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd515 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd4f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd4d5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd49d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcc8b5 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:110: DB::CompletedPipelineExecutor::execute() @ 0x000000001e6d23e8 in /usr/bin/clickhouse 24. /build/src/Interpreters/AsynchronousInsertQueue.cpp:650: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd8033d in /usr/bin/clickhouse 25. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd824ea in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82455 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82435 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd82415 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd823e0 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 10:11:37.819035 [ 1300 ] {} AsynchronousInsertQueue: Failed insertion for query 'INSERT INTO test_xe799u0z.t_async_inserts_logs FORMAT Values': Code: 252. DB::Exception: Too many parts (1 with average size of 186.00 B) in table 'test_xe799u0z.t_async_inserts_logs (67284d2b-843d-4c9f-8d64-fb285d3df5ac)'. Merges are processing significantly slower than inserts. (TOO_MANY_PARTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001def7d88 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001deaa284 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e3abc2c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001ebcd539 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd515 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd4f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd4d5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd49d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcc8b5 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:110: DB::CompletedPipelineExecutor::execute() @ 0x000000001e6d23e8 in /usr/bin/clickhouse 24. /build/src/Interpreters/AsynchronousInsertQueue.cpp:650: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd8033d in /usr/bin/clickhouse 25. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd824ea in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82455 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82435 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd82415 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd823e0 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:11:37.821861 [ 12929 ] {c3599ba2-6ae0-4df8-865c-e8ac618db231} executeQuery: Code: 252. DB::Exception: Too many parts (1 with average size of 186.00 B) in table 'test_xe799u0z.t_async_inserts_logs (67284d2b-843d-4c9f-8d64-fb285d3df5ac)'. Merges are processing significantly slower than inserts: While executing WaitForAsyncInsert. (TOO_MANY_PARTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:40938) (comment: 02456_async_inserts_logs.sh) (in query: INSERT INTO t_async_inserts_logs VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001def7d88 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001deaa284 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e3abc2c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001ebcd539 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd515 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd4f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd4d5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd49d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcc8b5 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:110: DB::CompletedPipelineExecutor::execute() @ 0x000000001e6d23e8 in /usr/bin/clickhouse 24. /build/src/Interpreters/AsynchronousInsertQueue.cpp:650: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd8033d in /usr/bin/clickhouse 25. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd824ea in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82455 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82435 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd82415 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd823e0 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 10:11:37.823706 [ 12929 ] {c3599ba2-6ae0-4df8-865c-e8ac618db231} DynamicQueryHandler: Code: 252. DB::Exception: Too many parts (1 with average size of 186.00 B) in table 'test_xe799u0z.t_async_inserts_logs (67284d2b-843d-4c9f-8d64-fb285d3df5ac)'. Merges are processing significantly slower than inserts: While executing WaitForAsyncInsert. (TOO_MANY_PARTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001def7d88 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001deaa284 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e3abc2c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001ebcd539 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd515 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd4f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd4d5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd49d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcc8b5 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:110: DB::CompletedPipelineExecutor::execute() @ 0x000000001e6d23e8 in /usr/bin/clickhouse 24. /build/src/Interpreters/AsynchronousInsertQueue.cpp:650: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd8033d in /usr/bin/clickhouse 25. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd824ea in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82455 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82435 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd82415 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd823e0 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:11:49.310906 [ 12930 ] {9acabdd8-03e3-41b1-947b-01430dc3077d} executeQuery: Code: 290. DB::Exception: Limit would be exceeded by inserting 2 new key(s). Limit is 3, while the number of keys would be 4. (LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37848) (comment: 02418_keeper_map_keys_limit.sql) (in query: INSERT INTO 02418_test VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&, unsigned long&) @ 0x0000000017c6be68 in /usr/bin/clickhouse 6. /build/src/Storages/StorageKeeperMap.cpp:211: void DB::StorageKeeperMapSink::finalize(bool) @ 0x000000001d728821 in /usr/bin/clickhouse 7. /build/src/Storages/StorageKeeperMap.cpp:145: DB::StorageKeeperMapSink::onFinish() @ 0x000000001d7267ca in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work()::$_3::operator()() const @ 0x000000001ebcdc5c in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001ebcdc35 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001ebcdc15 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcdbf5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcdbbd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work() @ 0x000000001ebccdc2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:11:49.311836 [ 12930 ] {9acabdd8-03e3-41b1-947b-01430dc3077d} TCPHandler: Code: 290. DB::Exception: Limit would be exceeded by inserting 2 new key(s). Limit is 3, while the number of keys would be 4. (LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&, unsigned long&) @ 0x0000000017c6be68 in /usr/bin/clickhouse 6. /build/src/Storages/StorageKeeperMap.cpp:211: void DB::StorageKeeperMapSink::finalize(bool) @ 0x000000001d728821 in /usr/bin/clickhouse 7. /build/src/Storages/StorageKeeperMap.cpp:145: DB::StorageKeeperMapSink::onFinish() @ 0x000000001d7267ca in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work()::$_3::operator()() const @ 0x000000001ebcdc5c in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001ebcdc35 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001ebcdc15 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcdbf5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcdbbd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work() @ 0x000000001ebccdc2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:11:49.444051 [ 12930 ] {2929645c-cea5-4234-be10-2f85509a9897} executeQuery: Code: 290. DB::Exception: Limit would be exceeded by inserting 1 new key(s). Limit is 3, while the number of keys would be 4. (LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37848) (comment: 02418_keeper_map_keys_limit.sql) (in query: INSERT INTO 02418_test VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&, unsigned long&) @ 0x0000000017c6be68 in /usr/bin/clickhouse 6. /build/src/Storages/StorageKeeperMap.cpp:211: void DB::StorageKeeperMapSink::finalize(bool) @ 0x000000001d728821 in /usr/bin/clickhouse 7. /build/src/Storages/StorageKeeperMap.cpp:145: DB::StorageKeeperMapSink::onFinish() @ 0x000000001d7267ca in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work()::$_3::operator()() const @ 0x000000001ebcdc5c in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001ebcdc35 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001ebcdc15 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcdbf5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcdbbd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work() @ 0x000000001ebccdc2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:11:49.445257 [ 12930 ] {2929645c-cea5-4234-be10-2f85509a9897} TCPHandler: Code: 290. DB::Exception: Limit would be exceeded by inserting 1 new key(s). Limit is 3, while the number of keys would be 4. (LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&, unsigned long&) @ 0x0000000017c6be68 in /usr/bin/clickhouse 6. /build/src/Storages/StorageKeeperMap.cpp:211: void DB::StorageKeeperMapSink::finalize(bool) @ 0x000000001d728821 in /usr/bin/clickhouse 7. /build/src/Storages/StorageKeeperMap.cpp:145: DB::StorageKeeperMapSink::onFinish() @ 0x000000001d7267ca in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work()::$_3::operator()() const @ 0x000000001ebcdc5c in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001ebcdc35 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001ebcdc15 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcdbf5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcdbbd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work() @ 0x000000001ebccdc2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:11:49.679786 [ 12930 ] {78ab4cb3-a77e-40c1-851c-6dc81d0cda45} executeQuery: Code: 290. DB::Exception: Limit would be exceeded by inserting 1 new key(s). Limit is 3, while the number of keys would be 4. (LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37848) (comment: 02418_keeper_map_keys_limit.sql) (in query: INSERT INTO 02418_test VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&, unsigned long&) @ 0x0000000017c6be68 in /usr/bin/clickhouse 6. /build/src/Storages/StorageKeeperMap.cpp:211: void DB::StorageKeeperMapSink::finalize(bool) @ 0x000000001d728821 in /usr/bin/clickhouse 7. /build/src/Storages/StorageKeeperMap.cpp:145: DB::StorageKeeperMapSink::onFinish() @ 0x000000001d7267ca in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work()::$_3::operator()() const @ 0x000000001ebcdc5c in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001ebcdc35 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001ebcdc15 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcdbf5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcdbbd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work() @ 0x000000001ebccdc2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:11:49.680660 [ 12930 ] {78ab4cb3-a77e-40c1-851c-6dc81d0cda45} TCPHandler: Code: 290. DB::Exception: Limit would be exceeded by inserting 1 new key(s). Limit is 3, while the number of keys would be 4. (LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&, unsigned long&) @ 0x0000000017c6be68 in /usr/bin/clickhouse 6. /build/src/Storages/StorageKeeperMap.cpp:211: void DB::StorageKeeperMapSink::finalize(bool) @ 0x000000001d728821 in /usr/bin/clickhouse 7. /build/src/Storages/StorageKeeperMap.cpp:145: DB::StorageKeeperMapSink::onFinish() @ 0x000000001d7267ca in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work()::$_3::operator()() const @ 0x000000001ebcdc5c in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001ebcdc35 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001ebcdc15 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcdbf5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcdbbd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work() @ 0x000000001ebccdc2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:11:53.350970 [ 12930 ] {96c4eb42-38de-40ca-8bdf-0a4bc4e6d4d5} executeQuery: Code: 36. DB::Exception: Primary key cannot be updated (cannot update column key). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37950) (comment: 02416_rocksdb_delete_update.sql) (in query: ALTER TABLE 02416_rocksdb UPDATE key = key * 10 WHERE 1 = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/RocksDB/StorageEmbeddedRocksDB.cpp:282: DB::StorageEmbeddedRocksDB::mutate(DB::MutationCommands const&, std::shared_ptr) @ 0x000000001ae054b4 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:179: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da03a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:53.352014 [ 12930 ] {96c4eb42-38de-40ca-8bdf-0a4bc4e6d4d5} TCPHandler: Code: 36. DB::Exception: Primary key cannot be updated (cannot update column key). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/RocksDB/StorageEmbeddedRocksDB.cpp:282: DB::StorageEmbeddedRocksDB::mutate(DB::MutationCommands const&, std::shared_ptr) @ 0x000000001ae054b4 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:179: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da03a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:11:55.745286 [ 5625 ] {e6adb429-8ea0-4dbf-acf0-282a877ec76c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 64.00 GiB (attempt to allocate chunk of 68720001848 bytes), maximum: 1.00 GiB.: While executing GenerateRandom. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38020) (comment: 02400_memory_accounting_on_error.sql) (in query: -- max_block_size to avoid randomization SELECT * FROM generateRandom('i Array(Int8)', 1, 1, 1048577) LIMIT 65536 SETTINGS max_memory_usage='1Gi', max_block_size=65505, log_queries=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001387b44e in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b2045e5 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b204479 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:0: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::resize<>(unsigned long) @ 0x000000000b204266 in /usr/bin/clickhouse 14. /build/src/Storages/StorageGenerateRandom.cpp:369: DB::(anonymous namespace)::fillColumnWithRandomData(std::shared_ptr, unsigned long, unsigned long, unsigned long, pcg_detail::engine, false, pcg_detail::specific_stream, pcg_detail::default_multiplier>&, std::shared_ptr) @ 0x000000001d6c4c29 in /usr/bin/clickhouse 15. /build/src/Storages/StorageGenerateRandom.cpp:257: DB::(anonymous namespace)::fillColumnWithRandomData(std::shared_ptr, unsigned long, unsigned long, unsigned long, pcg_detail::engine, false, pcg_detail::specific_stream, pcg_detail::default_multiplier>&, std::shared_ptr) @ 0x000000001d6c3b79 in /usr/bin/clickhouse 16. /build/src/Storages/StorageGenerateRandom.cpp:548: DB::(anonymous namespace)::GenerateSource::generate() @ 0x000000001d6c3021 in /usr/bin/clickhouse 17. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 18. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 2024.10.22 10:11:55.751950 [ 5625 ] {e6adb429-8ea0-4dbf-acf0-282a877ec76c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 64.00 GiB (attempt to allocate chunk of 68720001848 bytes), maximum: 1.00 GiB.: While executing GenerateRandom. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001387b44e in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b2045e5 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b204479 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:0: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::resize<>(unsigned long) @ 0x000000000b204266 in /usr/bin/clickhouse 14. /build/src/Storages/StorageGenerateRandom.cpp:369: DB::(anonymous namespace)::fillColumnWithRandomData(std::shared_ptr, unsigned long, unsigned long, unsigned long, pcg_detail::engine, false, pcg_detail::specific_stream, pcg_detail::default_multiplier>&, std::shared_ptr) @ 0x000000001d6c4c29 in /usr/bin/clickhouse 15. /build/src/Storages/StorageGenerateRandom.cpp:257: DB::(anonymous namespace)::fillColumnWithRandomData(std::shared_ptr, unsigned long, unsigned long, unsigned long, pcg_detail::engine, false, pcg_detail::specific_stream, pcg_detail::default_multiplier>&, std::shared_ptr) @ 0x000000001d6c3b79 in /usr/bin/clickhouse 16. /build/src/Storages/StorageGenerateRandom.cpp:548: DB::(anonymous namespace)::GenerateSource::generate() @ 0x000000001d6c3021 in /usr/bin/clickhouse 17. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 18. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 2024.10.22 10:11:58.808192 [ 12916 ] {a19fdfd6-a6ea-4691-9d63-397bfc6e85e0} executeQuery: Code: 36. DB::Exception: Dictionary (`invalid_dictionary`) not found: In scope WITH 'invalid_dictionary' AS dictionary SELECT dictGet(dictionary, 'value', toUInt64(0)). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45196) (comment: 02384_analyzer_dict_get_join_get.sql) (in query: WITH 'invalid_dictionary' AS dictionary SELECT dictGet(dictionary, 'value', toUInt64(0));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExternalDictionariesLoader.cpp:127: DB::ExternalDictionariesLoader::resolveDictionaryName(String const&, String const&) const @ 0x000000001c537112 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExternalDictionariesLoader.cpp:72: DB::ExternalDictionariesLoader::getDictionaryStructure(String const&, std::shared_ptr) const @ 0x000000001c5375a0 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsExternalDictionaries.h:135: DB::FunctionDictHelper::getDictionaryStructure(String const&) const @ 0x000000000bc66858 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsExternalDictionaries.h:361: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bc5f20a in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5251: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93b650 in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5551: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c924136 in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 17. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 18. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 19. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 20. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 21. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:11:58.808986 [ 12916 ] {a19fdfd6-a6ea-4691-9d63-397bfc6e85e0} TCPHandler: Code: 36. DB::Exception: Dictionary (`invalid_dictionary`) not found: In scope WITH 'invalid_dictionary' AS dictionary SELECT dictGet(dictionary, 'value', toUInt64(0)). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExternalDictionariesLoader.cpp:127: DB::ExternalDictionariesLoader::resolveDictionaryName(String const&, String const&) const @ 0x000000001c537112 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExternalDictionariesLoader.cpp:72: DB::ExternalDictionariesLoader::getDictionaryStructure(String const&, std::shared_ptr) const @ 0x000000001c5375a0 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsExternalDictionaries.h:135: DB::FunctionDictHelper::getDictionaryStructure(String const&) const @ 0x000000000bc66858 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsExternalDictionaries.h:361: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bc5f20a in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5251: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93b650 in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5551: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c924136 in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 17. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 18. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 19. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 20. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 21. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:11:59.144796 [ 12916 ] {4c786079-d832-4330-bc58-aa1727105b69} executeQuery: Code: 60. DB::Exception: Table test_mtr9nftx.invalid_test_table_join does not exist: In scope WITH 'invalid_test_table_join' AS join_table SELECT joinGet(join_table, 'value', toUInt64(0)). (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45196) (comment: 02384_analyzer_dict_get_join_get.sql) (in query: WITH 'invalid_test_table_join' AS join_table SELECT joinGet(join_table, 'value', toUInt64(0));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionJoinGet.cpp:55: DB::getJoin(std::vector> const&, std::shared_ptr) @ 0x000000000b907f70 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionJoinGet.cpp:80: DB::JoinGetOverloadResolver::buildImpl(std::vector> const&, std::shared_ptr const&) const @ 0x000000000b90e167 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:451: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf383e in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5251: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93b650 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5551: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c924136 in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 17. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 18. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 19. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 2024.10.22 10:11:59.145625 [ 12916 ] {4c786079-d832-4330-bc58-aa1727105b69} TCPHandler: Code: 60. DB::Exception: Table test_mtr9nftx.invalid_test_table_join does not exist: In scope WITH 'invalid_test_table_join' AS join_table SELECT joinGet(join_table, 'value', toUInt64(0)). (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionJoinGet.cpp:55: DB::getJoin(std::vector> const&, std::shared_ptr) @ 0x000000000b907f70 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionJoinGet.cpp:80: DB::JoinGetOverloadResolver::buildImpl(std::vector> const&, std::shared_ptr const&) const @ 0x000000000b90e167 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:451: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf383e in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5251: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93b650 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5551: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c924136 in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 17. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 18. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 19. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 2024.10.22 10:12:02.659165 [ 12920 ] {3c5bdbf1-8590-420e-bafa-b304e5189c1f} executeQuery: Code: 390. DB::Exception: Table `mv` doesn't exist. (CANNOT_GET_CREATE_TABLE_QUERY) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45286) (comment: 02380_insert_mv_race.sh) (in query: ATTACH TABLE mv), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseOnDisk.cpp:485: DB::DatabaseOnDisk::getCreateTableQueryImpl(String const&, std::shared_ptr, bool) const @ 0x000000001bacfa76 in /usr/bin/clickhouse 7. /build/src/Databases/IDatabase.h:275: DB::IDatabase::getCreateTableQuery(String const&, std::shared_ptr) const @ 0x000000001b334817 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:1113: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f2888 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:02.660842 [ 12920 ] {3c5bdbf1-8590-420e-bafa-b304e5189c1f} TCPHandler: Code: 390. DB::Exception: Table `mv` doesn't exist. (CANNOT_GET_CREATE_TABLE_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseOnDisk.cpp:485: DB::DatabaseOnDisk::getCreateTableQueryImpl(String const&, std::shared_ptr, bool) const @ 0x000000001bacfa76 in /usr/bin/clickhouse 7. /build/src/Databases/IDatabase.h:275: DB::IDatabase::getCreateTableQuery(String const&, std::shared_ptr) const @ 0x000000001b334817 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:1113: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f2888 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:03.721871 [ 3961 ] {78410c0a-e0db-4dfa-8dac-58a1c0bcae63} ExternalDictionariesLoader: Could not load external dictionary 'de4640b6-ab6f-4c3d-886e-8c4aea3ddb9b', next update is scheduled at 2024-10-22 10:12:09: Code: 60. DB::Exception: Table test_jmquu6yo.data does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Dictionaries/ClickHouseDictionarySource.cpp:171: DB::ClickHouseDictionarySource::createStreamForQuery(String const&) @ 0x0000000017c262d1 in /usr/bin/clickhouse 20. /build/src/Dictionaries/ClickHouseDictionarySource.cpp:113: DB::ClickHouseDictionarySource::loadAll() @ 0x0000000017c261aa in /usr/bin/clickhouse 21. /build/src/Dictionaries/HashedDictionary.cpp:935: DB::HashedDictionary<(DB::DictionaryKeyType)0, false, false>::loadData() @ 0x0000000017dd16a8 in /usr/bin/clickhouse 22. /build/src/Dictionaries/HashedDictionary.cpp:214: DB::HashedDictionary<(DB::DictionaryKeyType)0, false, false>::HashedDictionary(DB::StorageID const&, DB::DictionaryStructure const&, std::shared_ptr, DB::HashedDictionaryConfiguration const&, std::shared_ptr) @ 0x0000000017dd115c in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if>::__unique_single std::make_unique[abi:v15000], DB::StorageID const&, DB::DictionaryStructure const&, std::shared_ptr, DB::HashedDictionaryConfiguration&>(DB::StorageID const&, DB::DictionaryStructure const&, std::shared_ptr&&, DB::HashedDictionaryConfiguration&) @ 0x0000000018367226 in /usr/bin/clickhouse 24. /build/src/Dictionaries/HashedDictionary.cpp:1213: DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_4::operator()(String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, DB::DictionaryKeyType, bool) const @ 0x0000000017dcfd86 in /usr/bin/clickhouse 25. /build/src/Dictionaries/HashedDictionary.cpp:1238: auto DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_0::operator()(String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool) const @ 0x0000000017dce9d2 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval(), std::declval>(), std::declval>(), std::declval())) std::__invoke[abi:v15000], std::shared_ptr, bool>(DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_0&, String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) @ 0x0000000017dce8fb in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::unique_ptr> std::__invoke_void_return_wrapper>, false>::__call, std::shared_ptr, bool>(DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_0&, String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) @ 0x0000000017dce816 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::operator()[abi:v15000](String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) @ 0x0000000017dce796 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::unique_ptr> std::__function::__policy_invoker> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::__call_impl> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>>(std::__function::__policy_storage const*, String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool) @ 0x0000000017dce722 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::operator()[abi:v15000](String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) const @ 0x000000001abd9d82 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::operator()(String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool) const @ 0x000000001abd711b in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:03.723470 [ 12922 ] {78410c0a-e0db-4dfa-8dac-58a1c0bcae63} executeQuery: Code: 60. DB::Exception: Table test_jmquu6yo.data does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45344) (comment: 02390_prometheus_ClickHouseStatusInfo_DictionaryStatus.sh) (in query: SYSTEM RELOAD DICTIONARY dict -- { serverError UNKNOWN_TABLE }), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Dictionaries/ClickHouseDictionarySource.cpp:171: DB::ClickHouseDictionarySource::createStreamForQuery(String const&) @ 0x0000000017c262d1 in /usr/bin/clickhouse 20. /build/src/Dictionaries/ClickHouseDictionarySource.cpp:113: DB::ClickHouseDictionarySource::loadAll() @ 0x0000000017c261aa in /usr/bin/clickhouse 21. /build/src/Dictionaries/HashedDictionary.cpp:935: DB::HashedDictionary<(DB::DictionaryKeyType)0, false, false>::loadData() @ 0x0000000017dd16a8 in /usr/bin/clickhouse 22. /build/src/Dictionaries/HashedDictionary.cpp:214: DB::HashedDictionary<(DB::DictionaryKeyType)0, false, false>::HashedDictionary(DB::StorageID const&, DB::DictionaryStructure const&, std::shared_ptr, DB::HashedDictionaryConfiguration const&, std::shared_ptr) @ 0x0000000017dd115c in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if>::__unique_single std::make_unique[abi:v15000], DB::StorageID const&, DB::DictionaryStructure const&, std::shared_ptr, DB::HashedDictionaryConfiguration&>(DB::StorageID const&, DB::DictionaryStructure const&, std::shared_ptr&&, DB::HashedDictionaryConfiguration&) @ 0x0000000018367226 in /usr/bin/clickhouse 24. /build/src/Dictionaries/HashedDictionary.cpp:1213: DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_4::operator()(String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, DB::DictionaryKeyType, bool) const @ 0x0000000017dcfd86 in /usr/bin/clickhouse 25. /build/src/Dictionaries/HashedDictionary.cpp:1238: auto DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_0::operator()(String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool) const @ 0x0000000017dce9d2 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval(), std::declval>(), std::declval>(), std::declval())) std::__invoke[abi:v15000], std::shared_ptr, bool>(DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_0&, String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) @ 0x0000000017dce8fb in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::unique_ptr> std::__invoke_void_return_wrapper>, false>::__call, std::shared_ptr, bool>(DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_0&, String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) @ 0x0000000017dce816 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::operator()[abi:v15000](String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) @ 0x0000000017dce796 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::unique_ptr> std::__function::__policy_invoker> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::__call_impl> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>>(std::__function::__policy_storage const*, String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool) @ 0x0000000017dce722 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::operator()[abi:v15000](String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) const @ 0x000000001abd9d82 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::operator()(String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool) const @ 0x000000001abd711b in /usr/bin/clickhouse 2024.10.22 10:12:03.724655 [ 12922 ] {78410c0a-e0db-4dfa-8dac-58a1c0bcae63} TCPHandler: Code: 60. DB::Exception: Table test_jmquu6yo.data does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Dictionaries/ClickHouseDictionarySource.cpp:171: DB::ClickHouseDictionarySource::createStreamForQuery(String const&) @ 0x0000000017c262d1 in /usr/bin/clickhouse 20. /build/src/Dictionaries/ClickHouseDictionarySource.cpp:113: DB::ClickHouseDictionarySource::loadAll() @ 0x0000000017c261aa in /usr/bin/clickhouse 21. /build/src/Dictionaries/HashedDictionary.cpp:935: DB::HashedDictionary<(DB::DictionaryKeyType)0, false, false>::loadData() @ 0x0000000017dd16a8 in /usr/bin/clickhouse 22. /build/src/Dictionaries/HashedDictionary.cpp:214: DB::HashedDictionary<(DB::DictionaryKeyType)0, false, false>::HashedDictionary(DB::StorageID const&, DB::DictionaryStructure const&, std::shared_ptr, DB::HashedDictionaryConfiguration const&, std::shared_ptr) @ 0x0000000017dd115c in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if>::__unique_single std::make_unique[abi:v15000], DB::StorageID const&, DB::DictionaryStructure const&, std::shared_ptr, DB::HashedDictionaryConfiguration&>(DB::StorageID const&, DB::DictionaryStructure const&, std::shared_ptr&&, DB::HashedDictionaryConfiguration&) @ 0x0000000018367226 in /usr/bin/clickhouse 24. /build/src/Dictionaries/HashedDictionary.cpp:1213: DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_4::operator()(String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, DB::DictionaryKeyType, bool) const @ 0x0000000017dcfd86 in /usr/bin/clickhouse 25. /build/src/Dictionaries/HashedDictionary.cpp:1238: auto DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_0::operator()(String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool) const @ 0x0000000017dce9d2 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval(), std::declval>(), std::declval>(), std::declval())) std::__invoke[abi:v15000], std::shared_ptr, bool>(DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_0&, String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) @ 0x0000000017dce8fb in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::unique_ptr> std::__invoke_void_return_wrapper>, false>::__call, std::shared_ptr, bool>(DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_0&, String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) @ 0x0000000017dce816 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::operator()[abi:v15000](String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) @ 0x0000000017dce796 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::unique_ptr> std::__function::__policy_invoker> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::__call_impl> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>>(std::__function::__policy_storage const*, String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool) @ 0x0000000017dce722 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::operator()[abi:v15000](String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) const @ 0x000000001abd9d82 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::operator()(String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool) const @ 0x000000001abd711b in /usr/bin/clickhouse 2024.10.22 10:12:05.157655 [ 12925 ] {9a5f4919-6b96-4d75-b1be-11e4015ea8c5} executeQuery: Code: 43. DB::Exception: Arguments of function nowInBlock should be String or FixedString: While processing nowInBlock(1). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45366) (comment: 02372_now_in_block.sql) (in query: SELECT nowInBlock(1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/nowInBlock.cpp:70: DB::(anonymous namespace)::FunctionNowInBlock::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118eeaec in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:12:05.158599 [ 12925 ] {9a5f4919-6b96-4d75-b1be-11e4015ea8c5} TCPHandler: Code: 43. DB::Exception: Arguments of function nowInBlock should be String or FixedString: While processing nowInBlock(1). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/nowInBlock.cpp:70: DB::(anonymous namespace)::FunctionNowInBlock::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118eeaec in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:12:05.309628 [ 12925 ] {60bfd3d3-8dd3-4df4-8431-a45b9bf7e641} executeQuery: Code: 42. DB::Exception: Arguments size of function nowInBlock should be 0 or 1: While processing nowInBlock('UTC', 'UTC'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45366) (comment: 02372_now_in_block.sql) (in query: SELECT nowInBlock('UTC', 'UTC');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/nowInBlock.cpp:66: DB::(anonymous namespace)::FunctionNowInBlock::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118ee9b5 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:12:05.310574 [ 12925 ] {60bfd3d3-8dd3-4df4-8431-a45b9bf7e641} TCPHandler: Code: 42. DB::Exception: Arguments size of function nowInBlock should be 0 or 1: While processing nowInBlock('UTC', 'UTC'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/nowInBlock.cpp:66: DB::(anonymous namespace)::FunctionNowInBlock::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118ee9b5 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:12:05.569460 [ 12922 ] {7af20000-0f48-4f13-89c9-3c563686a26b} executeQuery: Code: 207. DB::Exception: JOIN test_0rhz1yqy.test_table_join_1 ALL INNER JOIN test_0rhz1yqy.test_table_join_2 ON test_0rhz1yqy.test_table_join_1.id = test_0rhz1yqy.test_table_join_2.id ambiguous identifier 'id'. In scope SELECT id FROM test_table_join_1 INNER JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45352) (comment: 02372_analyzer_join.gen.sql) (in query: SELECT id FROM test_table_join_1 INNER JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c977668 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c941059 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93fb85 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92ffe7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f23b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:05.570494 [ 12922 ] {7af20000-0f48-4f13-89c9-3c563686a26b} TCPHandler: Code: 207. DB::Exception: JOIN test_0rhz1yqy.test_table_join_1 ALL INNER JOIN test_0rhz1yqy.test_table_join_2 ON test_0rhz1yqy.test_table_join_1.id = test_0rhz1yqy.test_table_join_2.id ambiguous identifier 'id'. In scope SELECT id FROM test_table_join_1 INNER JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c977668 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c941059 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93fb85 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92ffe7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f23b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:05.590783 [ 12922 ] {e5da6cab-7737-4b5d-b1b3-25f541c37218} executeQuery: Code: 207. DB::Exception: JOIN test_0rhz1yqy.test_table_join_1 ALL INNER JOIN test_0rhz1yqy.test_table_join_2 ON test_0rhz1yqy.test_table_join_1.id = test_0rhz1yqy.test_table_join_2.id ambiguous identifier 'value'. In scope SELECT value FROM test_table_join_1 INNER JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45352) (comment: 02372_analyzer_join.gen.sql) (in query: SELECT value FROM test_table_join_1 INNER JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c977668 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c941059 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93fb85 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92ffe7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f23b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:05.591728 [ 12922 ] {e5da6cab-7737-4b5d-b1b3-25f541c37218} TCPHandler: Code: 207. DB::Exception: JOIN test_0rhz1yqy.test_table_join_1 ALL INNER JOIN test_0rhz1yqy.test_table_join_2 ON test_0rhz1yqy.test_table_join_1.id = test_0rhz1yqy.test_table_join_2.id ambiguous identifier 'value'. In scope SELECT value FROM test_table_join_1 INNER JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c977668 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c941059 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93fb85 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92ffe7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f23b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:06.822071 [ 12933 ] {02421_truncate_isolation_no_merges_test_9xduel5u_tx21_1162} executeQuery: Code: 60. DB::Exception: Table test_9xduel5u.tt does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:56646) (in query: truncate table tt), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 14. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 15. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 16. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:06.822983 [ 12933 ] {02421_truncate_isolation_no_merges_test_9xduel5u_tx21_1162} DynamicQueryHandler: Code: 60. DB::Exception: Table test_9xduel5u.tt does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 14. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 15. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 16. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:07.263720 [ 12922 ] {b49994c2-00d1-44d2-8a64-dd663e20c91f} executeQuery: Code: 207. DB::Exception: JOIN test_0rhz1yqy.test_table_join_1 ALL LEFT JOIN test_0rhz1yqy.test_table_join_2 ON test_0rhz1yqy.test_table_join_1.id = test_0rhz1yqy.test_table_join_2.id ambiguous identifier 'id'. In scope SELECT id FROM test_table_join_1 LEFT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45352) (comment: 02372_analyzer_join.gen.sql) (in query: SELECT id FROM test_table_join_1 LEFT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c977668 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c941059 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93fb85 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92ffe7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f23b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:07.264458 [ 12922 ] {b49994c2-00d1-44d2-8a64-dd663e20c91f} TCPHandler: Code: 207. DB::Exception: JOIN test_0rhz1yqy.test_table_join_1 ALL LEFT JOIN test_0rhz1yqy.test_table_join_2 ON test_0rhz1yqy.test_table_join_1.id = test_0rhz1yqy.test_table_join_2.id ambiguous identifier 'id'. In scope SELECT id FROM test_table_join_1 LEFT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c977668 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c941059 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93fb85 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92ffe7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f23b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:07.288821 [ 12922 ] {2acfe6ce-5eae-40e8-9968-f1535052ce7f} executeQuery: Code: 207. DB::Exception: JOIN test_0rhz1yqy.test_table_join_1 ALL LEFT JOIN test_0rhz1yqy.test_table_join_2 ON test_0rhz1yqy.test_table_join_1.id = test_0rhz1yqy.test_table_join_2.id ambiguous identifier 'value'. In scope SELECT value FROM test_table_join_1 LEFT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45352) (comment: 02372_analyzer_join.gen.sql) (in query: SELECT value FROM test_table_join_1 LEFT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c977668 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c941059 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93fb85 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92ffe7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f23b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:07.289678 [ 12922 ] {2acfe6ce-5eae-40e8-9968-f1535052ce7f} TCPHandler: Code: 207. DB::Exception: JOIN test_0rhz1yqy.test_table_join_1 ALL LEFT JOIN test_0rhz1yqy.test_table_join_2 ON test_0rhz1yqy.test_table_join_1.id = test_0rhz1yqy.test_table_join_2.id ambiguous identifier 'value'. In scope SELECT value FROM test_table_join_1 LEFT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c977668 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c941059 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93fb85 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92ffe7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f23b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:08.970839 [ 12922 ] {f5dabc12-766f-494f-a886-f89a7fe7844b} executeQuery: Code: 207. DB::Exception: JOIN test_0rhz1yqy.test_table_join_1 ALL RIGHT JOIN test_0rhz1yqy.test_table_join_2 ON test_0rhz1yqy.test_table_join_1.id = test_0rhz1yqy.test_table_join_2.id ambiguous identifier 'id'. In scope SELECT id FROM test_table_join_1 RIGHT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45352) (comment: 02372_analyzer_join.gen.sql) (in query: SELECT id FROM test_table_join_1 RIGHT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c977668 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c941059 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93fb85 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92ffe7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f23b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:08.971674 [ 12922 ] {f5dabc12-766f-494f-a886-f89a7fe7844b} TCPHandler: Code: 207. DB::Exception: JOIN test_0rhz1yqy.test_table_join_1 ALL RIGHT JOIN test_0rhz1yqy.test_table_join_2 ON test_0rhz1yqy.test_table_join_1.id = test_0rhz1yqy.test_table_join_2.id ambiguous identifier 'id'. In scope SELECT id FROM test_table_join_1 RIGHT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c977668 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c941059 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93fb85 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92ffe7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f23b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:08.993989 [ 12922 ] {00d0ccd0-370f-435d-90a8-83fc413de9a7} executeQuery: Code: 207. DB::Exception: JOIN test_0rhz1yqy.test_table_join_1 ALL RIGHT JOIN test_0rhz1yqy.test_table_join_2 ON test_0rhz1yqy.test_table_join_1.id = test_0rhz1yqy.test_table_join_2.id ambiguous identifier 'value'. In scope SELECT value FROM test_table_join_1 RIGHT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45352) (comment: 02372_analyzer_join.gen.sql) (in query: SELECT value FROM test_table_join_1 RIGHT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c977668 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c941059 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93fb85 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92ffe7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f23b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:08.994997 [ 12922 ] {00d0ccd0-370f-435d-90a8-83fc413de9a7} TCPHandler: Code: 207. DB::Exception: JOIN test_0rhz1yqy.test_table_join_1 ALL RIGHT JOIN test_0rhz1yqy.test_table_join_2 ON test_0rhz1yqy.test_table_join_1.id = test_0rhz1yqy.test_table_join_2.id ambiguous identifier 'value'. In scope SELECT value FROM test_table_join_1 RIGHT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c977668 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c941059 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93fb85 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92ffe7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f23b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:10.624486 [ 12922 ] {4e4870fe-7786-4f63-8687-5a3f896dd788} executeQuery: Code: 207. DB::Exception: JOIN test_0rhz1yqy.test_table_join_1 ALL FULL OUTER JOIN test_0rhz1yqy.test_table_join_2 ON test_0rhz1yqy.test_table_join_1.id = test_0rhz1yqy.test_table_join_2.id ambiguous identifier 'id'. In scope SELECT id FROM test_table_join_1 FULL OUTER JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45352) (comment: 02372_analyzer_join.gen.sql) (in query: SELECT id FROM test_table_join_1 FULL JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c977668 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c941059 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93fb85 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92ffe7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f23b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:10.625478 [ 12922 ] {4e4870fe-7786-4f63-8687-5a3f896dd788} TCPHandler: Code: 207. DB::Exception: JOIN test_0rhz1yqy.test_table_join_1 ALL FULL OUTER JOIN test_0rhz1yqy.test_table_join_2 ON test_0rhz1yqy.test_table_join_1.id = test_0rhz1yqy.test_table_join_2.id ambiguous identifier 'id'. In scope SELECT id FROM test_table_join_1 FULL OUTER JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c977668 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c941059 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93fb85 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92ffe7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f23b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:10.647968 [ 12922 ] {9b73d930-9adc-434a-8c42-b71e891de4cc} executeQuery: Code: 207. DB::Exception: JOIN test_0rhz1yqy.test_table_join_1 ALL FULL OUTER JOIN test_0rhz1yqy.test_table_join_2 ON test_0rhz1yqy.test_table_join_1.id = test_0rhz1yqy.test_table_join_2.id ambiguous identifier 'value'. In scope SELECT value FROM test_table_join_1 FULL OUTER JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45352) (comment: 02372_analyzer_join.gen.sql) (in query: SELECT value FROM test_table_join_1 FULL JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c977668 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c941059 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93fb85 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92ffe7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f23b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:10.649060 [ 12922 ] {9b73d930-9adc-434a-8c42-b71e891de4cc} TCPHandler: Code: 207. DB::Exception: JOIN test_0rhz1yqy.test_table_join_1 ALL FULL OUTER JOIN test_0rhz1yqy.test_table_join_2 ON test_0rhz1yqy.test_table_join_1.id = test_0rhz1yqy.test_table_join_2.id ambiguous identifier 'value'. In scope SELECT value FROM test_table_join_1 FULL OUTER JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c977668 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c941059 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93fb85 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92ffe7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f23b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:17.150145 [ 935 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:17.915117 [ 938 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:18.962527 [ 944 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:19.245704 [ 940 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:19.665835 [ 944 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:20.081397 [ 939 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:20.468393 [ 938 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:20.880666 [ 6967 ] {3f7c59ff-5a48-440f-9913-855ca04c7873} executeQuery: Code: 80. DB::Exception: Annoy index must not have more than two parameters. (INCORRECT_QUERY) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38454) (comment: 02354_annoy_index.sql) (in query: -- must have at most 2 arguments CREATE TABLE tab(id Int32, vector Array(Float32), INDEX annoy_index vector TYPE annoy('too', 'many', 'arguments')) ENGINE = MergeTree ORDER BY id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [51]) @ 0x000000000b19a8de in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:335: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e077c1a in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008f0d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008ec5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001e008e85 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001e008e30 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001e007e4e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001e002608 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001e001106 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de68eb0 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 17. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 30. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 2024.10.22 10:12:20.881839 [ 6967 ] {3f7c59ff-5a48-440f-9913-855ca04c7873} TCPHandler: Code: 80. DB::Exception: Annoy index must not have more than two parameters. (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [51]) @ 0x000000000b19a8de in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:335: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e077c1a in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008f0d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008ec5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001e008e85 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001e008e30 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001e007e4e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001e002608 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001e001106 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de68eb0 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 17. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 30. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 2024.10.22 10:12:21.100656 [ 6967 ] {11d1568f-5acd-410e-a664-2363620a1d14} executeQuery: Code: 80. DB::Exception: Distance function argument of Annoy index must be of type String. (INCORRECT_QUERY) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38454) (comment: 02354_annoy_index.sql) (in query: -- first argument (distance_function) must be String CREATE TABLE tab(id Int32, vector Array(Float32), INDEX annoy_index vector TYPE annoy(3)) ENGINE = MergeTree ORDER BY id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [65]) @ 0x000000000e1d2ebe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:338: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e077cb9 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008f0d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008ec5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001e008e85 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001e008e30 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001e007e4e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001e002608 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001e001106 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de68eb0 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 17. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 30. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 2024.10.22 10:12:21.101032 [ 935 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:21.101799 [ 6967 ] {11d1568f-5acd-410e-a664-2363620a1d14} TCPHandler: Code: 80. DB::Exception: Distance function argument of Annoy index must be of type String. (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [65]) @ 0x000000000e1d2ebe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:338: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e077cb9 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008f0d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008ec5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001e008e85 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001e008e30 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001e007e4e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001e002608 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001e001106 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de68eb0 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 17. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 30. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 2024.10.22 10:12:21.299235 [ 6967 ] {2964af35-ef76-49d8-9fdc-41229d6ce142} executeQuery: Code: 80. DB::Exception: Number of trees argument of Annoy index must be of type UInt64. (INCORRECT_QUERY) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38454) (comment: 02354_annoy_index.sql) (in query: -- 2nd argument (number of trees) must be UInt64 CREATE TABLE tab(id Int32, vector Array(Float32), INDEX annoy_index vector TYPE annoy('L2Distance', 'not an UInt64')) ENGINE = MergeTree ORDER BY id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [63]) @ 0x000000000bae3e1e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:341: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e077d5b in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008f0d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008ec5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001e008e85 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001e008e30 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001e007e4e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001e002608 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001e001106 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de68eb0 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 17. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 30. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 2024.10.22 10:12:21.300202 [ 6967 ] {2964af35-ef76-49d8-9fdc-41229d6ce142} TCPHandler: Code: 80. DB::Exception: Number of trees argument of Annoy index must be of type UInt64. (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [63]) @ 0x000000000bae3e1e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:341: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e077d5b in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008f0d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008ec5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001e008e85 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001e008e30 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001e007e4e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001e002608 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001e001106 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de68eb0 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 17. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 30. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 2024.10.22 10:12:21.487903 [ 6967 ] {f8f3d84d-187c-4006-bf1d-e190254af64a} executeQuery: Code: 7. DB::Exception: Annoy indexes must be created on a single column. (INCORRECT_NUMBER_OF_COLUMNS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38454) (comment: 02354_annoy_index.sql) (in query: -- must be created on single column CREATE TABLE tab(id Int32, vector Array(Float32), INDEX annoy_index (vector, id) TYPE annoy()) ENGINE = MergeTree ORDER BY id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4c75be in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:346: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e077df9 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008f0d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008ec5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001e008e85 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001e008e30 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001e007e4e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001e002608 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001e001106 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de68eb0 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 17. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 30. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 2024.10.22 10:12:21.488106 [ 944 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:21.488894 [ 6967 ] {f8f3d84d-187c-4006-bf1d-e190254af64a} TCPHandler: Code: 7. DB::Exception: Annoy indexes must be created on a single column. (INCORRECT_NUMBER_OF_COLUMNS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4c75be in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:346: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e077df9 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008f0d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008ec5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001e008e85 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001e008e30 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001e007e4e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001e002608 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001e001106 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de68eb0 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 17. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 30. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 2024.10.22 10:12:21.678823 [ 6967 ] {485e7c0d-9829-4943-a91a-bf7788a2097d} executeQuery: Code: 117. DB::Exception: Annoy index only supports distance functions 'L2Distance' and 'cosineDistance'. (INCORRECT_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38454) (comment: 02354_annoy_index.sql) (in query: -- reject unsupported distance functions CREATE TABLE tab(id Int32, vector Array(Float32), INDEX annoy_index vector TYPE annoy('wormholeDistance')) ENGINE = MergeTree ORDER BY id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, char const* const&, char const* const&) @ 0x00000000124c948c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:354: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e077f11 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008f0d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008ec5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001e008e85 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001e008e30 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001e007e4e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001e002608 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001e001106 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de68eb0 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 17. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 30. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 2024.10.22 10:12:21.679817 [ 6967 ] {485e7c0d-9829-4943-a91a-bf7788a2097d} TCPHandler: Code: 117. DB::Exception: Annoy index only supports distance functions 'L2Distance' and 'cosineDistance'. (INCORRECT_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, char const* const&, char const* const&) @ 0x00000000124c948c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:354: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e077f11 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008f0d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008ec5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001e008e85 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001e008e30 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001e007e4e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001e002608 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001e001106 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de68eb0 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 17. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 30. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 2024.10.22 10:12:21.926883 [ 6967 ] {4da94059-1b4c-46ef-a396-d6ca6e429d52} executeQuery: Code: 44. DB::Exception: Annoy indexes can only be created on columns of type Array(Float32) and Tuple(Float32). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38454) (comment: 02354_annoy_index.sql) (in query: CREATE TABLE tab(id Int32, vector Float32, INDEX annoy_index vector TYPE annoy()) ENGINE = MergeTree ORDER BY id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [87]) @ 0x000000001398bffe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:361: DB::annoyIndexValidator(DB::IndexDescription const&, bool)::$_0::operator()() const @ 0x000000001e078275 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:385: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e078213 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008f0d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008ec5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001e008e85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001e008e30 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001e007e4e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001e002608 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001e001106 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de68eb0 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 18. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 31. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 2024.10.22 10:12:21.926977 [ 935 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:21.928183 [ 6967 ] {4da94059-1b4c-46ef-a396-d6ca6e429d52} TCPHandler: Code: 44. DB::Exception: Annoy indexes can only be created on columns of type Array(Float32) and Tuple(Float32). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [87]) @ 0x000000001398bffe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:361: DB::annoyIndexValidator(DB::IndexDescription const&, bool)::$_0::operator()() const @ 0x000000001e078275 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:385: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e078213 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008f0d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008ec5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001e008e85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001e008e30 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001e007e4e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001e002608 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001e001106 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de68eb0 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 18. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 31. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 2024.10.22 10:12:22.165680 [ 6967 ] {bcf9410d-ce60-4380-a0a4-9312af6efab0} executeQuery: Code: 44. DB::Exception: Annoy indexes can only be created on columns of type Array(Float32) and Tuple(Float32). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38454) (comment: 02354_annoy_index.sql) (in query: CREATE TABLE tab(id Int32, vector Array(Float64), INDEX annoy_index vector TYPE annoy()) ENGINE = MergeTree ORDER BY id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [87]) @ 0x000000001398bffe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:361: DB::annoyIndexValidator(DB::IndexDescription const&, bool)::$_0::operator()() const @ 0x000000001e078275 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:372: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e078086 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008f0d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008ec5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001e008e85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001e008e30 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001e007e4e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001e002608 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001e001106 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de68eb0 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 18. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 31. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 2024.10.22 10:12:22.170396 [ 6967 ] {bcf9410d-ce60-4380-a0a4-9312af6efab0} TCPHandler: Code: 44. DB::Exception: Annoy indexes can only be created on columns of type Array(Float32) and Tuple(Float32). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [87]) @ 0x000000001398bffe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:361: DB::annoyIndexValidator(DB::IndexDescription const&, bool)::$_0::operator()() const @ 0x000000001e078275 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:372: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e078086 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008f0d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008ec5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001e008e85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001e008e30 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001e007e4e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001e002608 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001e001106 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de68eb0 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 18. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 31. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 2024.10.22 10:12:22.386229 [ 6967 ] {104cfb5d-acf5-42c5-a110-bd791c031286} executeQuery: Code: 44. DB::Exception: Annoy indexes can only be created on columns of type Array(Float32) and Tuple(Float32). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38454) (comment: 02354_annoy_index.sql) (in query: CREATE TABLE tab(id Int32, vector Tuple(Float64), INDEX annoy_index vector TYPE annoy()) ENGINE = MergeTree ORDER BY id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [87]) @ 0x000000001398bffe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:361: DB::annoyIndexValidator(DB::IndexDescription const&, bool)::$_0::operator()() const @ 0x000000001e078275 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:381: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e0781dd in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008f0d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008ec5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001e008e85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001e008e30 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001e007e4e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001e002608 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001e001106 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de68eb0 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 18. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 31. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 2024.10.22 10:12:22.387219 [ 6967 ] {104cfb5d-acf5-42c5-a110-bd791c031286} TCPHandler: Code: 44. DB::Exception: Annoy indexes can only be created on columns of type Array(Float32) and Tuple(Float32). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [87]) @ 0x000000001398bffe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:361: DB::annoyIndexValidator(DB::IndexDescription const&, bool)::$_0::operator()() const @ 0x000000001e078275 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:381: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e0781dd in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008f0d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008ec5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001e008e85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001e008e30 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001e007e4e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001e002608 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001e001106 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de68eb0 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 18. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 31. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 2024.10.22 10:12:22.410380 [ 6967 ] {c0014c73-ce98-4a7a-a5c8-3015cba618c3} executeQuery: Code: 44. DB::Exception: Annoy indexes can only be created on columns of type Array(Float32) and Tuple(Float32). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38454) (comment: 02354_annoy_index.sql) (in query: CREATE TABLE tab(id Int32, vector LowCardinality(Float32), INDEX annoy_index vector TYPE annoy()) ENGINE = MergeTree ORDER BY id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [87]) @ 0x000000001398bffe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:361: DB::annoyIndexValidator(DB::IndexDescription const&, bool)::$_0::operator()() const @ 0x000000001e078275 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:385: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e078213 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008f0d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008ec5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001e008e85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001e008e30 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001e007e4e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001e002608 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001e001106 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de68eb0 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 18. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 31. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 2024.10.22 10:12:22.411597 [ 6967 ] {c0014c73-ce98-4a7a-a5c8-3015cba618c3} TCPHandler: Code: 44. DB::Exception: Annoy indexes can only be created on columns of type Array(Float32) and Tuple(Float32). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [87]) @ 0x000000001398bffe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:361: DB::annoyIndexValidator(DB::IndexDescription const&, bool)::$_0::operator()() const @ 0x000000001e078275 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:385: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e078213 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008f0d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008ec5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001e008e85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001e008e30 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001e007e4e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001e002608 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001e001106 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de68eb0 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 18. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 31. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 2024.10.22 10:12:22.433475 [ 936 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:22.435497 [ 6967 ] {38c3d37b-4c21-4cc2-aa7e-1a8f4e0e9db0} executeQuery: Code: 44. DB::Exception: Annoy indexes can only be created on columns of type Array(Float32) and Tuple(Float32). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38454) (comment: 02354_annoy_index.sql) (in query: CREATE TABLE tab(id Int32, vector Nullable(Float32), INDEX annoy_index vector TYPE annoy()) ENGINE = MergeTree ORDER BY id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [87]) @ 0x000000001398bffe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:361: DB::annoyIndexValidator(DB::IndexDescription const&, bool)::$_0::operator()() const @ 0x000000001e078275 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:385: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e078213 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008f0d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008ec5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001e008e85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001e008e30 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001e007e4e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001e002608 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001e001106 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de68eb0 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 18. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 31. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 2024.10.22 10:12:22.436478 [ 6967 ] {38c3d37b-4c21-4cc2-aa7e-1a8f4e0e9db0} TCPHandler: Code: 44. DB::Exception: Annoy indexes can only be created on columns of type Array(Float32) and Tuple(Float32). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [87]) @ 0x000000001398bffe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:361: DB::annoyIndexValidator(DB::IndexDescription const&, bool)::$_0::operator()() const @ 0x000000001e078275 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:385: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e078213 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008f0d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008ec5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001e008e85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001e008e30 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001e007e4e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001e002608 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001e001106 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de68eb0 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 18. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 31. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 2024.10.22 10:12:22.772594 [ 939 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:23.088353 [ 6967 ] {361a547c-3623-4553-9ecc-f39ca0af1103} executeQuery: Code: 80. DB::Exception: The dimension of the space in the request (2) does not match the dimension in the index (3). (INCORRECT_QUERY) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38454) (comment: 02354_annoy_index.sql) (in query: SELECT * FROM tab ORDER BY L2Distance(vector, [0.0, 0.0]) LIMIT 3;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x00000000138614ac in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:256: std::vector> DB::MergeTreeIndexConditionAnnoy::getUsefulRangesImpl(std::shared_ptr) const @ 0x000000001e079224 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:229: DB::MergeTreeIndexConditionAnnoy::getUsefulRanges(std::shared_ptr) const @ 0x000000001e07766f in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1647: DB::MergeTreeDataSelectExecutor::filterMarksUsingIndex(std::shared_ptr, std::shared_ptr, std::shared_ptr, DB::MarkRanges const&, DB::Settings const&, DB::MergeTreeReaderSettings const&, DB::MarkCache*, DB::UncompressedCache*, Poco::Logger*) @ 0x000000001dfbb085 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:988: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool)::$_0::operator()(unsigned long) const @ 0x000000001dfb8286 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1040: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool) @ 0x000000001dfb6583 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1493: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea55a1 in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1373: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea2a33 in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001eea274d in /usr/bin/clickhouse 14. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1677: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001eea79ec in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1785: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8a5b in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 17. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:23.089435 [ 6967 ] {361a547c-3623-4553-9ecc-f39ca0af1103} TCPHandler: Code: 80. DB::Exception: The dimension of the space in the request (2) does not match the dimension in the index (3). (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x00000000138614ac in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:256: std::vector> DB::MergeTreeIndexConditionAnnoy::getUsefulRangesImpl(std::shared_ptr) const @ 0x000000001e079224 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:229: DB::MergeTreeIndexConditionAnnoy::getUsefulRanges(std::shared_ptr) const @ 0x000000001e07766f in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1647: DB::MergeTreeDataSelectExecutor::filterMarksUsingIndex(std::shared_ptr, std::shared_ptr, std::shared_ptr, DB::MarkRanges const&, DB::Settings const&, DB::MergeTreeReaderSettings const&, DB::MarkCache*, DB::UncompressedCache*, Poco::Logger*) @ 0x000000001dfbb085 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:988: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool)::$_0::operator()(unsigned long) const @ 0x000000001dfb8286 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1040: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool) @ 0x000000001dfb6583 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1493: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea55a1 in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1373: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea2a33 in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001eea274d in /usr/bin/clickhouse 14. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1677: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001eea79ec in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1785: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8a5b in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 17. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:23.339880 [ 6967 ] {ef5eeed6-3dbc-4493-80ce-028e40c8e27e} executeQuery: Code: 80. DB::Exception: Distance can't be negative. Got -1. (INCORRECT_QUERY) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38454) (comment: 02354_annoy_index.sql) (in query: SELECT * FROM tab WHERE L2Distance(vector, [0.0, 0.0, 10.0]) < -1.0 LIMIT 3;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, float&) @ 0x000000000b945313 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ApproximateNearestNeighborIndexesCommon.cpp:354: DB::ApproximateNearestNeighborCondition::matchRPNWhere(std::vector>&, DB::ApproximateNearestNeighborInformation&) @ 0x000000001e096390 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ApproximateNearestNeighborIndexesCommon.cpp:163: DB::ApproximateNearestNeighborCondition::checkQueryStructure(DB::SelectQueryInfo const&) @ 0x000000001e09518f in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ApproximateNearestNeighborIndexesCommon.cpp:58: DB::ApproximateNearestNeighborCondition::ApproximateNearestNeighborCondition(DB::SelectQueryInfo const&, std::shared_ptr) @ 0x000000001e094b5c in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:211: DB::MergeTreeIndexConditionAnnoy::MergeTreeIndexConditionAnnoy(DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr) @ 0x000000001e0773a2 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::MergeTreeIndexConditionAnnoy* std::construct_at[abi:v15000]&, DB::MergeTreeIndexConditionAnnoy*>(DB::MergeTreeIndexConditionAnnoy*, DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&) @ 0x000000001e093e66 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, void, void>(std::allocator&, DB::MergeTreeIndexConditionAnnoy*, DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&) @ 0x000000001e093bf9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&>(std::allocator, DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&) @ 0x000000001e0938df in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&, void>(std::allocator const&, DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&) @ 0x000000001e093732 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, void>(DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&) @ 0x000000001e07a35e in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:312: DB::MergeTreeIndexAnnoy::createIndexCondition(DB::SelectQueryInfo const&, std::shared_ptr) const @ 0x000000001e0779f1 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1335: DB::buildIndexes(std::optional&, std::shared_ptr, DB::MergeTreeData const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&) @ 0x000000001eea4160 in /usr/bin/clickhouse 17. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1348: DB::ReadFromMergeTree::applyFilters() @ 0x000000001eea2d5d in /usr/bin/clickhouse 18. /build/src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:205: DB::QueryPlanOptimizations::optimizeTreeThirdPass(DB::QueryPlan&, DB::QueryPlan::Node&, std::list>&) @ 0x000000001ef2e768 in /usr/bin/clickhouse 19. /build/src/Processors/QueryPlan/QueryPlan.cpp:484: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001ee7c631 in /usr/bin/clickhouse 20. /build/src/Processors/QueryPlan/QueryPlan.cpp:169: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c137 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:12:23.341012 [ 6967 ] {ef5eeed6-3dbc-4493-80ce-028e40c8e27e} TCPHandler: Code: 80. DB::Exception: Distance can't be negative. Got -1. (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, float&) @ 0x000000000b945313 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ApproximateNearestNeighborIndexesCommon.cpp:354: DB::ApproximateNearestNeighborCondition::matchRPNWhere(std::vector>&, DB::ApproximateNearestNeighborInformation&) @ 0x000000001e096390 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ApproximateNearestNeighborIndexesCommon.cpp:163: DB::ApproximateNearestNeighborCondition::checkQueryStructure(DB::SelectQueryInfo const&) @ 0x000000001e09518f in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ApproximateNearestNeighborIndexesCommon.cpp:58: DB::ApproximateNearestNeighborCondition::ApproximateNearestNeighborCondition(DB::SelectQueryInfo const&, std::shared_ptr) @ 0x000000001e094b5c in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:211: DB::MergeTreeIndexConditionAnnoy::MergeTreeIndexConditionAnnoy(DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr) @ 0x000000001e0773a2 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::MergeTreeIndexConditionAnnoy* std::construct_at[abi:v15000]&, DB::MergeTreeIndexConditionAnnoy*>(DB::MergeTreeIndexConditionAnnoy*, DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&) @ 0x000000001e093e66 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, void, void>(std::allocator&, DB::MergeTreeIndexConditionAnnoy*, DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&) @ 0x000000001e093bf9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&>(std::allocator, DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&) @ 0x000000001e0938df in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&, void>(std::allocator const&, DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&) @ 0x000000001e093732 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, void>(DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&) @ 0x000000001e07a35e in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:312: DB::MergeTreeIndexAnnoy::createIndexCondition(DB::SelectQueryInfo const&, std::shared_ptr) const @ 0x000000001e0779f1 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1335: DB::buildIndexes(std::optional&, std::shared_ptr, DB::MergeTreeData const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&) @ 0x000000001eea4160 in /usr/bin/clickhouse 17. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1348: DB::ReadFromMergeTree::applyFilters() @ 0x000000001eea2d5d in /usr/bin/clickhouse 18. /build/src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:205: DB::QueryPlanOptimizations::optimizeTreeThirdPass(DB::QueryPlan&, DB::QueryPlan::Node&, std::list>&) @ 0x000000001ef2e768 in /usr/bin/clickhouse 19. /build/src/Processors/QueryPlan/QueryPlan.cpp:484: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001ee7c631 in /usr/bin/clickhouse 20. /build/src/Processors/QueryPlan/QueryPlan.cpp:169: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c137 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:12:23.743866 [ 944 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:24.733746 [ 935 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:24.898439 [ 936 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:25.293826 [ 939 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:25.577107 [ 12918 ] {9129c139-d935-4da7-a2e7-d292d23e0fa8} executeQuery: Code: 36. DB::Exception: Second and third arguments must be the same length: While processing translate('abc', 'Ãáéíóúôè', 'aaeiouoe'). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38538) (comment: 02353_translate.sql) (in query: SELECT translate('abc', 'Ãáéíóúôè', 'aaeiouoe');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [51]) @ 0x000000000b19a8de in /usr/bin/clickhouse 6. /build/src/Functions/translate.cpp:35: DB::TranslateImpl::fillMapWithValues(std::array&, String const&, String const&) @ 0x0000000012798323 in /usr/bin/clickhouse 7. /build/src/Functions/translate.cpp:59: DB::TranslateImpl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, String const&, String const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x0000000012797fb7 in /usr/bin/clickhouse 8. /build/src/Functions/translate.cpp:332: DB::FunctionTranslate::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127957d6 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 2024.10.22 10:12:25.578076 [ 12918 ] {9129c139-d935-4da7-a2e7-d292d23e0fa8} TCPHandler: Code: 36. DB::Exception: Second and third arguments must be the same length: While processing translate('abc', 'Ãáéíóúôè', 'aaeiouoe'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [51]) @ 0x000000000b19a8de in /usr/bin/clickhouse 6. /build/src/Functions/translate.cpp:35: DB::TranslateImpl::fillMapWithValues(std::array&, String const&, String const&) @ 0x0000000012798323 in /usr/bin/clickhouse 7. /build/src/Functions/translate.cpp:59: DB::TranslateImpl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, String const&, String const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x0000000012797fb7 in /usr/bin/clickhouse 8. /build/src/Functions/translate.cpp:332: DB::FunctionTranslate::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127957d6 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 2024.10.22 10:12:25.701567 [ 12918 ] {72284f2a-a44b-4ec8-aa2e-8713659cc848} executeQuery: Code: 36. DB::Exception: Second and third arguments must be the same length: While processing translateUTF8('abc', 'efg', ''). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38538) (comment: 02353_translate.sql) (in query: SELECT translateUTF8('abc', 'efg', '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [51]) @ 0x000000000b19a8de in /usr/bin/clickhouse 6. /build/src/Functions/translate.cpp:133: DB::TranslateUTF8Impl::fillMapWithValues(std::array&, HashMapTable, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>&, String const&, String const&) @ 0x0000000012799239 in /usr/bin/clickhouse 7. /build/src/Functions/translate.cpp:181: DB::TranslateUTF8Impl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, String const&, String const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x0000000012798699 in /usr/bin/clickhouse 8. /build/src/Functions/translate.cpp:332: DB::FunctionTranslate::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127972c4 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 2024.10.22 10:12:25.702607 [ 12918 ] {72284f2a-a44b-4ec8-aa2e-8713659cc848} TCPHandler: Code: 36. DB::Exception: Second and third arguments must be the same length: While processing translateUTF8('abc', 'efg', ''). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [51]) @ 0x000000000b19a8de in /usr/bin/clickhouse 6. /build/src/Functions/translate.cpp:133: DB::TranslateUTF8Impl::fillMapWithValues(std::array&, HashMapTable, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>&, String const&, String const&) @ 0x0000000012799239 in /usr/bin/clickhouse 7. /build/src/Functions/translate.cpp:181: DB::TranslateUTF8Impl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, String const&, String const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x0000000012798699 in /usr/bin/clickhouse 8. /build/src/Functions/translate.cpp:332: DB::FunctionTranslate::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127972c4 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 2024.10.22 10:12:25.902218 [ 944 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:26.511614 [ 935 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:26.789134 [ 936 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:27.081062 [ 939 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:27.598937 [ 944 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:28.483593 [ 935 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:29.284360 [ 936 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:30.012741 [ 939 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_uv2jusda%2Ftest_uv2jusda%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:34.511698 [ 12933 ] {02421_truncate_isolation_no_merges_test_9xduel5u_tx41_11173} executeQuery: Code: 650. DB::Exception: Serialization error: Transaction (35, 43, 41c214b2-a693-4efe-9c0c-e01fb092c06d) tried to remove data part all_2_2_0 from test_9xduel5u.tt (026ac9a3-1993-4c1f-9c9a-70b85f9c96ff), but it's locked by another transaction (TID: (35, 44, 41c214b2-a693-4efe-9c0c-e01fb092c06d), TIDH: 14312559990331047418) which is currently removing this part. (SERIALIZATION_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:59908) (in query: truncate table tt), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, DB::TransactionID const&, String&, String&&, DB::TransactionID&&, unsigned long&) @ 0x000000001cf9a2ba in /usr/bin/clickhouse 6. /build/src/Interpreters/TransactionVersionMetadata.cpp:62: DB::VersionMetadata::lockRemovalTID(DB::TransactionID const&, DB::TransactionInfoContext const&) @ 0x000000001cf96cef in /usr/bin/clickhouse 7. /build/src/Interpreters/MergeTreeTransaction.cpp:149: DB::MergeTreeTransaction::removeOldPart(std::shared_ptr const&, std::shared_ptr const&, DB::TransactionInfoContext const&) @ 0x000000001cc5ab6f in /usr/bin/clickhouse 8. /build/src/Interpreters/MergeTreeTransaction.cpp:93: DB::MergeTreeTransaction::removeOldPart(std::shared_ptr const&, std::shared_ptr const&, DB::MergeTreeTransaction*) @ 0x000000001cc5a9e7 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:3962: DB::MergeTreeData::removePartsFromWorkingSet(DB::MergeTreeTransaction*, std::vector, std::allocator>> const&, bool, DB::DataPartsLock&) @ 0x000000001de9f893 in /usr/bin/clickhouse 10. /build/src/Storages/StorageMergeTree.cpp:1748: DB::StorageMergeTree::truncate(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, DB::TableExclusiveLockHolder&) @ 0x000000001e378a93 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:221: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8baa44 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 16. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 17. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 18. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 24. ? @ 0x00007f1a0debbac3 in ? 25. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:34.513252 [ 12933 ] {02421_truncate_isolation_no_merges_test_9xduel5u_tx41_11173} DynamicQueryHandler: Code: 650. DB::Exception: Serialization error: Transaction (35, 43, 41c214b2-a693-4efe-9c0c-e01fb092c06d) tried to remove data part all_2_2_0 from test_9xduel5u.tt (026ac9a3-1993-4c1f-9c9a-70b85f9c96ff), but it's locked by another transaction (TID: (35, 44, 41c214b2-a693-4efe-9c0c-e01fb092c06d), TIDH: 14312559990331047418) which is currently removing this part. (SERIALIZATION_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, DB::TransactionID const&, String&, String&&, DB::TransactionID&&, unsigned long&) @ 0x000000001cf9a2ba in /usr/bin/clickhouse 6. /build/src/Interpreters/TransactionVersionMetadata.cpp:62: DB::VersionMetadata::lockRemovalTID(DB::TransactionID const&, DB::TransactionInfoContext const&) @ 0x000000001cf96cef in /usr/bin/clickhouse 7. /build/src/Interpreters/MergeTreeTransaction.cpp:149: DB::MergeTreeTransaction::removeOldPart(std::shared_ptr const&, std::shared_ptr const&, DB::TransactionInfoContext const&) @ 0x000000001cc5ab6f in /usr/bin/clickhouse 8. /build/src/Interpreters/MergeTreeTransaction.cpp:93: DB::MergeTreeTransaction::removeOldPart(std::shared_ptr const&, std::shared_ptr const&, DB::MergeTreeTransaction*) @ 0x000000001cc5a9e7 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:3962: DB::MergeTreeData::removePartsFromWorkingSet(DB::MergeTreeTransaction*, std::vector, std::allocator>> const&, bool, DB::DataPartsLock&) @ 0x000000001de9f893 in /usr/bin/clickhouse 10. /build/src/Storages/StorageMergeTree.cpp:1748: DB::StorageMergeTree::truncate(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, DB::TableExclusiveLockHolder&) @ 0x000000001e378a93 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:221: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8baa44 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 16. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 17. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 18. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 24. ? @ 0x00007f1a0debbac3 in ? 25. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:34.644671 [ 12933 ] {02421_truncate_isolation_no_merges_test_9xduel5u_tx41_8779} executeQuery: Code: 649. DB::Exception: Transaction is not in RUNNING state. (INVALID_TRANSACTION) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:59910) (in query: commit), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [36]) @ 0x000000000ceb289e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:56: DB::InterpreterTransactionControlQuery::executeCommit(std::shared_ptr) @ 0x000000001cbfbff5 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:29: DB::InterpreterTransactionControlQuery::execute() @ 0x000000001cbfbb6d in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:34.645895 [ 12933 ] {02421_truncate_isolation_no_merges_test_9xduel5u_tx41_8779} DynamicQueryHandler: Code: 649. DB::Exception: Transaction is not in RUNNING state. (INVALID_TRANSACTION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [36]) @ 0x000000000ceb289e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:56: DB::InterpreterTransactionControlQuery::executeCommit(std::shared_ptr) @ 0x000000001cbfbff5 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:29: DB::InterpreterTransactionControlQuery::execute() @ 0x000000001cbfbb6d in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:39.452180 [ 12929 ] {04a94c31-5e3c-4f8b-ba53-b3600a10bb5f} executeQuery: Code: 107. DB::ErrnoException: Cannot open file /var/lib/clickhouse/store/47e/47e479b5-800d-465a-8fb0-f900dbc30654/all_1_2_1/n.bin, errno: 2, strerror: No such file or directory: (while reading column n): (while reading from part /var/lib/clickhouse/store/47e/47e479b5-800d-465a-8fb0-f900dbc30654/all_1_2_1/ in table test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654) located on disk default of type local, from mark 0 with max_rows_to_read = 2): While executing MergeTreeThread. (FILE_DOESNT_EXIST) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33146) (comment: 02370_lost_part_intersecting_merges.sh) (in query: select * from rmt1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b2043aa in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:169: DB::ErrnoException::ErrnoException(String const&, int, int, std::optional const&) @ 0x00000000138e6cb0 in /usr/bin/clickhouse 6. /build/src/Common/Exception.cpp:224: DB::throwFromErrnoWithPath(String const&, String const&, int, int) @ 0x00000000138e245b in /usr/bin/clickhouse 7. /build/src/IO/OpenedFile.cpp:33: DB::OpenedFile::open() const @ 0x000000001ac2dcae in /usr/bin/clickhouse 8. /build/src/IO/OpenedFile.cpp:41: DB::OpenedFile::getFD() const @ 0x000000001ac2dd18 in /usr/bin/clickhouse 9. /build/src/IO/AsynchronousReadBufferFromFile.h:73: DB::AsynchronousReadBufferFromFileWithDescriptorsCache::AsynchronousReadBufferFromFileWithDescriptorsCache(DB::IAsynchronousReader&, Priority, String const&, unsigned long, int, char*, unsigned long, std::optional, std::shared_ptr) @ 0x000000001ac255e0 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr const&>(DB::IAsynchronousReader&, Priority const&, String const&, unsigned long&, int&, char*&, unsigned long&, std::optional&, std::shared_ptr const&) @ 0x000000001ac205d8 in /usr/bin/clickhouse 11. /build/src/Disks/IO/createReadBufferFromFileBase.cpp:138: DB::createReadBufferFromFileBase(String const&, DB::ReadSettings const&, std::optional, std::optional, int, char*, unsigned long)::$_1::operator()(unsigned long, unsigned long, int) const @ 0x000000001ac1fa54 in /usr/bin/clickhouse 12. /build/src/Disks/IO/createReadBufferFromFileBase.cpp:216: DB::createReadBufferFromFileBase(String const&, DB::ReadSettings const&, std::optional, std::optional, int, char*, unsigned long) @ 0x000000001ac1f5bc in /usr/bin/clickhouse 13. /build/src/Disks/DiskLocal.cpp:335: DB::DiskLocal::readFile(String const&, DB::ReadSettings const&, std::optional, std::optional) const @ 0x000000001bb7f547 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/DataPartStorageOnDiskFull.cpp:122: DB::DataPartStorageOnDiskFull::readFile(String const&, DB::ReadSettings const&, std::optional, std::optional) const @ 0x000000001dd435d7 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderStream.cpp:100: DB::MergeTreeReaderStream::init()::$_0::operator()() const @ 0x000000001e1171ed in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::MergeTreeReaderStream::init()::$_0&) @ 0x000000001e117115 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::unique_ptr> std::__invoke_void_return_wrapper>, false>::__call(DB::MergeTreeReaderStream::init()::$_0&) @ 0x000000001e1170d5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func> ()>::operator()[abi:v15000]() @ 0x000000001e117095 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::unique_ptr> std::__function::__policy_invoker> ()>::__call_impl> ()>>(std::__function::__policy_storage const*) @ 0x000000001e117060 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func> ()>::operator()[abi:v15000]() const @ 0x000000001ae5c096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function> ()>::operator()() const @ 0x000000001ae59395 in /usr/bin/clickhouse 22. /build/src/Compression/CachedCompressedReadBuffer.cpp:22: DB::CachedCompressedReadBuffer::initInput() @ 0x000000001e10c638 in /usr/bin/clickhouse 23. /build/src/Compression/CachedCompressedReadBuffer.h:64: DB::CachedCompressedReadBuffer::setReadUntilPosition(unsigned long) @ 0x000000001e10f3bd in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeReaderStream.cpp:293: DB::MergeTreeReaderStream::adjustRightMark(unsigned long) @ 0x000000001e116128 in /usr/bin/clickhouse 25. /build/src/Storages/MergeTree/MergeTreeReaderWide.cpp:276: DB::getStream(bool, DB::ISerialization::SubstreamPath const&, std::map>, std::less, std::allocator>>>>&, DB::NameAndTypePair const&, unsigned long, bool, unsigned long, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>&) @ 0x000000001e11a2d4 in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/MergeTreeReaderWide.cpp:322: DB::MergeTreeReaderWide::prefetchForColumn(Priority, DB::NameAndTypePair const&, std::shared_ptr const&, unsigned long, bool, unsigned long, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>&)::$_0::operator()(DB::ISerialization::SubstreamPath const&) const @ 0x000000001e11a915 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, unsigned long, bool, unsigned long, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>&)::$_0&>()(std::declval())) std::__invoke[abi:v15000] const&, unsigned long, bool, unsigned long, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>&)::$_0&, DB::ISerialization::SubstreamPath const&>(DB::MergeTreeReaderWide::prefetchForColumn(Priority, DB::NameAndTypePair const&, std::shared_ptr const&, unsigned long, bool, unsigned long, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>&)::$_0&, DB::ISerialization::SubstreamPath const&) @ 0x000000001e11a83d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call const&, unsigned long, bool, unsigned long, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>&)::$_0&, DB::ISerialization::SubstreamPath const&>(DB::MergeTreeReaderWide::prefetchForColumn(Priority, DB::NameAndTypePair const&, std::shared_ptr const&, unsigned long, bool, unsigned long, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>&)::$_0&, DB::ISerialization::SubstreamPath const&) @ 0x000000001e11a7fd in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, unsigned long, bool, unsigned long, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>&)::$_0, void (DB::ISerialization::SubstreamPath const&)>::operator()[abi:v15000](DB::ISerialization::SubstreamPath const&) @ 0x000000001e11a7bd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl const&, unsigned long, bool, unsigned long, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>&)::$_0, void (DB::ISerialization::SubstreamPath const&)>>(std::__function::__policy_storage const*, DB::ISerialization::SubstreamPath const&) @ 0x000000001e11a788 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::ISerialization::SubstreamPath const&) const @ 0x000000001ba26ede in /usr/bin/clickhouse 2024.10.22 10:12:39.603567 [ 12929 ] {04a94c31-5e3c-4f8b-ba53-b3600a10bb5f} TCPHandler: Code: 107. DB::ErrnoException: Cannot open file /var/lib/clickhouse/store/47e/47e479b5-800d-465a-8fb0-f900dbc30654/all_1_2_1/n.bin, errno: 2, strerror: No such file or directory: (while reading column n): (while reading from part /var/lib/clickhouse/store/47e/47e479b5-800d-465a-8fb0-f900dbc30654/all_1_2_1/ in table test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654) located on disk default of type local, from mark 0 with max_rows_to_read = 2): While executing MergeTreeThread. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b2043aa in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:169: DB::ErrnoException::ErrnoException(String const&, int, int, std::optional const&) @ 0x00000000138e6cb0 in /usr/bin/clickhouse 6. /build/src/Common/Exception.cpp:224: DB::throwFromErrnoWithPath(String const&, String const&, int, int) @ 0x00000000138e245b in /usr/bin/clickhouse 7. /build/src/IO/OpenedFile.cpp:33: DB::OpenedFile::open() const @ 0x000000001ac2dcae in /usr/bin/clickhouse 8. /build/src/IO/OpenedFile.cpp:41: DB::OpenedFile::getFD() const @ 0x000000001ac2dd18 in /usr/bin/clickhouse 9. /build/src/IO/AsynchronousReadBufferFromFile.h:73: DB::AsynchronousReadBufferFromFileWithDescriptorsCache::AsynchronousReadBufferFromFileWithDescriptorsCache(DB::IAsynchronousReader&, Priority, String const&, unsigned long, int, char*, unsigned long, std::optional, std::shared_ptr) @ 0x000000001ac255e0 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr const&>(DB::IAsynchronousReader&, Priority const&, String const&, unsigned long&, int&, char*&, unsigned long&, std::optional&, std::shared_ptr const&) @ 0x000000001ac205d8 in /usr/bin/clickhouse 11. /build/src/Disks/IO/createReadBufferFromFileBase.cpp:138: DB::createReadBufferFromFileBase(String const&, DB::ReadSettings const&, std::optional, std::optional, int, char*, unsigned long)::$_1::operator()(unsigned long, unsigned long, int) const @ 0x000000001ac1fa54 in /usr/bin/clickhouse 12. /build/src/Disks/IO/createReadBufferFromFileBase.cpp:216: DB::createReadBufferFromFileBase(String const&, DB::ReadSettings const&, std::optional, std::optional, int, char*, unsigned long) @ 0x000000001ac1f5bc in /usr/bin/clickhouse 13. /build/src/Disks/DiskLocal.cpp:335: DB::DiskLocal::readFile(String const&, DB::ReadSettings const&, std::optional, std::optional) const @ 0x000000001bb7f547 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/DataPartStorageOnDiskFull.cpp:122: DB::DataPartStorageOnDiskFull::readFile(String const&, DB::ReadSettings const&, std::optional, std::optional) const @ 0x000000001dd435d7 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderStream.cpp:100: DB::MergeTreeReaderStream::init()::$_0::operator()() const @ 0x000000001e1171ed in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::MergeTreeReaderStream::init()::$_0&) @ 0x000000001e117115 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::unique_ptr> std::__invoke_void_return_wrapper>, false>::__call(DB::MergeTreeReaderStream::init()::$_0&) @ 0x000000001e1170d5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func> ()>::operator()[abi:v15000]() @ 0x000000001e117095 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::unique_ptr> std::__function::__policy_invoker> ()>::__call_impl> ()>>(std::__function::__policy_storage const*) @ 0x000000001e117060 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func> ()>::operator()[abi:v15000]() const @ 0x000000001ae5c096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function> ()>::operator()() const @ 0x000000001ae59395 in /usr/bin/clickhouse 22. /build/src/Compression/CachedCompressedReadBuffer.cpp:22: DB::CachedCompressedReadBuffer::initInput() @ 0x000000001e10c638 in /usr/bin/clickhouse 23. /build/src/Compression/CachedCompressedReadBuffer.h:64: DB::CachedCompressedReadBuffer::setReadUntilPosition(unsigned long) @ 0x000000001e10f3bd in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeReaderStream.cpp:293: DB::MergeTreeReaderStream::adjustRightMark(unsigned long) @ 0x000000001e116128 in /usr/bin/clickhouse 25. /build/src/Storages/MergeTree/MergeTreeReaderWide.cpp:276: DB::getStream(bool, DB::ISerialization::SubstreamPath const&, std::map>, std::less, std::allocator>>>>&, DB::NameAndTypePair const&, unsigned long, bool, unsigned long, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>&) @ 0x000000001e11a2d4 in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/MergeTreeReaderWide.cpp:322: DB::MergeTreeReaderWide::prefetchForColumn(Priority, DB::NameAndTypePair const&, std::shared_ptr const&, unsigned long, bool, unsigned long, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>&)::$_0::operator()(DB::ISerialization::SubstreamPath const&) const @ 0x000000001e11a915 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, unsigned long, bool, unsigned long, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>&)::$_0&>()(std::declval())) std::__invoke[abi:v15000] const&, unsigned long, bool, unsigned long, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>&)::$_0&, DB::ISerialization::SubstreamPath const&>(DB::MergeTreeReaderWide::prefetchForColumn(Priority, DB::NameAndTypePair const&, std::shared_ptr const&, unsigned long, bool, unsigned long, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>&)::$_0&, DB::ISerialization::SubstreamPath const&) @ 0x000000001e11a83d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call const&, unsigned long, bool, unsigned long, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>&)::$_0&, DB::ISerialization::SubstreamPath const&>(DB::MergeTreeReaderWide::prefetchForColumn(Priority, DB::NameAndTypePair const&, std::shared_ptr const&, unsigned long, bool, unsigned long, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>&)::$_0&, DB::ISerialization::SubstreamPath const&) @ 0x000000001e11a7fd in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, unsigned long, bool, unsigned long, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>&)::$_0, void (DB::ISerialization::SubstreamPath const&)>::operator()[abi:v15000](DB::ISerialization::SubstreamPath const&) @ 0x000000001e11a7bd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl const&, unsigned long, bool, unsigned long, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>&)::$_0, void (DB::ISerialization::SubstreamPath const&)>>(std::__function::__policy_storage const*, DB::ISerialization::SubstreamPath const&) @ 0x000000001e11a788 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::ISerialization::SubstreamPath const&) const @ 0x000000001ba26ede in /usr/bin/clickhouse 2024.10.22 10:12:39.603634 [ 735 ] {} test_uv2jusda.rmt1 (ReplicatedMergeTreePartCheckThread): ReplicatedCheckResult DB::ReplicatedMergeTreePartCheckThread::checkPartImpl(const String &): Code: 107. DB::ErrnoException: Cannot open file /var/lib/clickhouse/store/47e/47e479b5-800d-465a-8fb0-f900dbc30654/all_1_2_1/columns.txt, errno: 2, strerror: No such file or directory. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b2043aa in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:169: DB::ErrnoException::ErrnoException(String const&, int, int, std::optional const&) @ 0x00000000138e6cb0 in /usr/bin/clickhouse 6. /build/src/Common/Exception.cpp:224: DB::throwFromErrnoWithPath(String const&, String const&, int, int) @ 0x00000000138e245b in /usr/bin/clickhouse 7. /build/src/IO/OpenedFile.cpp:33: DB::OpenedFile::open() const @ 0x000000001ac2dcae in /usr/bin/clickhouse 8. /build/src/IO/OpenedFile.cpp:41: DB::OpenedFile::getFD() const @ 0x000000001ac2dd18 in /usr/bin/clickhouse 9. /build/src/IO/ReadBufferFromFile.h:99: DB::ReadBufferFromFilePReadWithDescriptorsCache::ReadBufferFromFilePReadWithDescriptorsCache(String const&, unsigned long, int, char*, unsigned long, std::optional, std::shared_ptr) @ 0x000000001ac207c8 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr const&>(String const&, unsigned long&, int&, char*&, unsigned long&, std::optional&, std::shared_ptr const&) @ 0x000000001ac2016c in /usr/bin/clickhouse 11. /build/src/Disks/IO/createReadBufferFromFileBase.cpp:91: DB::createReadBufferFromFileBase(String const&, DB::ReadSettings const&, std::optional, std::optional, int, char*, unsigned long)::$_1::operator()(unsigned long, unsigned long, int) const @ 0x000000001ac1f727 in /usr/bin/clickhouse 12. /build/src/Disks/IO/createReadBufferFromFileBase.cpp:216: DB::createReadBufferFromFileBase(String const&, DB::ReadSettings const&, std::optional, std::optional, int, char*, unsigned long) @ 0x000000001ac1f5bc in /usr/bin/clickhouse 13. /build/src/Disks/DiskLocal.cpp:335: DB::DiskLocal::readFile(String const&, DB::ReadSettings const&, std::optional, std::optional) const @ 0x000000001bb7f547 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/DataPartStorageOnDiskFull.cpp:122: DB::DataPartStorageOnDiskFull::readFile(String const&, DB::ReadSettings const&, std::optional, std::optional) const @ 0x000000001dd435d7 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/checkDataPart.cpp:93: DB::checkDataPart(std::shared_ptr, DB::IDataPartStorage const&, DB::NamesAndTypesList const&, DB::MergeTreeDataPartType const&, std::unordered_set, std::equal_to, std::allocator> const&, DB::ReadSettings const&, bool, std::function) @ 0x000000001e352b44 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/checkDataPart.cpp:314: DB::checkDataPart(std::shared_ptr, bool, std::function) @ 0x000000001e352868 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.cpp:363: DB::ReplicatedMergeTreePartCheckThread::checkPartImpl(String const&) @ 0x000000001e2abdc8 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.cpp:433: DB::ReplicatedMergeTreePartCheckThread::checkPartAndFix(String const&, std::optional*) @ 0x000000001e2ae0ab in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.cpp:573: DB::ReplicatedMergeTreePartCheckThread::run() @ 0x000000001e2b0c80 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.cpp:33: DB::ReplicatedMergeTreePartCheckThread::ReplicatedMergeTreePartCheckThread(DB::StorageReplicatedMergeTree&)::$_0::operator()() const @ 0x000000001e2b1ad8 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ReplicatedMergeTreePartCheckThread::ReplicatedMergeTreePartCheckThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e2b1ab5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ReplicatedMergeTreePartCheckThread::ReplicatedMergeTreePartCheckThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e2b1a95 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e2b1a75 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e2b1a3d in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 27. /build/src/Core/BackgroundSchedulePool.cpp:104: DB::BackgroundSchedulePoolTaskInfo::execute() @ 0x000000001b3d7afd in /usr/bin/clickhouse 28. /build/src/Core/BackgroundSchedulePool.cpp:302: DB::BackgroundSchedulePool::threadFunction() @ 0x000000001b3da8e6 in /usr/bin/clickhouse 29. /build/src/Core/BackgroundSchedulePool.cpp:168: DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0::operator()() const @ 0x000000001b3db7d8 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0&>()()) std::__invoke[abi:v15000], StrongTypedef, char const*)::$_0&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&) @ 0x000000001b3db7b5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001b3db799 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:12:39.604139 [ 735 ] {} test_uv2jusda.rmt1 (ReplicatedMergeTreePartCheckThread): Part all_1_2_1 looks broken. Removing it and will try to fetch. 2024.10.22 10:12:39.604291 [ 735 ] {} test_uv2jusda.rmt1 (ReplicatedMergeTreePartCheckThread): Part all_1_2_1 exists in ZooKeeper and the local part was broken. Detaching it, removing from ZooKeeper and queueing a fetch. 2024.10.22 10:12:39.604894 [ 735 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): Detached 1 parts covered by broken part all_1_2_1: all_1_2_1 2024.10.22 10:12:39.616445 [ 822 ] {} test_uv2jusda.rmt1 (47e479b5-800d-465a-8fb0-f900dbc30654): Directory /var/lib/clickhouse/store/47e/47e479b5-800d-465a-8fb0-f900dbc30654/all_1_2_1 (part to remove) doesn't exist or one of nested files has gone. Most likely this is due to manual removing. This should be discouraged. Ignoring. 2024.10.22 10:12:52.235466 [ 12923 ] {94aca476-4551-4218-bb42-5c43661a0352} executeQuery: Code: 42. DB::Exception: Number of arguments for function dictGet doesn't match: passed 4 should be 3: While processing dictGet('test_dictionary', 'value', 0, 'DefaultValue'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54786) (comment: 02319_dict_get_check_arguments_size.sql) (in query: SELECT dictGet('test_dictionary', 'value', 0, 'DefaultValue');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, unsigned long&) @ 0x000000000bc60488 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsExternalDictionaries.h:506: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc5dd54 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:12:52.236694 [ 12923 ] {94aca476-4551-4218-bb42-5c43661a0352} TCPHandler: Code: 42. DB::Exception: Number of arguments for function dictGet doesn't match: passed 4 should be 3: While processing dictGet('test_dictionary', 'value', 0, 'DefaultValue'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, unsigned long&) @ 0x000000000bc60488 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsExternalDictionaries.h:506: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc5dd54 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:12:52.403322 [ 12923 ] {c608e799-3b6f-44bc-941b-855ed9ee3aaa} executeQuery: Code: 42. DB::Exception: Number of arguments for function dictGetOrDefault doesn't match: passed 5 should be 4: While processing dictGetOrDefault('test_dictionary', 'value', 1, 'DefaultValue', 1). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54786) (comment: 02319_dict_get_check_arguments_size.sql) (in query: SELECT dictGetOrDefault('test_dictionary', 'value', 1, 'DefaultValue', 1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, unsigned long&) @ 0x000000000bc60488 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsExternalDictionaries.h:506: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc69062 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:12:52.404449 [ 12923 ] {c608e799-3b6f-44bc-941b-855ed9ee3aaa} TCPHandler: Code: 42. DB::Exception: Number of arguments for function dictGetOrDefault doesn't match: passed 5 should be 4: While processing dictGetOrDefault('test_dictionary', 'value', 1, 'DefaultValue', 1). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, unsigned long&) @ 0x000000000bc60488 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsExternalDictionaries.h:506: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc69062 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:12:52.529781 [ 12923 ] {922a4f18-4fcb-41e0-9491-cb9d15bcaa92} executeQuery: Code: 42. DB::Exception: Number of arguments for function dictGet doesn't match: passed 5 should be 4: While processing dictGet('range_hashed_dictionary', 'value', 4, toUInt64(6), 'DefaultValue'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54786) (comment: 02319_dict_get_check_arguments_size.sql) (in query: SELECT dictGet('range_hashed_dictionary', 'value', 4, toUInt64(6), 'DefaultValue');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, unsigned long&) @ 0x000000000bc60488 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsExternalDictionaries.h:506: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc5dd54 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:12:52.530641 [ 12923 ] {922a4f18-4fcb-41e0-9491-cb9d15bcaa92} TCPHandler: Code: 42. DB::Exception: Number of arguments for function dictGet doesn't match: passed 5 should be 4: While processing dictGet('range_hashed_dictionary', 'value', 4, toUInt64(6), 'DefaultValue'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, unsigned long&) @ 0x000000000bc60488 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsExternalDictionaries.h:506: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc5dd54 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:12:52.554807 [ 12923 ] {baaccc7e-cd78-402f-86ee-b6b06bbd92cd} executeQuery: Code: 42. DB::Exception: Number of arguments for function dictGetOrDefault doesn't match: passed 6 should be 5: While processing dictGetOrDefault('range_hashed_dictionary', 'value', 1, toUInt64(6), 'DefaultValue', 1). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54786) (comment: 02319_dict_get_check_arguments_size.sql) (in query: SELECT dictGetOrDefault('range_hashed_dictionary', 'value', 1, toUInt64(6), 'DefaultValue', 1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, unsigned long&) @ 0x000000000bc60488 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsExternalDictionaries.h:506: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc69062 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:12:52.555710 [ 12923 ] {baaccc7e-cd78-402f-86ee-b6b06bbd92cd} TCPHandler: Code: 42. DB::Exception: Number of arguments for function dictGetOrDefault doesn't match: passed 6 should be 5: While processing dictGetOrDefault('range_hashed_dictionary', 'value', 1, toUInt64(6), 'DefaultValue', 1). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, unsigned long&) @ 0x000000000bc60488 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsExternalDictionaries.h:506: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc69062 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:12:53.009487 [ 12917 ] {25eb1051-1ea8-4576-b156-cb2dd56874be} executeQuery: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54810) (comment: 02317_functions_with_nothing.sql) (in query: SELECT JSONExtractKeysAndValuesRaw(arrayJoin([]));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bfad483 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab09bf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:53.010397 [ 12917 ] {25eb1051-1ea8-4576-b156-cb2dd56874be} TCPHandler: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bfad483 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab09bf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:53.019387 [ 12917 ] {948c748c-4227-471a-950f-e559390ddd88} executeQuery: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54810) (comment: 02317_functions_with_nothing.sql) (in query: SELECT JSONHas(arrayJoin([]));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bfad483 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab09bf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:53.020103 [ 12917 ] {948c748c-4227-471a-950f-e559390ddd88} TCPHandler: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bfad483 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab09bf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:53.027849 [ 12917 ] {ffd12bd2-ab27-440f-9200-94ecf233376a} executeQuery: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54810) (comment: 02317_functions_with_nothing.sql) (in query: SELECT isValidJSON(arrayJoin([]));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bfad483 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab09bf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:53.028485 [ 12917 ] {ffd12bd2-ab27-440f-9200-94ecf233376a} TCPHandler: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bfad483 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab09bf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:53.036755 [ 12917 ] {9c10a6fc-b924-4ec1-a6c1-f709c690cef8} executeQuery: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54810) (comment: 02317_functions_with_nothing.sql) (in query: SELECT concat(arrayJoin([]), arrayJoin([NULL, '']));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bfad483 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab09bf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:53.037376 [ 12917 ] {9c10a6fc-b924-4ec1-a6c1-f709c690cef8} TCPHandler: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bfad483 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab09bf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:53.046486 [ 12917 ] {10be0144-3d1f-49ea-8928-3f7075f27c80} executeQuery: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54810) (comment: 02317_functions_with_nothing.sql) (in query: SELECT plus(arrayJoin([]), arrayJoin([NULL, 1]));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bfad483 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab09bf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:53.047196 [ 12917 ] {10be0144-3d1f-49ea-8928-3f7075f27c80} TCPHandler: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bfad483 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab09bf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:53.055876 [ 12917 ] {d1179645-5d2f-45b2-8123-478000ec0ae5} executeQuery: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54810) (comment: 02317_functions_with_nothing.sql) (in query: SELECT sipHash64(arrayJoin([]), [NULL], arrayJoin(['', NULL, '', NULL]));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bfad483 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab09bf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:12:53.056540 [ 12917 ] {d1179645-5d2f-45b2-8123-478000ec0ae5} TCPHandler: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bfad483 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab09bf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:01.978584 [ 12919 ] {dcbe7f54-ffda-4485-9122-f12eb53f51ea} executeQuery: Code: 73. DB::Exception: Unknown format UnknownFormat. (UNKNOWN_FORMAT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52226) (comment: 02311_create_table_with_unknown_format.sql) (in query: create table test_02311 (x UInt32) engine=File(UnknownFormat);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Formats/FormatFactory.cpp:786: DB::FormatFactory::checkFormatName(String const&) const @ 0x000000001e678526 in /usr/bin/clickhouse 7. /build/src/Storages/StorageFile.cpp:921: DB::StorageFile::StorageFile(DB::StorageFile::CommonArguments) @ 0x000000001d6a353f in /usr/bin/clickhouse 8. /build/src/Storages/StorageFile.cpp:894: DB::StorageFile::StorageFile(String const&, DB::StorageFile::CommonArguments) @ 0x000000001d6a44dc in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFile* std::construct_at[abi:v15000](DB::StorageFile*, String const&, DB::StorageFile::CommonArguments&) @ 0x000000001d6bcc02 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::StorageFile*, String const&, DB::StorageFile::CommonArguments&) @ 0x000000001d6bcb49 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, String const&, DB::StorageFile::CommonArguments&) @ 0x000000001d6bcacf in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String const&, DB::StorageFile::CommonArguments&, void>(std::allocator const&, String const&, DB::StorageFile::CommonArguments&) @ 0x000000001d6bc9e2 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](String const&, DB::StorageFile::CommonArguments&) @ 0x000000001d6bc8ae in /usr/bin/clickhouse 14. /build/src/Storages/StorageFile.cpp:1957: DB::registerStorageFile(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d6acd2f in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageFile(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d6ac43d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageFile(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d6ac3dd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d6ac39d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d6ac365 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:13:01.979451 [ 12919 ] {dcbe7f54-ffda-4485-9122-f12eb53f51ea} TCPHandler: Code: 73. DB::Exception: Unknown format UnknownFormat. (UNKNOWN_FORMAT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Formats/FormatFactory.cpp:786: DB::FormatFactory::checkFormatName(String const&) const @ 0x000000001e678526 in /usr/bin/clickhouse 7. /build/src/Storages/StorageFile.cpp:921: DB::StorageFile::StorageFile(DB::StorageFile::CommonArguments) @ 0x000000001d6a353f in /usr/bin/clickhouse 8. /build/src/Storages/StorageFile.cpp:894: DB::StorageFile::StorageFile(String const&, DB::StorageFile::CommonArguments) @ 0x000000001d6a44dc in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFile* std::construct_at[abi:v15000](DB::StorageFile*, String const&, DB::StorageFile::CommonArguments&) @ 0x000000001d6bcc02 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::StorageFile*, String const&, DB::StorageFile::CommonArguments&) @ 0x000000001d6bcb49 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, String const&, DB::StorageFile::CommonArguments&) @ 0x000000001d6bcacf in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String const&, DB::StorageFile::CommonArguments&, void>(std::allocator const&, String const&, DB::StorageFile::CommonArguments&) @ 0x000000001d6bc9e2 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](String const&, DB::StorageFile::CommonArguments&) @ 0x000000001d6bc8ae in /usr/bin/clickhouse 14. /build/src/Storages/StorageFile.cpp:1957: DB::registerStorageFile(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d6acd2f in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageFile(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d6ac43d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageFile(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d6ac3dd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d6ac39d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d6ac365 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:13:02.151574 [ 12919 ] {f3905cc5-e409-4695-aba5-3c3fd13a95a6} executeQuery: Code: 73. DB::Exception: Unknown format UnknownFormat. (UNKNOWN_FORMAT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52226) (comment: 02311_create_table_with_unknown_format.sql) (in query: create table test_02311 (x UInt32) engine=URL('http://some/url', UnknownFormat);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Formats/FormatFactory.cpp:786: DB::FormatFactory::checkFormatName(String const&) const @ 0x000000001e678526 in /usr/bin/clickhouse 7. /build/src/Storages/StorageURL.cpp:123: DB::IStorageURLBase::IStorageURLBase(String const&, std::shared_ptr, DB::StorageID const&, String const&, std::optional const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, String const&, std::vector> const&, String const&, std::shared_ptr, bool) @ 0x000000001da03c3f in /usr/bin/clickhouse 8. /build/src/Storages/StorageURL.cpp:1119: DB::StorageURL::StorageURL(String const&, DB::StorageID const&, String const&, std::optional const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr, String const&, std::vector> const&, String const&, std::shared_ptr, bool) @ 0x000000001da09b6c in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageURL* std::construct_at[abi:v15000], String&, std::vector>&, String&, std::shared_ptr&, DB::StorageURL*>(DB::StorageURL*, String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, std::vector>&, String&, std::shared_ptr&) @ 0x000000001da2974b in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000], String&, std::vector>&, String&, std::shared_ptr&, void, void>(std::allocator&, DB::StorageURL*, String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, std::vector>&, String&, std::shared_ptr&) @ 0x000000001da295a2 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000], String&, std::vector>&, String&, std::shared_ptr&>(std::allocator, String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, std::vector>&, String&, std::shared_ptr&) @ 0x000000001da29494 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr, String&, std::vector>&, String&, std::shared_ptr&, void>(std::allocator const&, String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, std::vector>&, String&, std::shared_ptr&) @ 0x000000001da292ff in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000], String&, std::vector>&, String&, std::shared_ptr&, void>(String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, std::vector>&, String&, std::shared_ptr&) @ 0x000000001da29208 in /usr/bin/clickhouse 14. /build/src/Storages/StorageURL.cpp:1327: DB::registerStorageURL(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001da11a72 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageURL(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da117dd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageURL(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da1177d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001da1173d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001da11705 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:13:02.152626 [ 12919 ] {f3905cc5-e409-4695-aba5-3c3fd13a95a6} TCPHandler: Code: 73. DB::Exception: Unknown format UnknownFormat. (UNKNOWN_FORMAT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Formats/FormatFactory.cpp:786: DB::FormatFactory::checkFormatName(String const&) const @ 0x000000001e678526 in /usr/bin/clickhouse 7. /build/src/Storages/StorageURL.cpp:123: DB::IStorageURLBase::IStorageURLBase(String const&, std::shared_ptr, DB::StorageID const&, String const&, std::optional const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, String const&, std::vector> const&, String const&, std::shared_ptr, bool) @ 0x000000001da03c3f in /usr/bin/clickhouse 8. /build/src/Storages/StorageURL.cpp:1119: DB::StorageURL::StorageURL(String const&, DB::StorageID const&, String const&, std::optional const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr, String const&, std::vector> const&, String const&, std::shared_ptr, bool) @ 0x000000001da09b6c in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageURL* std::construct_at[abi:v15000], String&, std::vector>&, String&, std::shared_ptr&, DB::StorageURL*>(DB::StorageURL*, String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, std::vector>&, String&, std::shared_ptr&) @ 0x000000001da2974b in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000], String&, std::vector>&, String&, std::shared_ptr&, void, void>(std::allocator&, DB::StorageURL*, String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, std::vector>&, String&, std::shared_ptr&) @ 0x000000001da295a2 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000], String&, std::vector>&, String&, std::shared_ptr&>(std::allocator, String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, std::vector>&, String&, std::shared_ptr&) @ 0x000000001da29494 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr, String&, std::vector>&, String&, std::shared_ptr&, void>(std::allocator const&, String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, std::vector>&, String&, std::shared_ptr&) @ 0x000000001da292ff in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000], String&, std::vector>&, String&, std::shared_ptr&, void>(String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, std::vector>&, String&, std::shared_ptr&) @ 0x000000001da29208 in /usr/bin/clickhouse 14. /build/src/Storages/StorageURL.cpp:1327: DB::registerStorageURL(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001da11a72 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageURL(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da117dd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageURL(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da1177d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001da1173d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001da11705 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:13:02.506922 [ 12919 ] {7d4c7d34-10b4-4296-9c6b-00386771db83} executeQuery: Code: 73. DB::Exception: Unknown format UnknownFormat. (UNKNOWN_FORMAT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52226) (comment: 02311_create_table_with_unknown_format.sql) (in query: create table test_02311 (x UInt32) engine=S3('http://host:2020/test/data', UnknownFormat);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Formats/FormatFactory.cpp:786: DB::FormatFactory::checkFormatName(String const&) const @ 0x000000001e678526 in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:990: DB::StorageS3::StorageS3(DB::StorageS3::Configuration const&, std::shared_ptr, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional, bool, std::shared_ptr) @ 0x000000001d94a55f in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageS3* std::construct_at[abi:v15000], DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool, std::shared_ptr&, DB::StorageS3*>(DB::StorageS3*, DB::StorageS3::Configuration&&, std::shared_ptr&&, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool&&, std::shared_ptr&) @ 0x000000001d976c80 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000], DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool, std::shared_ptr&, void, void>(std::allocator&, DB::StorageS3*, DB::StorageS3::Configuration&&, std::shared_ptr&&, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool&&, std::shared_ptr&) @ 0x000000001d976b15 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000], DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool, std::shared_ptr&>(std::allocator, DB::StorageS3::Configuration&&, std::shared_ptr&&, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool&&, std::shared_ptr&) @ 0x000000001d976a43 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageS3::Configuration, std::shared_ptr, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool, std::shared_ptr&, void>(std::allocator const&, DB::StorageS3::Configuration&&, std::shared_ptr&&, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool&&, std::shared_ptr&) @ 0x000000001d9768f5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000], DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool, std::shared_ptr&, void>(DB::StorageS3::Configuration&&, std::shared_ptr&&, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool&&, std::shared_ptr&) @ 0x000000001d97683b in /usr/bin/clickhouse 13. /build/src/Storages/StorageS3.cpp:1618: DB::registerStorageS3Impl(String const&, DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d9548bf in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageS3Impl(String const&, DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d95421d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageS3Impl(String const&, DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d9541bd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d95417d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d954145 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 20. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 2024.10.22 10:13:02.508068 [ 12919 ] {7d4c7d34-10b4-4296-9c6b-00386771db83} TCPHandler: Code: 73. DB::Exception: Unknown format UnknownFormat. (UNKNOWN_FORMAT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Formats/FormatFactory.cpp:786: DB::FormatFactory::checkFormatName(String const&) const @ 0x000000001e678526 in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:990: DB::StorageS3::StorageS3(DB::StorageS3::Configuration const&, std::shared_ptr, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional, bool, std::shared_ptr) @ 0x000000001d94a55f in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageS3* std::construct_at[abi:v15000], DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool, std::shared_ptr&, DB::StorageS3*>(DB::StorageS3*, DB::StorageS3::Configuration&&, std::shared_ptr&&, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool&&, std::shared_ptr&) @ 0x000000001d976c80 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000], DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool, std::shared_ptr&, void, void>(std::allocator&, DB::StorageS3*, DB::StorageS3::Configuration&&, std::shared_ptr&&, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool&&, std::shared_ptr&) @ 0x000000001d976b15 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000], DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool, std::shared_ptr&>(std::allocator, DB::StorageS3::Configuration&&, std::shared_ptr&&, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool&&, std::shared_ptr&) @ 0x000000001d976a43 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageS3::Configuration, std::shared_ptr, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool, std::shared_ptr&, void>(std::allocator const&, DB::StorageS3::Configuration&&, std::shared_ptr&&, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool&&, std::shared_ptr&) @ 0x000000001d9768f5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000], DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool, std::shared_ptr&, void>(DB::StorageS3::Configuration&&, std::shared_ptr&&, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool&&, std::shared_ptr&) @ 0x000000001d97683b in /usr/bin/clickhouse 13. /build/src/Storages/StorageS3.cpp:1618: DB::registerStorageS3Impl(String const&, DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d9548bf in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageS3Impl(String const&, DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d95421d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageS3Impl(String const&, DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d9541bd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d95417d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d954145 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 20. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 2024.10.22 10:13:02.677925 [ 12919 ] {393dc38d-3f7a-422b-af9c-568210b76a0c} executeQuery: Code: 73. DB::Exception: Unknown format UnknownFormat. (UNKNOWN_FORMAT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52226) (comment: 02311_create_table_with_unknown_format.sql) (in query: create table test_02311 (x UInt32) engine=HDFS('http://hdfs:9000/data', UnknownFormat);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Formats/FormatFactory.cpp:786: DB::FormatFactory::checkFormatName(String const&) const @ 0x000000001e678526 in /usr/bin/clickhouse 7. /build/src/Storages/HDFS/StorageHDFS.cpp:280: DB::StorageHDFS::StorageHDFS(String const&, DB::StorageID const&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr, String const&, bool, std::shared_ptr) @ 0x000000001ae74acd in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageHDFS* std::construct_at[abi:v15000], String&, bool, std::shared_ptr&, DB::StorageHDFS*>(DB::StorageHDFS*, String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, bool&&, std::shared_ptr&) @ 0x000000001ae9597d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000], String&, bool, std::shared_ptr&, void, void>(std::allocator&, DB::StorageHDFS*, String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, bool&&, std::shared_ptr&) @ 0x000000001ae95804 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000], String&, bool, std::shared_ptr&>(std::allocator, String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, bool&&, std::shared_ptr&) @ 0x000000001ae95731 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr, String&, bool, std::shared_ptr&, void>(std::allocator const&, String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, bool&&, std::shared_ptr&) @ 0x000000001ae955c3 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000], String&, bool, std::shared_ptr&, void>(String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, bool&&, std::shared_ptr&) @ 0x000000001ae954a9 in /usr/bin/clickhouse 13. /build/src/Storages/HDFS/StorageHDFS.cpp:1017: DB::registerStorageHDFS(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001ae7f3ce in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageHDFS(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001ae7eadd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageHDFS(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001ae7ea7d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae7ea3d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae7ea05 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 20. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 2024.10.22 10:13:02.678941 [ 12919 ] {393dc38d-3f7a-422b-af9c-568210b76a0c} TCPHandler: Code: 73. DB::Exception: Unknown format UnknownFormat. (UNKNOWN_FORMAT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Formats/FormatFactory.cpp:786: DB::FormatFactory::checkFormatName(String const&) const @ 0x000000001e678526 in /usr/bin/clickhouse 7. /build/src/Storages/HDFS/StorageHDFS.cpp:280: DB::StorageHDFS::StorageHDFS(String const&, DB::StorageID const&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr, String const&, bool, std::shared_ptr) @ 0x000000001ae74acd in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageHDFS* std::construct_at[abi:v15000], String&, bool, std::shared_ptr&, DB::StorageHDFS*>(DB::StorageHDFS*, String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, bool&&, std::shared_ptr&) @ 0x000000001ae9597d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000], String&, bool, std::shared_ptr&, void, void>(std::allocator&, DB::StorageHDFS*, String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, bool&&, std::shared_ptr&) @ 0x000000001ae95804 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000], String&, bool, std::shared_ptr&>(std::allocator, String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, bool&&, std::shared_ptr&) @ 0x000000001ae95731 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr, String&, bool, std::shared_ptr&, void>(std::allocator const&, String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, bool&&, std::shared_ptr&) @ 0x000000001ae955c3 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000], String&, bool, std::shared_ptr&, void>(String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, bool&&, std::shared_ptr&) @ 0x000000001ae954a9 in /usr/bin/clickhouse 13. /build/src/Storages/HDFS/StorageHDFS.cpp:1017: DB::registerStorageHDFS(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001ae7f3ce in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageHDFS(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001ae7eadd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageHDFS(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001ae7ea7d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae7ea3d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae7ea05 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 20. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 2024.10.22 10:13:09.318504 [ 1139 ] {eae47977-1159-4f51-9b71-50b1185401d3} executeQuery: Code: 36. DB::Exception: Bidirectional can only be applied to hierarchical attributes. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45572) (comment: 02294_dictionaries_hierarchical_index.sql) (in query: CREATE DICTIONARY hierarchy_flat_dictionary_index ( id UInt64, parent_id UInt64 BIDIRECTIONAL ) PRIMARY KEY id SOURCE(CLICKHOUSE(TABLE 'test_hierarchy_source_table')) LAYOUT(FLAT()) LIFETIME(0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [61]) @ 0x000000000bc6653e in /usr/bin/clickhouse 6. /build/src/Dictionaries/DictionaryStructure.cpp:374: DB::DictionaryStructure::getAttributes(Poco::Util::AbstractConfiguration const&, String const&, bool) @ 0x000000001abe0341 in /usr/bin/clickhouse 7. /build/src/Dictionaries/DictionaryStructure.cpp:105: DB::DictionaryStructure::DictionaryStructure(Poco::Util::AbstractConfiguration const&, String const&) @ 0x000000001abde394 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExternalDictionariesLoader.cpp:173: DB::ExternalDictionariesLoader::getDictionaryStructure(Poco::Util::AbstractConfiguration const&, String const&) @ 0x000000001c538308 in /usr/bin/clickhouse 9. /build/src/Storages/StorageDictionary.cpp:132: DB::StorageDictionary::StorageDictionary(DB::StorageID const&, Poco::AutoPtr, std::shared_ptr) @ 0x000000001d64f7a6 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageDictionary* std::construct_at[abi:v15000]&, std::shared_ptr&, DB::StorageDictionary*>(DB::StorageDictionary*, DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&) @ 0x000000001d653362 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, std::shared_ptr&, void, void>(std::allocator&, DB::StorageDictionary*, DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&) @ 0x000000001d6532b1 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, std::shared_ptr&>(std::allocator, DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&) @ 0x000000001d653237 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&, void>(std::allocator const&, DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&) @ 0x000000001d65314a in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, std::shared_ptr&, void>(DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&) @ 0x000000001d653056 in /usr/bin/clickhouse 15. /build/src/Storages/StorageDictionary.cpp:330: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d651cd6 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65199d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65193d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d6518fd in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d6518c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 22. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:13:09.319786 [ 1139 ] {eae47977-1159-4f51-9b71-50b1185401d3} TCPHandler: Code: 36. DB::Exception: Bidirectional can only be applied to hierarchical attributes. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [61]) @ 0x000000000bc6653e in /usr/bin/clickhouse 6. /build/src/Dictionaries/DictionaryStructure.cpp:374: DB::DictionaryStructure::getAttributes(Poco::Util::AbstractConfiguration const&, String const&, bool) @ 0x000000001abe0341 in /usr/bin/clickhouse 7. /build/src/Dictionaries/DictionaryStructure.cpp:105: DB::DictionaryStructure::DictionaryStructure(Poco::Util::AbstractConfiguration const&, String const&) @ 0x000000001abde394 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExternalDictionariesLoader.cpp:173: DB::ExternalDictionariesLoader::getDictionaryStructure(Poco::Util::AbstractConfiguration const&, String const&) @ 0x000000001c538308 in /usr/bin/clickhouse 9. /build/src/Storages/StorageDictionary.cpp:132: DB::StorageDictionary::StorageDictionary(DB::StorageID const&, Poco::AutoPtr, std::shared_ptr) @ 0x000000001d64f7a6 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageDictionary* std::construct_at[abi:v15000]&, std::shared_ptr&, DB::StorageDictionary*>(DB::StorageDictionary*, DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&) @ 0x000000001d653362 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, std::shared_ptr&, void, void>(std::allocator&, DB::StorageDictionary*, DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&) @ 0x000000001d6532b1 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, std::shared_ptr&>(std::allocator, DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&) @ 0x000000001d653237 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&, void>(std::allocator const&, DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&) @ 0x000000001d65314a in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, std::shared_ptr&, void>(DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&) @ 0x000000001d653056 in /usr/bin/clickhouse 15. /build/src/Storages/StorageDictionary.cpp:330: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d651cd6 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65199d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65193d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d6518fd in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d6518c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 22. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:13:09.887663 [ 12918 ] {71bbdca2-9c90-4f72-bae9-8246fdaf7ebd} executeQuery: Code: 36. DB::Exception: Argument of GROUPING function modulo(number, 3) is not a part of GROUP BY clause: While processing number, grouping(number, number % 2, number % 3) = 6. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45586) (comment: 02293_grouping_function_group_by.sql) (in query: SELECT number, grouping(number, number % 2, number % 3) = 6 FROM remote('127.0.0.{2,3}', numbers(10)) GROUP BY number, number % 2 ORDER BY number;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/ActionsVisitor.cpp:883: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeb21f in /usr/bin/clickhouse 7. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 8. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:13:09.889085 [ 12918 ] {71bbdca2-9c90-4f72-bae9-8246fdaf7ebd} TCPHandler: Code: 36. DB::Exception: Argument of GROUPING function modulo(number, 3) is not a part of GROUP BY clause: While processing number, grouping(number, number % 2, number % 3) = 6. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/ActionsVisitor.cpp:883: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeb21f in /usr/bin/clickhouse 7. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 8. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:13:10.369209 [ 12928 ] {4b0f91f2-a192-42d8-8cf7-0df563d3a4ef} executeQuery: Code: 117. DB::Exception: Incorrect arguments h3Index: 579205132326352334, k: 1, error: 1: While processing h3HexRing(579205132326352334, toUInt16(1)) AS hexRing. (INCORRECT_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45600) (comment: 02293_h3_hex_ring.sql) (in query: SELECT h3HexRing(579205132326352334, toUInt16(1)) as hexRing;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long const&, int const&, unsigned int&) @ 0x000000000eef3768 in /usr/bin/clickhouse 6. /build/src/Functions/h3HexRing.cpp:134: DB::(anonymous namespace)::FunctionH3HexRing::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eef2bae in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:13:10.370087 [ 12928 ] {4b0f91f2-a192-42d8-8cf7-0df563d3a4ef} TCPHandler: Code: 117. DB::Exception: Incorrect arguments h3Index: 579205132326352334, k: 1, error: 1: While processing h3HexRing(579205132326352334, toUInt16(1)) AS hexRing. (INCORRECT_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long const&, int const&, unsigned int&) @ 0x000000000eef3768 in /usr/bin/clickhouse 6. /build/src/Functions/h3HexRing.cpp:134: DB::(anonymous namespace)::FunctionH3HexRing::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eef2bae in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:13:10.511462 [ 12928 ] {8afcdc0b-6aea-4240-a271-982357bacc9f} executeQuery: Code: 43. DB::Exception: Illegal type Int8 of argument 2 of function h3HexRing. Must be UInt16: While processing h3HexRing(581276613233082367, -1). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45600) (comment: 02293_h3_hex_ring.sql) (in query: SELECT h3HexRing(581276613233082367, -1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, int&&, String&&) @ 0x000000000e47c348 in /usr/bin/clickhouse 6. /build/src/Functions/h3HexRing.cpp:56: DB::(anonymous namespace)::FunctionH3HexRing::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000eef2fd1 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:13:10.512574 [ 12928 ] {8afcdc0b-6aea-4240-a271-982357bacc9f} TCPHandler: Code: 43. DB::Exception: Illegal type Int8 of argument 2 of function h3HexRing. Must be UInt16: While processing h3HexRing(581276613233082367, -1). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, int&&, String&&) @ 0x000000000e47c348 in /usr/bin/clickhouse 6. /build/src/Functions/h3HexRing.cpp:56: DB::(anonymous namespace)::FunctionH3HexRing::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000eef2fd1 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:13:10.658656 [ 12928 ] {abc15f8f-749f-48f0-9e75-47af5e3c743e} executeQuery: Code: 12. DB::Exception: Too large 'k' argument for h3HexRing function, maximum 10000: While processing h3HexRing(581276613233082367, toUInt16(-1)). (PARAMETER_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45600) (comment: 02293_h3_hex_ring.sql) (in query: SELECT h3HexRing(581276613233082367, toUInt16(-1));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, int const&) @ 0x000000000eef354c in /usr/bin/clickhouse 6. /build/src/Functions/h3HexRing.cpp:109: DB::(anonymous namespace)::FunctionH3HexRing::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eef276c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:13:10.659592 [ 12928 ] {abc15f8f-749f-48f0-9e75-47af5e3c743e} TCPHandler: Code: 12. DB::Exception: Too large 'k' argument for h3HexRing function, maximum 10000: While processing h3HexRing(581276613233082367, toUInt16(-1)). (PARAMETER_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, int const&) @ 0x000000000eef354c in /usr/bin/clickhouse 6. /build/src/Functions/h3HexRing.cpp:109: DB::(anonymous namespace)::FunctionH3HexRing::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eef276c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:13:10.923471 [ 12919 ] {a95d24d3-6a16-45c9-b3ba-abb50813adff} executeQuery: Code: 117. DB::Exception: Line cannot be computed between start H3 index 72057594037927935 and end H3 index 72057594037927935: While processing h3Line(72057594037927935, 72057594037927935). (INCORRECT_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45616) (comment: 02293_h3_line.sql) (in query: SELECT h3Line(0xffffffffffffff, 0xffffffffffffff);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long const&, unsigned long const&) @ 0x000000000ddbd4ac in /usr/bin/clickhouse 6. /build/src/Functions/h3Line.cpp:106: DB::(anonymous namespace)::FunctionH3Line::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eeface8 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:13:10.925048 [ 12919 ] {a95d24d3-6a16-45c9-b3ba-abb50813adff} TCPHandler: Code: 117. DB::Exception: Line cannot be computed between start H3 index 72057594037927935 and end H3 index 72057594037927935: While processing h3Line(72057594037927935, 72057594037927935). (INCORRECT_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long const&, unsigned long const&) @ 0x000000000ddbd4ac in /usr/bin/clickhouse 6. /build/src/Functions/h3Line.cpp:106: DB::(anonymous namespace)::FunctionH3Line::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eeface8 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:13:11.074074 [ 12918 ] {e3f5451c-6253-4b04-8980-c5e0ae0a730e} executeQuery: Code: 48. DB::Exception: WITH TOTALS and WITH ROLLUP or CUBE are not supported together in presence of HAVING. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45586) (comment: 02293_grouping_function_group_by.sql) (in query: SELECT number, grouping(number, number % 2) as gr FROM remote('127.0.0.{2,3}', numbers(10)) GROUP BY CUBE(number, number % 2) WITH TOTALS HAVING grouping(number) != 0 ORDER BY number, gr;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [85]) @ 0x0000000015bb223e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1371: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab745a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:11.075245 [ 12918 ] {e3f5451c-6253-4b04-8980-c5e0ae0a730e} TCPHandler: Code: 48. DB::Exception: WITH TOTALS and WITH ROLLUP or CUBE are not supported together in presence of HAVING. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [85]) @ 0x0000000015bb223e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1371: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab745a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:11.189531 [ 12918 ] {0988e884-4707-4547-8ada-478db91f49b3} executeQuery: Code: 48. DB::Exception: WITH TOTALS and WITH ROLLUP or CUBE are not supported together in presence of HAVING. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45586) (comment: 02293_grouping_function_group_by.sql) (in query: SELECT number, grouping(number, number % 2) as gr FROM remote('127.0.0.{2,3}', numbers(10)) GROUP BY ROLLUP(number, number % 2) WITH TOTALS HAVING grouping(number) != 0 ORDER BY number, gr;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [85]) @ 0x0000000015bb223e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1371: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab745a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:11.190240 [ 12918 ] {0988e884-4707-4547-8ada-478db91f49b3} TCPHandler: Code: 48. DB::Exception: WITH TOTALS and WITH ROLLUP or CUBE are not supported together in presence of HAVING. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [85]) @ 0x0000000015bb223e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1371: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab745a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:11.617509 [ 12922 ] {c1fd698d-e169-4f78-9e33-b735f3fcdd09} executeQuery: Code: 10. DB::Exception: Tuple doesn't have element with index '3': While processing (t.1).3. (NOT_FOUND_COLUMN_IN_BLOCK) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45618) (comment: 02286_tuple_numeric_identifier.sql) (in query: SELECT t.1.3 FROM t_tuple_numeric;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long const&) @ 0x000000000b940cf3 in /usr/bin/clickhouse 6. /build/src/Functions/tupleElement.cpp:142: DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x00000000127ab72c in /usr/bin/clickhouse 7. /build/src/Functions/tupleElement.cpp:68: DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127ab3fe in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:13:11.618504 [ 12922 ] {c1fd698d-e169-4f78-9e33-b735f3fcdd09} TCPHandler: Code: 10. DB::Exception: Tuple doesn't have element with index '3': While processing (t.1).3. (NOT_FOUND_COLUMN_IN_BLOCK), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long const&) @ 0x000000000b940cf3 in /usr/bin/clickhouse 6. /build/src/Functions/tupleElement.cpp:142: DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x00000000127ab72c in /usr/bin/clickhouse 7. /build/src/Functions/tupleElement.cpp:68: DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127ab3fe in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:13:11.628296 [ 12922 ] {53f4520b-65f0-4b30-8177-125bc5cd578d} executeQuery: Code: 10. DB::Exception: Tuple doesn't have element with index '4': While processing t.4. (NOT_FOUND_COLUMN_IN_BLOCK) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45618) (comment: 02286_tuple_numeric_identifier.sql) (in query: SELECT t.4 FROM t_tuple_numeric;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long const&) @ 0x000000000b940cf3 in /usr/bin/clickhouse 6. /build/src/Functions/tupleElement.cpp:142: DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x00000000127ab72c in /usr/bin/clickhouse 7. /build/src/Functions/tupleElement.cpp:68: DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127ab3fe in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:13:11.629100 [ 12922 ] {53f4520b-65f0-4b30-8177-125bc5cd578d} TCPHandler: Code: 10. DB::Exception: Tuple doesn't have element with index '4': While processing t.4. (NOT_FOUND_COLUMN_IN_BLOCK), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long const&) @ 0x000000000b940cf3 in /usr/bin/clickhouse 6. /build/src/Functions/tupleElement.cpp:142: DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x00000000127ab72c in /usr/bin/clickhouse 7. /build/src/Functions/tupleElement.cpp:68: DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127ab3fe in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:13:11.641239 [ 12922 ] {a056d319-c87a-41b4-bacc-f9422c7ad792} executeQuery: Code: 47. DB::Exception: Missing columns: 't.2' 't.1.1' while processing query: 'SELECT t.`1`.`1`, t.`1`.`2`, t.`2` FROM t_tuple_numeric', required columns: 't.1.1' 't.1.2' 't.2'. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45618) (comment: 02286_tuple_numeric_identifier.sql) (in query: SELECT `t`.`1`.`1`, `t`.`1`.`2`, `t`.`2` FROM t_tuple_numeric;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:11.642888 [ 12922 ] {a056d319-c87a-41b4-bacc-f9422c7ad792} TCPHandler: Code: 47. DB::Exception: Missing columns: 't.2' 't.1.1' while processing query: 'SELECT t.`1`.`1`, t.`1`.`2`, t.`2` FROM t_tuple_numeric', required columns: 't.1.1' 't.1.2' 't.2'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:12.913136 [ 1139 ] {1fa5cd8e-c76d-48ed-9166-d19af20bb863} executeQuery: Code: 252. DB::Exception: Too many parts (1 with average size of 171.00 B) in table 'test_6jj9yoat.table_for_alter (2ceb3e3d-ea80-411d-add8-2e76151467de)'. Merges are processing significantly slower than inserts. (TOO_MANY_PARTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45662) (comment: 02280_add_query_level_settings.sql) (in query: INSERT INTO table_for_alter VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001def7d88 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001deaa284 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e3abc2c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001ebcd539 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd515 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd4f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd4d5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd49d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcc8b5 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:93: DB::PushingPipelineExecutor::start() @ 0x000000001e6ff916 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:841: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e65144a in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:13:12.914035 [ 1139 ] {1fa5cd8e-c76d-48ed-9166-d19af20bb863} TCPHandler: Code: 252. DB::Exception: Too many parts (1 with average size of 171.00 B) in table 'test_6jj9yoat.table_for_alter (2ceb3e3d-ea80-411d-add8-2e76151467de)'. Merges are processing significantly slower than inserts. (TOO_MANY_PARTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001def7d88 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001deaa284 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e3abc2c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001ebcd539 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd515 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd4f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd4d5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd49d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcc8b5 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:93: DB::PushingPipelineExecutor::start() @ 0x000000001e6ff916 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:841: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e65144a in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:13:12.939632 [ 1139 ] {cb8a90e9-771f-4fc2-bc59-a1c737ed44c4} executeQuery: Code: 252. DB::Exception: Too many parts (2 with average size of 171.00 B) in table 'test_6jj9yoat.table_for_alter (2ceb3e3d-ea80-411d-add8-2e76151467de)'. Merges are processing significantly slower than inserts. (TOO_MANY_PARTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45662) (comment: 02280_add_query_level_settings.sql) (in query: INSERT INTO table_for_alter VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001def7d88 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001deaa284 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e3abc2c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001ebcd539 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd515 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd4f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd4d5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd49d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcc8b5 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:93: DB::PushingPipelineExecutor::start() @ 0x000000001e6ff916 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:841: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e65144a in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:13:12.940475 [ 1139 ] {cb8a90e9-771f-4fc2-bc59-a1c737ed44c4} TCPHandler: Code: 252. DB::Exception: Too many parts (2 with average size of 171.00 B) in table 'test_6jj9yoat.table_for_alter (2ceb3e3d-ea80-411d-add8-2e76151467de)'. Merges are processing significantly slower than inserts. (TOO_MANY_PARTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001def7d88 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001deaa284 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e3abc2c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001ebcd539 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd515 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd4f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd4d5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd49d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcc8b5 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:93: DB::PushingPipelineExecutor::start() @ 0x000000001e6ff916 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:841: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e65144a in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:13:13.200588 [ 12929 ] {c0dfce65-a27a-4220-879f-79f68be5cce8} executeQuery: Code: 48. DB::Exception: Can't execute FULL_SORTING_MERGE join algorithm for this strictness/kind and right storage type. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45678) (comment: 02276_full_sort_join_unsupported.sql) (in query: SELECT * FROM t1 JOIN t2 ON t1.key = t2.key AND t2.key > 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001bfd4cb3 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:1012: DB::chooseJoinAlgorithm(std::shared_ptr, std::vector> const&, std::unique_ptr>&, std::shared_ptr) @ 0x000000001bfb824d in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1157: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb51a6 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:13.201602 [ 12929 ] {c0dfce65-a27a-4220-879f-79f68be5cce8} TCPHandler: Code: 48. DB::Exception: Can't execute FULL_SORTING_MERGE join algorithm for this strictness/kind and right storage type. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001bfd4cb3 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:1012: DB::chooseJoinAlgorithm(std::shared_ptr, std::vector> const&, std::unique_ptr>&, std::shared_ptr) @ 0x000000001bfb824d in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1157: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb51a6 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:13.218385 [ 12929 ] {e0e0dda7-e6d5-4b82-a3b7-197d365d92b4} executeQuery: Code: 48. DB::Exception: Can't execute FULL_SORTING_MERGE join algorithm for this strictness/kind and right storage type. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45678) (comment: 02276_full_sort_join_unsupported.sql) (in query: SELECT * FROM t1 JOIN t2 ON t1.key = t2.key AND t1.key > 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001bfd4cb3 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:1012: DB::chooseJoinAlgorithm(std::shared_ptr, std::vector> const&, std::unique_ptr>&, std::shared_ptr) @ 0x000000001bfb824d in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1157: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb51a6 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:13.219120 [ 12929 ] {e0e0dda7-e6d5-4b82-a3b7-197d365d92b4} TCPHandler: Code: 48. DB::Exception: Can't execute FULL_SORTING_MERGE join algorithm for this strictness/kind and right storage type. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001bfd4cb3 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:1012: DB::chooseJoinAlgorithm(std::shared_ptr, std::vector> const&, std::unique_ptr>&, std::shared_ptr) @ 0x000000001bfb824d in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1157: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb51a6 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:13.356029 [ 12929 ] {2718f7ba-0739-4023-b245-24e624111c94} executeQuery: Code: 48. DB::Exception: Only `hash` join supports multiple ORs for keys in JOIN ON section. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45678) (comment: 02276_full_sort_join_unsupported.sql) (in query: SELECT * FROM t1 JOIN t2 ON t1.key = t2.key OR t1.val = t2.key;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [67]) @ 0x00000000125467de in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:670: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa5871 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:13.356938 [ 12929 ] {2718f7ba-0739-4023-b245-24e624111c94} TCPHandler: Code: 48. DB::Exception: Only `hash` join supports multiple ORs for keys in JOIN ON section. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [67]) @ 0x00000000125467de in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:670: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa5871 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:13.525319 [ 12929 ] {405010a3-22d8-4173-8f0b-23eb3ab00c7f} executeQuery: Code: 48. DB::Exception: MergeJoinAlgorithm is not implemented for strictness Anti. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45678) (comment: 02276_full_sort_join_unsupported.sql) (in query: SELECT * FROM t1 ANTI JOIN t2 ON t1.key = t2.key;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, DB::JoinStrictness&) @ 0x000000001ebe98d3 in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/MergeJoinTransform.cpp:294: DB::MergeJoinAlgorithm::MergeJoinAlgorithm(std::shared_ptr, std::vector> const&, unsigned long) @ 0x000000001ebe38d5 in /usr/bin/clickhouse 7. /build/src/Processors/Merges/IMergingTransform.h:107: DB::IMergingTransform::IMergingTransform&, std::vector> const&, unsigned long&>(std::vector> const&, DB::Block const&, bool, unsigned long, bool, bool, std::shared_ptr&, std::vector> const&, unsigned long&) @ 0x000000001ebea8d2 in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/MergeJoinTransform.cpp:863: DB::MergeJoinTransform::MergeJoinTransform(std::shared_ptr, std::vector> const&, DB::Block const&, unsigned long, unsigned long) @ 0x000000001ebe8449 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::MergeJoinTransform* std::construct_at[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, DB::MergeJoinTransform*>(DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86aa9b in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void, void>(std::allocator&, DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a839 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&>(std::allocator, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a51f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&, void>(std::allocator const&, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a372 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void>(std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b864c1e in /usr/bin/clickhouse 14. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:365: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b860961 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee68f61 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:13.526246 [ 12929 ] {405010a3-22d8-4173-8f0b-23eb3ab00c7f} TCPHandler: Code: 48. DB::Exception: MergeJoinAlgorithm is not implemented for strictness Anti. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, DB::JoinStrictness&) @ 0x000000001ebe98d3 in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/MergeJoinTransform.cpp:294: DB::MergeJoinAlgorithm::MergeJoinAlgorithm(std::shared_ptr, std::vector> const&, unsigned long) @ 0x000000001ebe38d5 in /usr/bin/clickhouse 7. /build/src/Processors/Merges/IMergingTransform.h:107: DB::IMergingTransform::IMergingTransform&, std::vector> const&, unsigned long&>(std::vector> const&, DB::Block const&, bool, unsigned long, bool, bool, std::shared_ptr&, std::vector> const&, unsigned long&) @ 0x000000001ebea8d2 in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/MergeJoinTransform.cpp:863: DB::MergeJoinTransform::MergeJoinTransform(std::shared_ptr, std::vector> const&, DB::Block const&, unsigned long, unsigned long) @ 0x000000001ebe8449 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::MergeJoinTransform* std::construct_at[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, DB::MergeJoinTransform*>(DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86aa9b in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void, void>(std::allocator&, DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a839 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&>(std::allocator, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a51f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&, void>(std::allocator const&, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a372 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void>(std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b864c1e in /usr/bin/clickhouse 14. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:365: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b860961 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee68f61 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:13.553029 [ 12929 ] {aa211979-8f5b-44f3-a505-138ce887072d} executeQuery: Code: 48. DB::Exception: MergeJoinAlgorithm is not implemented for strictness Semi. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45678) (comment: 02276_full_sort_join_unsupported.sql) (in query: SELECT * FROM t1 SEMI JOIN t2 ON t1.key = t2.key;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, DB::JoinStrictness&) @ 0x000000001ebe98d3 in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/MergeJoinTransform.cpp:294: DB::MergeJoinAlgorithm::MergeJoinAlgorithm(std::shared_ptr, std::vector> const&, unsigned long) @ 0x000000001ebe38d5 in /usr/bin/clickhouse 7. /build/src/Processors/Merges/IMergingTransform.h:107: DB::IMergingTransform::IMergingTransform&, std::vector> const&, unsigned long&>(std::vector> const&, DB::Block const&, bool, unsigned long, bool, bool, std::shared_ptr&, std::vector> const&, unsigned long&) @ 0x000000001ebea8d2 in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/MergeJoinTransform.cpp:863: DB::MergeJoinTransform::MergeJoinTransform(std::shared_ptr, std::vector> const&, DB::Block const&, unsigned long, unsigned long) @ 0x000000001ebe8449 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::MergeJoinTransform* std::construct_at[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, DB::MergeJoinTransform*>(DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86aa9b in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void, void>(std::allocator&, DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a839 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&>(std::allocator, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a51f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&, void>(std::allocator const&, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a372 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void>(std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b864c1e in /usr/bin/clickhouse 14. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:365: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b860961 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee68f61 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:13.581456 [ 12929 ] {aa211979-8f5b-44f3-a505-138ce887072d} TCPHandler: Code: 48. DB::Exception: MergeJoinAlgorithm is not implemented for strictness Semi. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, DB::JoinStrictness&) @ 0x000000001ebe98d3 in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/MergeJoinTransform.cpp:294: DB::MergeJoinAlgorithm::MergeJoinAlgorithm(std::shared_ptr, std::vector> const&, unsigned long) @ 0x000000001ebe38d5 in /usr/bin/clickhouse 7. /build/src/Processors/Merges/IMergingTransform.h:107: DB::IMergingTransform::IMergingTransform&, std::vector> const&, unsigned long&>(std::vector> const&, DB::Block const&, bool, unsigned long, bool, bool, std::shared_ptr&, std::vector> const&, unsigned long&) @ 0x000000001ebea8d2 in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/MergeJoinTransform.cpp:863: DB::MergeJoinTransform::MergeJoinTransform(std::shared_ptr, std::vector> const&, DB::Block const&, unsigned long, unsigned long) @ 0x000000001ebe8449 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::MergeJoinTransform* std::construct_at[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, DB::MergeJoinTransform*>(DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86aa9b in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void, void>(std::allocator&, DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a839 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&>(std::allocator, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a51f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&, void>(std::allocator const&, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a372 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void>(std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b864c1e in /usr/bin/clickhouse 14. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:365: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b860961 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee68f61 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:13.616551 [ 12929 ] {f4ce2341-43c7-45ee-98d2-58e128cde6bd} executeQuery: Code: 48. DB::Exception: MergeJoinAlgorithm is not implemented for strictness Asof. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45678) (comment: 02276_full_sort_join_unsupported.sql) (in query: SELECT * FROM t1 ASOF JOIN t2 ON t1.key = t2.key AND t1.val > t2.val;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, DB::JoinStrictness&) @ 0x000000001ebe98d3 in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/MergeJoinTransform.cpp:294: DB::MergeJoinAlgorithm::MergeJoinAlgorithm(std::shared_ptr, std::vector> const&, unsigned long) @ 0x000000001ebe38d5 in /usr/bin/clickhouse 7. /build/src/Processors/Merges/IMergingTransform.h:107: DB::IMergingTransform::IMergingTransform&, std::vector> const&, unsigned long&>(std::vector> const&, DB::Block const&, bool, unsigned long, bool, bool, std::shared_ptr&, std::vector> const&, unsigned long&) @ 0x000000001ebea8d2 in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/MergeJoinTransform.cpp:863: DB::MergeJoinTransform::MergeJoinTransform(std::shared_ptr, std::vector> const&, DB::Block const&, unsigned long, unsigned long) @ 0x000000001ebe8449 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::MergeJoinTransform* std::construct_at[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, DB::MergeJoinTransform*>(DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86aa9b in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void, void>(std::allocator&, DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a839 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&>(std::allocator, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a51f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&, void>(std::allocator const&, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a372 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void>(std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b864c1e in /usr/bin/clickhouse 14. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:365: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b860961 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee68f61 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:13.617691 [ 12929 ] {f4ce2341-43c7-45ee-98d2-58e128cde6bd} TCPHandler: Code: 48. DB::Exception: MergeJoinAlgorithm is not implemented for strictness Asof. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, DB::JoinStrictness&) @ 0x000000001ebe98d3 in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/MergeJoinTransform.cpp:294: DB::MergeJoinAlgorithm::MergeJoinAlgorithm(std::shared_ptr, std::vector> const&, unsigned long) @ 0x000000001ebe38d5 in /usr/bin/clickhouse 7. /build/src/Processors/Merges/IMergingTransform.h:107: DB::IMergingTransform::IMergingTransform&, std::vector> const&, unsigned long&>(std::vector> const&, DB::Block const&, bool, unsigned long, bool, bool, std::shared_ptr&, std::vector> const&, unsigned long&) @ 0x000000001ebea8d2 in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/MergeJoinTransform.cpp:863: DB::MergeJoinTransform::MergeJoinTransform(std::shared_ptr, std::vector> const&, DB::Block const&, unsigned long, unsigned long) @ 0x000000001ebe8449 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::MergeJoinTransform* std::construct_at[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, DB::MergeJoinTransform*>(DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86aa9b in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void, void>(std::allocator&, DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a839 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&>(std::allocator, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a51f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&, void>(std::allocator const&, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a372 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void>(std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b864c1e in /usr/bin/clickhouse 14. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:365: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b860961 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee68f61 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:13.649957 [ 12929 ] {d06749fa-7e9f-4874-9c24-9b7cbf4187d9} executeQuery: Code: 48. DB::Exception: MergeJoinAlgorithm is not implemented for strictness Semi. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45678) (comment: 02276_full_sort_join_unsupported.sql) (in query: SELECT * FROM t1 ANY JOIN t2 ON t1.key = t2.key SETTINGS any_join_distinct_right_table_keys = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, DB::JoinStrictness&) @ 0x000000001ebe98d3 in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/MergeJoinTransform.cpp:294: DB::MergeJoinAlgorithm::MergeJoinAlgorithm(std::shared_ptr, std::vector> const&, unsigned long) @ 0x000000001ebe38d5 in /usr/bin/clickhouse 7. /build/src/Processors/Merges/IMergingTransform.h:107: DB::IMergingTransform::IMergingTransform&, std::vector> const&, unsigned long&>(std::vector> const&, DB::Block const&, bool, unsigned long, bool, bool, std::shared_ptr&, std::vector> const&, unsigned long&) @ 0x000000001ebea8d2 in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/MergeJoinTransform.cpp:863: DB::MergeJoinTransform::MergeJoinTransform(std::shared_ptr, std::vector> const&, DB::Block const&, unsigned long, unsigned long) @ 0x000000001ebe8449 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::MergeJoinTransform* std::construct_at[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, DB::MergeJoinTransform*>(DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86aa9b in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void, void>(std::allocator&, DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a839 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&>(std::allocator, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a51f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&, void>(std::allocator const&, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a372 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void>(std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b864c1e in /usr/bin/clickhouse 14. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:365: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b860961 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee68f61 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:13.651217 [ 12929 ] {d06749fa-7e9f-4874-9c24-9b7cbf4187d9} TCPHandler: Code: 48. DB::Exception: MergeJoinAlgorithm is not implemented for strictness Semi. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, DB::JoinStrictness&) @ 0x000000001ebe98d3 in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/MergeJoinTransform.cpp:294: DB::MergeJoinAlgorithm::MergeJoinAlgorithm(std::shared_ptr, std::vector> const&, unsigned long) @ 0x000000001ebe38d5 in /usr/bin/clickhouse 7. /build/src/Processors/Merges/IMergingTransform.h:107: DB::IMergingTransform::IMergingTransform&, std::vector> const&, unsigned long&>(std::vector> const&, DB::Block const&, bool, unsigned long, bool, bool, std::shared_ptr&, std::vector> const&, unsigned long&) @ 0x000000001ebea8d2 in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/MergeJoinTransform.cpp:863: DB::MergeJoinTransform::MergeJoinTransform(std::shared_ptr, std::vector> const&, DB::Block const&, unsigned long, unsigned long) @ 0x000000001ebe8449 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::MergeJoinTransform* std::construct_at[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, DB::MergeJoinTransform*>(DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86aa9b in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void, void>(std::allocator&, DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a839 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&>(std::allocator, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a51f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&, void>(std::allocator const&, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b86a372 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void>(std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b864c1e in /usr/bin/clickhouse 14. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:365: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b860961 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee68f61 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:13.667167 [ 12929 ] {df7e97d9-3cd1-496b-b50a-15919ab32baf} executeQuery: Code: 48. DB::Exception: Can't execute FULL_SORTING_MERGE join algorithm for this strictness/kind and right storage type. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45678) (comment: 02276_full_sort_join_unsupported.sql) (in query: SELECT * FROM t1 JOIN t2 USING (key) SETTINGS join_use_nulls = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001bfd4cb3 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:1012: DB::chooseJoinAlgorithm(std::shared_ptr, std::vector> const&, std::unique_ptr>&, std::shared_ptr) @ 0x000000001bfb824d in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1157: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb51a6 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:13.668048 [ 12929 ] {df7e97d9-3cd1-496b-b50a-15919ab32baf} TCPHandler: Code: 48. DB::Exception: Can't execute FULL_SORTING_MERGE join algorithm for this strictness/kind and right storage type. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001bfd4cb3 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:1012: DB::chooseJoinAlgorithm(std::shared_ptr, std::vector> const&, std::unique_ptr>&, std::shared_ptr) @ 0x000000001bfb824d in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1157: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb51a6 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:13.876190 [ 1139 ] {9f5e34e2-0279-4c11-9aa3-c66cc7eecaa4} executeQuery: Code: 407. DB::Exception: Numeric overflow: While processing toStartOfInterval(toDateTime64('\0930-12-12 12:12:12.1234567', 3), toIntervalNanosecond(1024)). (DECIMAL_OVERFLOW) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45708) (comment: 02269_to_start_of_interval_overflow.sql) (in query: select toStartOfInterval(toDateTime64('\0930-12-12 12:12:12.1234567', 3), toIntervalNanosecond(1024));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/toStartOfInterval.cpp:298: DB::(anonymous namespace)::Transform<(DB::IntervalKind::Kind)0>::execute(long, long, DateLUTImpl const&, long) @ 0x00000000126a927f in /usr/bin/clickhouse 7. /build/src/Functions/toStartOfInterval.cpp:526: COW::immutable_ptr DB::(anonymous namespace)::FunctionToStartOfInterval::execute>(DB::DataTypeDateTime64 const&, DB::ColumnDecimal const&, long, std::shared_ptr const&, DateLUTImpl const&, unsigned short) const @ 0x00000000126a7d77 in /usr/bin/clickhouse 8. /build/src/Functions/toStartOfInterval.cpp:482: COW::immutable_ptr DB::(anonymous namespace)::FunctionToStartOfInterval::dispatchForIntervalColumn, DB::DataTypeDateTime64>(DB::DataTypeDateTime64 const&, DB::ColumnDecimal const&, DB::ColumnWithTypeAndName const&, std::shared_ptr const&, DateLUTImpl const&, unsigned short) const @ 0x00000000126a63ff in /usr/bin/clickhouse 9. /build/src/Functions/toStartOfInterval.cpp:438: DB::(anonymous namespace)::FunctionToStartOfInterval::dispatchForColumns(DB::ColumnWithTypeAndName const&, DB::ColumnWithTypeAndName const&, std::shared_ptr const&, DateLUTImpl const&) const @ 0x00000000126a5cc4 in /usr/bin/clickhouse 10. /build/src/Functions/toStartOfInterval.cpp:412: DB::(anonymous namespace)::FunctionToStartOfInterval::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126a55a9 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 2024.10.22 10:13:13.877462 [ 1139 ] {9f5e34e2-0279-4c11-9aa3-c66cc7eecaa4} TCPHandler: Code: 407. DB::Exception: Numeric overflow: While processing toStartOfInterval(toDateTime64('\0930-12-12 12:12:12.1234567', 3), toIntervalNanosecond(1024)). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/toStartOfInterval.cpp:298: DB::(anonymous namespace)::Transform<(DB::IntervalKind::Kind)0>::execute(long, long, DateLUTImpl const&, long) @ 0x00000000126a927f in /usr/bin/clickhouse 7. /build/src/Functions/toStartOfInterval.cpp:526: COW::immutable_ptr DB::(anonymous namespace)::FunctionToStartOfInterval::execute>(DB::DataTypeDateTime64 const&, DB::ColumnDecimal const&, long, std::shared_ptr const&, DateLUTImpl const&, unsigned short) const @ 0x00000000126a7d77 in /usr/bin/clickhouse 8. /build/src/Functions/toStartOfInterval.cpp:482: COW::immutable_ptr DB::(anonymous namespace)::FunctionToStartOfInterval::dispatchForIntervalColumn, DB::DataTypeDateTime64>(DB::DataTypeDateTime64 const&, DB::ColumnDecimal const&, DB::ColumnWithTypeAndName const&, std::shared_ptr const&, DateLUTImpl const&, unsigned short) const @ 0x00000000126a63ff in /usr/bin/clickhouse 9. /build/src/Functions/toStartOfInterval.cpp:438: DB::(anonymous namespace)::FunctionToStartOfInterval::dispatchForColumns(DB::ColumnWithTypeAndName const&, DB::ColumnWithTypeAndName const&, std::shared_ptr const&, DateLUTImpl const&) const @ 0x00000000126a5cc4 in /usr/bin/clickhouse 10. /build/src/Functions/toStartOfInterval.cpp:412: DB::(anonymous namespace)::FunctionToStartOfInterval::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126a55a9 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 2024.10.22 10:13:13.904060 [ 1139 ] {22dd559c-92df-49fd-91f9-a5cad62d9e19} executeQuery: Code: 407. DB::Exception: Numeric overflow: While processing toDateTime64(-9223372036854775808, 1048575, toIntervalNanosecond(9223372036854775806), NULL), toStartOfInterval(toDateTime64(toIntervalNanosecond(toIntervalNanosecond(257), toDateTime64(toStartOfInterval(toDateTime64(NULL)))), '', 100), toIntervalNanosecond(toStartOfInterval(toDateTime64(toIntervalNanosecond(NULL), NULL)), -1)), toStartOfInterval(toDateTime64('\0930-12-12 12:12:12.1234567', 3), toIntervalNanosecond(1024)). (DECIMAL_OVERFLOW) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45708) (comment: 02269_to_start_of_interval_overflow.sql) (in query: SELECT toDateTime64(-9223372036854775808, 1048575, toIntervalNanosecond(9223372036854775806), NULL), toStartOfInterval(toDateTime64(toIntervalNanosecond(toIntervalNanosecond(257), toDateTime64(toStartOfInterval(toDateTime64(NULL)))), '', 100), toIntervalNanosecond(toStartOfInterval(toDateTime64(toIntervalNanosecond(NULL), NULL)), -1)), toStartOfInterval(toDateTime64('\0930-12-12 12:12:12.1234567', 3), toIntervalNanosecond(1024));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/toStartOfInterval.cpp:298: DB::(anonymous namespace)::Transform<(DB::IntervalKind::Kind)0>::execute(long, long, DateLUTImpl const&, long) @ 0x00000000126a927f in /usr/bin/clickhouse 7. /build/src/Functions/toStartOfInterval.cpp:526: COW::immutable_ptr DB::(anonymous namespace)::FunctionToStartOfInterval::execute>(DB::DataTypeDateTime64 const&, DB::ColumnDecimal const&, long, std::shared_ptr const&, DateLUTImpl const&, unsigned short) const @ 0x00000000126a7d77 in /usr/bin/clickhouse 8. /build/src/Functions/toStartOfInterval.cpp:482: COW::immutable_ptr DB::(anonymous namespace)::FunctionToStartOfInterval::dispatchForIntervalColumn, DB::DataTypeDateTime64>(DB::DataTypeDateTime64 const&, DB::ColumnDecimal const&, DB::ColumnWithTypeAndName const&, std::shared_ptr const&, DateLUTImpl const&, unsigned short) const @ 0x00000000126a63ff in /usr/bin/clickhouse 9. /build/src/Functions/toStartOfInterval.cpp:438: DB::(anonymous namespace)::FunctionToStartOfInterval::dispatchForColumns(DB::ColumnWithTypeAndName const&, DB::ColumnWithTypeAndName const&, std::shared_ptr const&, DateLUTImpl const&) const @ 0x00000000126a5cc4 in /usr/bin/clickhouse 10. /build/src/Functions/toStartOfInterval.cpp:412: DB::(anonymous namespace)::FunctionToStartOfInterval::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126a55a9 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 2024.10.22 10:13:13.905532 [ 1139 ] {22dd559c-92df-49fd-91f9-a5cad62d9e19} TCPHandler: Code: 407. DB::Exception: Numeric overflow: While processing toDateTime64(-9223372036854775808, 1048575, toIntervalNanosecond(9223372036854775806), NULL), toStartOfInterval(toDateTime64(toIntervalNanosecond(toIntervalNanosecond(257), toDateTime64(toStartOfInterval(toDateTime64(NULL)))), '', 100), toIntervalNanosecond(toStartOfInterval(toDateTime64(toIntervalNanosecond(NULL), NULL)), -1)), toStartOfInterval(toDateTime64('\0930-12-12 12:12:12.1234567', 3), toIntervalNanosecond(1024)). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/toStartOfInterval.cpp:298: DB::(anonymous namespace)::Transform<(DB::IntervalKind::Kind)0>::execute(long, long, DateLUTImpl const&, long) @ 0x00000000126a927f in /usr/bin/clickhouse 7. /build/src/Functions/toStartOfInterval.cpp:526: COW::immutable_ptr DB::(anonymous namespace)::FunctionToStartOfInterval::execute>(DB::DataTypeDateTime64 const&, DB::ColumnDecimal const&, long, std::shared_ptr const&, DateLUTImpl const&, unsigned short) const @ 0x00000000126a7d77 in /usr/bin/clickhouse 8. /build/src/Functions/toStartOfInterval.cpp:482: COW::immutable_ptr DB::(anonymous namespace)::FunctionToStartOfInterval::dispatchForIntervalColumn, DB::DataTypeDateTime64>(DB::DataTypeDateTime64 const&, DB::ColumnDecimal const&, DB::ColumnWithTypeAndName const&, std::shared_ptr const&, DateLUTImpl const&, unsigned short) const @ 0x00000000126a63ff in /usr/bin/clickhouse 9. /build/src/Functions/toStartOfInterval.cpp:438: DB::(anonymous namespace)::FunctionToStartOfInterval::dispatchForColumns(DB::ColumnWithTypeAndName const&, DB::ColumnWithTypeAndName const&, std::shared_ptr const&, DateLUTImpl const&) const @ 0x00000000126a5cc4 in /usr/bin/clickhouse 10. /build/src/Functions/toStartOfInterval.cpp:412: DB::(anonymous namespace)::FunctionToStartOfInterval::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126a55a9 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 2024.10.22 10:13:14.222413 [ 12929 ] {53fc77de-8a3a-4ff1-8a01-6ff55c6f4699} executeQuery: Code: 48. DB::Exception: Current join algorithm is supported only for pipelines without totals. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45678) (comment: 02276_full_sort_join_unsupported.sql) (in query: SELECT * FROM ( SELECT key, sum(val) AS val FROM t1 GROUP BY key WITH TOTALS ) as t1 JOIN ( SELECT key, sum(val) AS val FROM t2 GROUP BY key WITH TOTALS ) as t2 ON t1.key = t2.key;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [70]) @ 0x000000000deca13e in /usr/bin/clickhouse 6. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:361: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b8607f9 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee68f61 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:14.338622 [ 12929 ] {53fc77de-8a3a-4ff1-8a01-6ff55c6f4699} TCPHandler: Code: 48. DB::Exception: Current join algorithm is supported only for pipelines without totals. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [70]) @ 0x000000000deca13e in /usr/bin/clickhouse 6. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:361: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b8607f9 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee68f61 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:14.338624 [ 12933 ] {02421_truncate_isolation_no_merges_test_9xduel5u_tx62_18689} executeQuery: Code: 232. DB::Exception: No part all_2_2_0 in committed state. (NO_SUCH_DATA_PART) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:43652) (in query: alter table drop_part_after_table drop part 'all_2_2_0'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4984: DB::MergeTreeData::checkPartCanBeDropped(String const&) @ 0x000000001deaf870 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:5138: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001deb1670 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da24c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 12. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 13. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 14. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:14.339647 [ 12933 ] {02421_truncate_isolation_no_merges_test_9xduel5u_tx62_18689} DynamicQueryHandler: Code: 232. DB::Exception: No part all_2_2_0 in committed state. (NO_SUCH_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4984: DB::MergeTreeData::checkPartCanBeDropped(String const&) @ 0x000000001deaf870 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:5138: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001deb1670 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da24c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 12. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 13. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 14. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:13:14.380232 [ 12929 ] {fc750a71-92e4-4f31-9d5c-c3281fb50fa2} executeQuery: Code: 48. DB::Exception: Current join algorithm is supported only for pipelines without totals. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45678) (comment: 02276_full_sort_join_unsupported.sql) (in query: SELECT * FROM t1 JOIN ( SELECT key, sum(val) AS val FROM t2 GROUP BY key WITH TOTALS ) as t2 ON t1.key = t2.key;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [70]) @ 0x000000000deca13e in /usr/bin/clickhouse 6. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:361: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b8607f9 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee68f61 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:14.380974 [ 12929 ] {fc750a71-92e4-4f31-9d5c-c3281fb50fa2} TCPHandler: Code: 48. DB::Exception: Current join algorithm is supported only for pipelines without totals. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [70]) @ 0x000000000deca13e in /usr/bin/clickhouse 6. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:361: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b8607f9 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee68f61 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:14.381789 [ 12933 ] {02421_truncate_isolation_no_merges_test_9xduel5u_tx62_12644} executeQuery: Code: 649. DB::Exception: Transaction is not in RUNNING state. (INVALID_TRANSACTION) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:43664) (in query: commit), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [36]) @ 0x000000000ceb289e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:56: DB::InterpreterTransactionControlQuery::executeCommit(std::shared_ptr) @ 0x000000001cbfbff5 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:29: DB::InterpreterTransactionControlQuery::execute() @ 0x000000001cbfbb6d in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:14.382910 [ 12933 ] {02421_truncate_isolation_no_merges_test_9xduel5u_tx62_12644} DynamicQueryHandler: Code: 649. DB::Exception: Transaction is not in RUNNING state. (INVALID_TRANSACTION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [36]) @ 0x000000000ceb289e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:56: DB::InterpreterTransactionControlQuery::executeCommit(std::shared_ptr) @ 0x000000001cbfbff5 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:29: DB::InterpreterTransactionControlQuery::execute() @ 0x000000001cbfbb6d in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:13:14.421290 [ 12929 ] {28da16c0-434a-4447-9227-719e01070981} executeQuery: Code: 48. DB::Exception: Current join algorithm is supported only for pipelines without totals. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45678) (comment: 02276_full_sort_join_unsupported.sql) (in query: SELECT * FROM ( SELECT key, sum(val) AS val FROM t1 GROUP BY key WITH TOTALS ) as t1 JOIN t2 ON t1.key = t2.key;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [70]) @ 0x000000000deca13e in /usr/bin/clickhouse 6. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:361: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b8607f9 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee68f61 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:14.422048 [ 12929 ] {28da16c0-434a-4447-9227-719e01070981} TCPHandler: Code: 48. DB::Exception: Current join algorithm is supported only for pipelines without totals. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [70]) @ 0x000000000deca13e in /usr/bin/clickhouse 6. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:361: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b8607f9 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee68f61 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:19.823583 [ 1674 ] {efb17f43-97a1-4394-98b1-a833b53cc7e9} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48418) (comment: 02270_errors_in_files.sh) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:19.824942 [ 1674 ] {efb17f43-97a1-4394-98b1-a833b53cc7e9} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:25.777593 [ 12929 ] {3765ef42-f09b-48f0-a498-f172d698cd12} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n': Could not print diagnostic info because two last rows aren't in buffer (rare case) : While executing CSVRowInputFormat: While executing File: (in file/uri /var/lib/clickhouse/user_files/test_02270_2.csv): (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48536) (comment: 02270_errors_in_files.sh) (in query: SELECT * FROM file('test_02270*.csv', 'CSV', 'a String, b String')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e822708 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7ee173 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 18. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 19. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 20. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 10:13:25.787131 [ 12929 ] {3765ef42-f09b-48f0-a498-f172d698cd12} TCPHandler: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n': Could not print diagnostic info because two last rows aren't in buffer (rare case) : While executing CSVRowInputFormat: While executing File: (in file/uri /var/lib/clickhouse/user_files/test_02270_2.csv): (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e822708 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7ee173 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 18. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 19. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 20. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 10:13:27.826340 [ 12929 ] {9cb3f1cb-a3f3-4bc2-846a-f4d9cf62706c} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n': Could not print diagnostic info because two last rows aren't in buffer (rare case) : While executing CSVRowInputFormat: While executing File: (in file/uri /var/lib/clickhouse/user_files/test_02270_2.csv): (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47412) (comment: 02270_errors_in_files.sh) (in query: SELECT * FROM file('test_02270*.csv', 'CSV', 'a String, b String')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e822708 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7ee173 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 18. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 19. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 20. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 10:13:27.833688 [ 12929 ] {9cb3f1cb-a3f3-4bc2-846a-f4d9cf62706c} TCPHandler: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n': Could not print diagnostic info because two last rows aren't in buffer (rare case) : While executing CSVRowInputFormat: While executing File: (in file/uri /var/lib/clickhouse/user_files/test_02270_2.csv): (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e822708 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7ee173 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 18. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 19. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 20. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 10:13:30.776240 [ 1674 ] {b07cba76-a467-4e78-8b13-fd36a811a308} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected '{' before: '1\n': Cannot extract table structure from JSONEachRow format file. You can specify the structure manually: (in file/uri /var/lib/clickhouse/user_files/02267_file_globs_schema_inference_test_25zbeyr4_data4.jsonl). (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47472) (comment: 02267_file_globs_schema_inference.sh) (in query: select * from file('02267_file_globs_schema_inference_test_25zbeyr4_data*.jsonl') settings schema_inference_use_cache_for_file=0), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Formats/JSONUtils.cpp:213: DB::JSONUtils::readRowAndGetNamesAndDataTypesForJSONEachRow(DB::ReadBuffer&, DB::FormatSettings const&, DB::JSONInferenceInfo*) @ 0x000000001e8a31e5 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/JSONEachRowRowInputFormat.cpp:0: DB::JSONEachRowSchemaReader::readRowAndGetNamesAndDataTypes(bool&) @ 0x000000001e8c3cc9 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/ISchemaReader.cpp:292: DB::IRowWithNamesSchemaReader::readSchema() @ 0x000000001e7db21a in /usr/bin/clickhouse 11. /build/src/Formats/ReadSchemaUtils.cpp:124: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&, std::unique_ptr>&) @ 0x000000001e69b343 in /usr/bin/clickhouse 12. /build/src/Formats/ReadSchemaUtils.cpp:239: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&) @ 0x000000001e69c8c8 in /usr/bin/clickhouse 13. /build/src/Storages/StorageFile.cpp:828: DB::StorageFile::getTableStructureFromFile(String const&, std::vector> const&, String const&, std::optional const&, std::shared_ptr, std::optional const&) @ 0x000000001d6a22b2 in /usr/bin/clickhouse 14. /build/src/Storages/StorageFile.cpp:935: DB::StorageFile::setStorageMetadata(DB::StorageFile::CommonArguments) @ 0x000000001d6a392a in /usr/bin/clickhouse 15. /build/src/Storages/StorageFile.cpp:890: DB::StorageFile::StorageFile(String const&, String const&, DB::StorageFile::CommonArguments) @ 0x000000001d6a4066 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFile* std::construct_at[abi:v15000](DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e794 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e6d1 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e657 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String const&, String, DB::StorageFile::CommonArguments&, void>(std::allocator const&, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e56a in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97c796 in /usr/bin/clickhouse 21. /build/src/TableFunctions/TableFunctionFile.cpp:88: DB::TableFunctionFile::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a97bf27 in /usr/bin/clickhouse 22. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9806c7 in /usr/bin/clickhouse 23. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 24. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 25. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:13:30.778198 [ 1674 ] {b07cba76-a467-4e78-8b13-fd36a811a308} TCPHandler: Code: 27. DB::ParsingException: Cannot parse input: expected '{' before: '1\n': Cannot extract table structure from JSONEachRow format file. You can specify the structure manually: (in file/uri /var/lib/clickhouse/user_files/02267_file_globs_schema_inference_test_25zbeyr4_data4.jsonl). (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Formats/JSONUtils.cpp:213: DB::JSONUtils::readRowAndGetNamesAndDataTypesForJSONEachRow(DB::ReadBuffer&, DB::FormatSettings const&, DB::JSONInferenceInfo*) @ 0x000000001e8a31e5 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/JSONEachRowRowInputFormat.cpp:0: DB::JSONEachRowSchemaReader::readRowAndGetNamesAndDataTypes(bool&) @ 0x000000001e8c3cc9 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/ISchemaReader.cpp:292: DB::IRowWithNamesSchemaReader::readSchema() @ 0x000000001e7db21a in /usr/bin/clickhouse 11. /build/src/Formats/ReadSchemaUtils.cpp:124: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&, std::unique_ptr>&) @ 0x000000001e69b343 in /usr/bin/clickhouse 12. /build/src/Formats/ReadSchemaUtils.cpp:239: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&) @ 0x000000001e69c8c8 in /usr/bin/clickhouse 13. /build/src/Storages/StorageFile.cpp:828: DB::StorageFile::getTableStructureFromFile(String const&, std::vector> const&, String const&, std::optional const&, std::shared_ptr, std::optional const&) @ 0x000000001d6a22b2 in /usr/bin/clickhouse 14. /build/src/Storages/StorageFile.cpp:935: DB::StorageFile::setStorageMetadata(DB::StorageFile::CommonArguments) @ 0x000000001d6a392a in /usr/bin/clickhouse 15. /build/src/Storages/StorageFile.cpp:890: DB::StorageFile::StorageFile(String const&, String const&, DB::StorageFile::CommonArguments) @ 0x000000001d6a4066 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFile* std::construct_at[abi:v15000](DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e794 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e6d1 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e657 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String const&, String, DB::StorageFile::CommonArguments&, void>(std::allocator const&, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97e56a in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a97c796 in /usr/bin/clickhouse 21. /build/src/TableFunctions/TableFunctionFile.cpp:88: DB::TableFunctionFile::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a97bf27 in /usr/bin/clickhouse 22. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9806c7 in /usr/bin/clickhouse 23. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 24. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 25. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:13:33.639533 [ 672 ] {2411b70a-d75a-4d1f-913e-357ce05f33a6} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n': Could not print diagnostic info because two last rows aren't in buffer (rare case) : While executing CSVRowInputFormat: While executing File: (in file/uri /var/lib/clickhouse/user_files/test_02270_2.csv.gz): (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47522) (comment: 02270_errors_in_files.sh) (in query: SELECT * FROM file('test_02270*.csv.gz', 'CSV', 'a String, b String')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e822708 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7ee173 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 18. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 19. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 20. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 10:13:33.646359 [ 672 ] {2411b70a-d75a-4d1f-913e-357ce05f33a6} TCPHandler: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n': Could not print diagnostic info because two last rows aren't in buffer (rare case) : While executing CSVRowInputFormat: While executing File: (in file/uri /var/lib/clickhouse/user_files/test_02270_2.csv.gz): (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e822708 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7ee173 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 18. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 19. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 20. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 10:13:35.569644 [ 672 ] {11fff6b3-1939-450e-aa20-668f68f6fc2d} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n': Could not print diagnostic info because two last rows aren't in buffer (rare case) : While executing CSVRowInputFormat: While executing File: (in file/uri /var/lib/clickhouse/user_files/test_02270_2.csv.gz): (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47572) (comment: 02270_errors_in_files.sh) (in query: SELECT * FROM file('test_02270*.csv.gz', 'CSV', 'a String, b String')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e822708 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7ee173 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 18. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 19. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 20. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 10:13:35.587149 [ 672 ] {11fff6b3-1939-450e-aa20-668f68f6fc2d} TCPHandler: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n': Could not print diagnostic info because two last rows aren't in buffer (rare case) : While executing CSVRowInputFormat: While executing File: (in file/uri /var/lib/clickhouse/user_files/test_02270_2.csv.gz): (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e822708 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7ee173 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 18. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 19. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 20. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 10:13:43.037830 [ 672 ] {0b9ef3af-1fe3-436a-90ac-602c6b55a44c} executeQuery: Code: 36. DB::Exception: Argument 'format/NOSIGN' must be a literal with type String, got Array. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52868) (comment: 02245_s3_schema_desc.sql) (in query: SELECT * FROM s3(decodeURLComponent(NULL), [NULL]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>, std::basic_string_view>>(int, FormatStringHelperImpl::type, std::type_identity>>::type, std::type_identity>>::type>, String const&, std::basic_string_view>&&, std::basic_string_view>&&) @ 0x00000000119535e8 in /usr/bin/clickhouse 6. /build/src/Storages/checkAndGetLiteralArgument.cpp:32: String DB::checkAndGetLiteralArgument(DB::ASTLiteral const&, String const&) @ 0x000000001da4e488 in /usr/bin/clickhouse 7. /build/src/Storages/checkAndGetLiteralArgument.cpp:16: String DB::checkAndGetLiteralArgument(std::shared_ptr const&, String const&) @ 0x000000001da4e17d in /usr/bin/clickhouse 8. /build/src/TableFunctions/TableFunctionS3.cpp:97: DB::TableFunctionS3::parseArgumentsImpl(absl::lts_20211102::InlinedVector, 7ul, std::allocator>>&, std::shared_ptr const&) @ 0x000000001a99b99f in /usr/bin/clickhouse 9. /build/src/TableFunctions/TableFunctionS3.cpp:206: DB::TableFunctionS3::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a99d204 in /usr/bin/clickhouse 10. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 11. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 12. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 29. ? @ 0x00007f1a0debbac3 in ? 30. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:43.038991 [ 672 ] {0b9ef3af-1fe3-436a-90ac-602c6b55a44c} TCPHandler: Code: 36. DB::Exception: Argument 'format/NOSIGN' must be a literal with type String, got Array. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>, std::basic_string_view>>(int, FormatStringHelperImpl::type, std::type_identity>>::type, std::type_identity>>::type>, String const&, std::basic_string_view>&&, std::basic_string_view>&&) @ 0x00000000119535e8 in /usr/bin/clickhouse 6. /build/src/Storages/checkAndGetLiteralArgument.cpp:32: String DB::checkAndGetLiteralArgument(DB::ASTLiteral const&, String const&) @ 0x000000001da4e488 in /usr/bin/clickhouse 7. /build/src/Storages/checkAndGetLiteralArgument.cpp:16: String DB::checkAndGetLiteralArgument(std::shared_ptr const&, String const&) @ 0x000000001da4e17d in /usr/bin/clickhouse 8. /build/src/TableFunctions/TableFunctionS3.cpp:97: DB::TableFunctionS3::parseArgumentsImpl(absl::lts_20211102::InlinedVector, 7ul, std::allocator>>&, std::shared_ptr const&) @ 0x000000001a99b99f in /usr/bin/clickhouse 9. /build/src/TableFunctions/TableFunctionS3.cpp:206: DB::TableFunctionS3::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a99d204 in /usr/bin/clickhouse 10. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 11. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 12. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 29. ? @ 0x00007f1a0debbac3 in ? 30. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:43.704182 [ 12916 ] {7e331742-792f-42eb-a4c7-b7a11d5be620} executeQuery: Code: 407. DB::Exception: Decimal math overflow: While processing makeDateTime64(2299, 12, 31, 23, 59, 59, 999999999, 9, 'UTC'). (DECIMAL_OVERFLOW) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52938) (comment: 02245_make_datetime64.sql) (in query: select makeDateTime64(2299, 12, 31, 23, 59, 59, 999999999, 9, 'UTC');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b244b5e in /usr/bin/clickhouse 6. /build/src/Core/DecimalFunctions.h:98: bool DB::DecimalUtils::multiplyAdd(long const&, long const&, long const&, long&) @ 0x000000000b244a2e in /usr/bin/clickhouse 7. /build/src/Core/DecimalFunctions.h:139: bool DB::DecimalUtils::decimalFromComponentsWithMultiplierImpl(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, DB::DateTime64::NativeType, DB::DateTime64&) @ 0x000000000b244969 in /usr/bin/clickhouse 8. /build/src/Core/DecimalFunctions.h:154: DB::DateTime64 DB::DecimalUtils::decimalFromComponentsWithMultiplier(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, DB::DateTime64::NativeType) @ 0x000000000b244829 in /usr/bin/clickhouse 9. /build/src/Core/DecimalFunctions.h:197: DB::DateTime64 DB::DecimalUtils::decimalFromComponents(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, unsigned int) @ 0x000000000b2559db in /usr/bin/clickhouse 10. /build/src/Functions/makeDate.cpp:451: DB::(anonymous namespace)::FunctionMakeDateTime64::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001031e278 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 2024.10.22 10:13:43.705347 [ 12916 ] {7e331742-792f-42eb-a4c7-b7a11d5be620} TCPHandler: Code: 407. DB::Exception: Decimal math overflow: While processing makeDateTime64(2299, 12, 31, 23, 59, 59, 999999999, 9, 'UTC'). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b244b5e in /usr/bin/clickhouse 6. /build/src/Core/DecimalFunctions.h:98: bool DB::DecimalUtils::multiplyAdd(long const&, long const&, long const&, long&) @ 0x000000000b244a2e in /usr/bin/clickhouse 7. /build/src/Core/DecimalFunctions.h:139: bool DB::DecimalUtils::decimalFromComponentsWithMultiplierImpl(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, DB::DateTime64::NativeType, DB::DateTime64&) @ 0x000000000b244969 in /usr/bin/clickhouse 8. /build/src/Core/DecimalFunctions.h:154: DB::DateTime64 DB::DecimalUtils::decimalFromComponentsWithMultiplier(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, DB::DateTime64::NativeType) @ 0x000000000b244829 in /usr/bin/clickhouse 9. /build/src/Core/DecimalFunctions.h:197: DB::DateTime64 DB::DecimalUtils::decimalFromComponents(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, unsigned int) @ 0x000000000b2559db in /usr/bin/clickhouse 10. /build/src/Functions/makeDate.cpp:451: DB::(anonymous namespace)::FunctionMakeDateTime64::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001031e278 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 2024.10.22 10:13:43.849334 [ 12916 ] {66e218f9-7ada-4386-9222-e17bb0482e52} executeQuery: Code: 407. DB::Exception: Decimal math overflow: While processing makeDateTime64(2262, 4, 11, 23, 47, 16, 854775808, 9, 'UTC'). (DECIMAL_OVERFLOW) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52938) (comment: 02245_make_datetime64.sql) (in query: select makeDateTime64(2262, 4, 11, 23, 47, 16, 854775808, 9, 'UTC');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b244b5e in /usr/bin/clickhouse 6. /build/src/Core/DecimalFunctions.h:105: bool DB::DecimalUtils::multiplyAdd(long const&, long const&, long const&, long&) @ 0x000000000b244ab6 in /usr/bin/clickhouse 7. /build/src/Core/DecimalFunctions.h:139: bool DB::DecimalUtils::decimalFromComponentsWithMultiplierImpl(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, DB::DateTime64::NativeType, DB::DateTime64&) @ 0x000000000b244969 in /usr/bin/clickhouse 8. /build/src/Core/DecimalFunctions.h:154: DB::DateTime64 DB::DecimalUtils::decimalFromComponentsWithMultiplier(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, DB::DateTime64::NativeType) @ 0x000000000b244829 in /usr/bin/clickhouse 9. /build/src/Core/DecimalFunctions.h:197: DB::DateTime64 DB::DecimalUtils::decimalFromComponents(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, unsigned int) @ 0x000000000b2559db in /usr/bin/clickhouse 10. /build/src/Functions/makeDate.cpp:451: DB::(anonymous namespace)::FunctionMakeDateTime64::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001031e278 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 2024.10.22 10:13:43.850186 [ 12916 ] {66e218f9-7ada-4386-9222-e17bb0482e52} TCPHandler: Code: 407. DB::Exception: Decimal math overflow: While processing makeDateTime64(2262, 4, 11, 23, 47, 16, 854775808, 9, 'UTC'). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b244b5e in /usr/bin/clickhouse 6. /build/src/Core/DecimalFunctions.h:105: bool DB::DecimalUtils::multiplyAdd(long const&, long const&, long const&, long&) @ 0x000000000b244ab6 in /usr/bin/clickhouse 7. /build/src/Core/DecimalFunctions.h:139: bool DB::DecimalUtils::decimalFromComponentsWithMultiplierImpl(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, DB::DateTime64::NativeType, DB::DateTime64&) @ 0x000000000b244969 in /usr/bin/clickhouse 8. /build/src/Core/DecimalFunctions.h:154: DB::DateTime64 DB::DecimalUtils::decimalFromComponentsWithMultiplier(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, DB::DateTime64::NativeType) @ 0x000000000b244829 in /usr/bin/clickhouse 9. /build/src/Core/DecimalFunctions.h:197: DB::DateTime64 DB::DecimalUtils::decimalFromComponents(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, unsigned int) @ 0x000000000b2559db in /usr/bin/clickhouse 10. /build/src/Functions/makeDate.cpp:451: DB::(anonymous namespace)::FunctionMakeDateTime64::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001031e278 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 2024.10.22 10:13:44.169479 [ 12916 ] {336a3d5e-6479-4b6d-be35-9802db19d113} executeQuery: Code: 69. DB::Exception: Argument 'precision' for function makeDateTime64 must be in range [0, 9]: While processing makeDateTime64(1991, 8, 24, 21, 4, 0, 1234, 10, 'CET'). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52938) (comment: 02245_make_datetime64.sql) (in query: select makeDateTime64(1991, 8, 24, 21, 4, 0, 1234, 10, 'CET');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/makeDate.cpp:469: DB::(anonymous namespace)::FunctionMakeDateTime64::extractPrecision(DB::ColumnWithTypeAndName const&) const @ 0x000000001031f03f in /usr/bin/clickhouse 7. /build/src/Functions/makeDate.cpp:371: DB::(anonymous namespace)::FunctionMakeDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031ec81 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:13:44.170455 [ 12916 ] {336a3d5e-6479-4b6d-be35-9802db19d113} TCPHandler: Code: 69. DB::Exception: Argument 'precision' for function makeDateTime64 must be in range [0, 9]: While processing makeDateTime64(1991, 8, 24, 21, 4, 0, 1234, 10, 'CET'). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/makeDate.cpp:469: DB::(anonymous namespace)::FunctionMakeDateTime64::extractPrecision(DB::ColumnWithTypeAndName const&) const @ 0x000000001031f03f in /usr/bin/clickhouse 7. /build/src/Functions/makeDate.cpp:371: DB::(anonymous namespace)::FunctionMakeDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031ec81 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:13:44.178578 [ 12916 ] {3b309955-bc72-4c46-9f45-09f7212bf3e7} executeQuery: Code: 69. DB::Exception: Argument 'precision' for function makeDateTime64 must be in range [0, 9]: While processing makeDateTime64(1991, 8, 24, 21, 4, 0, 1234, -1, 'CET'). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52938) (comment: 02245_make_datetime64.sql) (in query: select makeDateTime64(1991, 8, 24, 21, 4, 0, 1234, -1, 'CET');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/makeDate.cpp:469: DB::(anonymous namespace)::FunctionMakeDateTime64::extractPrecision(DB::ColumnWithTypeAndName const&) const @ 0x000000001031f03f in /usr/bin/clickhouse 7. /build/src/Functions/makeDate.cpp:371: DB::(anonymous namespace)::FunctionMakeDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031ec81 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:13:44.179333 [ 12916 ] {3b309955-bc72-4c46-9f45-09f7212bf3e7} TCPHandler: Code: 69. DB::Exception: Argument 'precision' for function makeDateTime64 must be in range [0, 9]: While processing makeDateTime64(1991, 8, 24, 21, 4, 0, 1234, -1, 'CET'). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/makeDate.cpp:469: DB::(anonymous namespace)::FunctionMakeDateTime64::extractPrecision(DB::ColumnWithTypeAndName const&) const @ 0x000000001031f03f in /usr/bin/clickhouse 7. /build/src/Functions/makeDate.cpp:371: DB::(anonymous namespace)::FunctionMakeDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031ec81 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:13:44.420561 [ 12916 ] {f4c4ef10-f53c-42ff-9106-c956e334e85c} executeQuery: Code: 36. DB::Exception: Cannot load time zone not a timezone: While processing makeDateTime64(1984, 1, 1, 0, 0, 0, 0, 9, 'not a timezone'). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52938) (comment: 02245_make_datetime64.sql) (in query: select makeDateTime64(1984, 1, 1, 0, 0, 0, 0, 9, 'not a timezone');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Common/DateLUTImpl.cpp:77: DateLUTImpl::DateLUTImpl(String const&) @ 0x00000000138c8a14 in /usr/bin/clickhouse 7. /build/src/Common/DateLUT.cpp:157: DateLUT::getImplementation(String const&) const @ 0x00000000138c32ca in /usr/bin/clickhouse 8. /build/src/Common/DateLUT.h:62: TimezoneMixin::TimezoneMixin(String const&) @ 0x000000001b8b33e9 in /usr/bin/clickhouse 9. /build/src/DataTypes/DataTypeDateTime64.cpp:22: DB::DataTypeDateTime64::DataTypeDateTime64(unsigned int, String const&) @ 0x000000001b8b449c in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::DataTypeDateTime64* std::construct_at[abi:v15000](DB::DataTypeDateTime64*, long&, String&) @ 0x000000001031f92f in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::DataTypeDateTime64*, long&, String&) @ 0x000000001031f8a9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, long&, String&) @ 0x000000001031f82f in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], long&, String&, void>(std::allocator const&, long&, String&) @ 0x000000001031f742 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](long&, String&) @ 0x000000001031f6ce in /usr/bin/clickhouse 15. /build/src/Functions/makeDate.cpp:378: DB::(anonymous namespace)::FunctionMakeDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031ed5b in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:13:44.421461 [ 12916 ] {f4c4ef10-f53c-42ff-9106-c956e334e85c} TCPHandler: Code: 36. DB::Exception: Cannot load time zone not a timezone: While processing makeDateTime64(1984, 1, 1, 0, 0, 0, 0, 9, 'not a timezone'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Common/DateLUTImpl.cpp:77: DateLUTImpl::DateLUTImpl(String const&) @ 0x00000000138c8a14 in /usr/bin/clickhouse 7. /build/src/Common/DateLUT.cpp:157: DateLUT::getImplementation(String const&) const @ 0x00000000138c32ca in /usr/bin/clickhouse 8. /build/src/Common/DateLUT.h:62: TimezoneMixin::TimezoneMixin(String const&) @ 0x000000001b8b33e9 in /usr/bin/clickhouse 9. /build/src/DataTypes/DataTypeDateTime64.cpp:22: DB::DataTypeDateTime64::DataTypeDateTime64(unsigned int, String const&) @ 0x000000001b8b449c in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::DataTypeDateTime64* std::construct_at[abi:v15000](DB::DataTypeDateTime64*, long&, String&) @ 0x000000001031f92f in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::DataTypeDateTime64*, long&, String&) @ 0x000000001031f8a9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, long&, String&) @ 0x000000001031f82f in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], long&, String&, void>(std::allocator const&, long&, String&) @ 0x000000001031f742 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](long&, String&) @ 0x000000001031f6ce in /usr/bin/clickhouse 15. /build/src/Functions/makeDate.cpp:378: DB::(anonymous namespace)::FunctionMakeDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031ed5b in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:13:45.135202 [ 12916 ] {cbd5cdd7-be4e-45d1-86d4-ae0866360161} executeQuery: Code: 43. DB::Exception: Argument 'precision' for function makeDateTime64 must be constant number: While processing makeDateTime64(year, 1, 1, 1, 0, 0, 0, precision, timezone). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52938) (comment: 02245_make_datetime64.sql) (in query: select makeDateTime64(year, 1, 1, 1, 0, 0, 0, precision, timezone) from ( select 1984 as year, 5 as precision, 'UTC' as timezone union all select 1985 as year, 5 as precision, 'UTC' as timezone );), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/makeDate.cpp:465: DB::(anonymous namespace)::FunctionMakeDateTime64::extractPrecision(DB::ColumnWithTypeAndName const&) const @ 0x000000001031ef11 in /usr/bin/clickhouse 7. /build/src/Functions/makeDate.cpp:371: DB::(anonymous namespace)::FunctionMakeDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031ec81 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:13:45.136420 [ 12916 ] {cbd5cdd7-be4e-45d1-86d4-ae0866360161} TCPHandler: Code: 43. DB::Exception: Argument 'precision' for function makeDateTime64 must be constant number: While processing makeDateTime64(year, 1, 1, 1, 0, 0, 0, precision, timezone). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/makeDate.cpp:465: DB::(anonymous namespace)::FunctionMakeDateTime64::extractPrecision(DB::ColumnWithTypeAndName const&) const @ 0x000000001031ef11 in /usr/bin/clickhouse 7. /build/src/Functions/makeDate.cpp:371: DB::(anonymous namespace)::FunctionMakeDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031ec81 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:13:45.503258 [ 12925 ] {59acc9a4-1c37-455a-90a2-127af5d35cef} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date: While processing makeDate32(CAST(1980, 'Date'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52976) (comment: 02243_make_date32.sql) (in query: select makeDate32(cast(1980 as Date), 10, 30);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:45.504130 [ 12925 ] {59acc9a4-1c37-455a-90a2-127af5d35cef} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date: While processing makeDate32(CAST(1980, 'Date'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:45.513213 [ 12925 ] {f24e559e-6f0a-4db7-9833-2fc4cf4f55b8} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date: While processing makeDate32(CAST(-1980, 'Date'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52976) (comment: 02243_make_date32.sql) (in query: select makeDate32(cast(-1980 as Date), 10, 30);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:45.514064 [ 12925 ] {f24e559e-6f0a-4db7-9833-2fc4cf4f55b8} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date: While processing makeDate32(CAST(-1980, 'Date'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:45.523206 [ 12925 ] {9f713e9e-f068-44bc-bb6a-922e9cabf8ba} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date32: While processing makeDate32(CAST(1980, 'Date32'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52976) (comment: 02243_make_date32.sql) (in query: select makeDate32(cast(1980 as Date32), 10, 30);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:45.524022 [ 12925 ] {9f713e9e-f068-44bc-bb6a-922e9cabf8ba} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date32: While processing makeDate32(CAST(1980, 'Date32'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:45.533219 [ 12925 ] {4e2a20dd-3610-4cef-abd7-77807025c787} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date32: While processing makeDate32(CAST(-1980, 'Date32'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52976) (comment: 02243_make_date32.sql) (in query: select makeDate32(cast(-1980 as Date32), 10, 30);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:45.534073 [ 12925 ] {4e2a20dd-3610-4cef-abd7-77807025c787} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date32: While processing makeDate32(CAST(-1980, 'Date32'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:45.545138 [ 12925 ] {c3d9948b-2c6b-4972-b892-57a5c9d9bf7c} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime: While processing makeDate32(CAST(1980, 'DateTime'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52976) (comment: 02243_make_date32.sql) (in query: select makeDate32(cast(1980 as DateTime), 10, 30);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:45.546194 [ 12925 ] {c3d9948b-2c6b-4972-b892-57a5c9d9bf7c} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime: While processing makeDate32(CAST(1980, 'DateTime'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:45.558134 [ 12925 ] {34bbcd93-f77f-423d-a028-a0f212870d52} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime: While processing makeDate32(CAST(-1980, 'DateTime'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52976) (comment: 02243_make_date32.sql) (in query: select makeDate32(cast(-1980 as DateTime), 10, 30);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:45.559479 [ 12925 ] {34bbcd93-f77f-423d-a028-a0f212870d52} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime: While processing makeDate32(CAST(-1980, 'DateTime'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:45.570557 [ 12925 ] {d29d459b-7c92-42fc-a114-0fcb5c9f4212} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime64(3): While processing makeDate32(CAST(1980, 'DateTime64'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52976) (comment: 02243_make_date32.sql) (in query: select makeDate32(cast(1980 as DateTime64), 10, 30);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:45.571683 [ 12925 ] {d29d459b-7c92-42fc-a114-0fcb5c9f4212} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime64(3): While processing makeDate32(CAST(1980, 'DateTime64'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:45.582614 [ 12925 ] {146e0b8b-a126-41bd-8fe4-f749c6771d29} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime64(3): While processing makeDate32(CAST(-1980, 'DateTime64'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52976) (comment: 02243_make_date32.sql) (in query: select makeDate32(cast(-1980 as DateTime64), 10, 30);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:45.583715 [ 12925 ] {146e0b8b-a126-41bd-8fe4-f749c6771d29} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime64(3): While processing makeDate32(CAST(-1980, 'DateTime64'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.034457 [ 12925 ] {6eedf7d7-8adc-4c5b-883a-153b947075f0} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('1980', '10', '20'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52976) (comment: 02243_make_date32.sql) (in query: select makeDate32('1980', '10', '20');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.035279 [ 12925 ] {6eedf7d7-8adc-4c5b-883a-153b947075f0} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('1980', '10', '20'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.042867 [ 12925 ] {a61c5ff0-71c2-4579-a12f-8504f58610d2} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('-1980', 3, 17). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52976) (comment: 02243_make_date32.sql) (in query: select makeDate32('-1980', 3, 17);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.043715 [ 12925 ] {a61c5ff0-71c2-4579-a12f-8504f58610d2} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('-1980', 3, 17). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.051213 [ 12925 ] {386f72d2-f38a-4456-b70c-d3401a5e5912} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('aa', 3, 24). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52976) (comment: 02243_make_date32.sql) (in query: select makeDate32('aa', 3, 24);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.052080 [ 12925 ] {386f72d2-f38a-4456-b70c-d3401a5e5912} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('aa', 3, 24). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.058965 [ 12925 ] {da23c4a2-f1bb-4861-9b58-3644479d798e} executeQuery: Code: 43. DB::Exception: Illegal type of argument #2 'month' of function makeDate32, expected Number, got String: While processing makeDate32(1994, 'aa', 24). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52976) (comment: 02243_make_date32.sql) (in query: select makeDate32(1994, 'aa', 24);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.059732 [ 12925 ] {da23c4a2-f1bb-4861-9b58-3644479d798e} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #2 'month' of function makeDate32, expected Number, got String: While processing makeDate32(1994, 'aa', 24). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.066741 [ 12925 ] {9e506fdc-4644-4a90-83e3-eb2d8ea67a3f} executeQuery: Code: 43. DB::Exception: Illegal type of argument #3 'day' of function makeDate32, expected Number, got String: While processing makeDate32(1984, 3, 'aa'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52976) (comment: 02243_make_date32.sql) (in query: select makeDate32(1984, 3, 'aa');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.067726 [ 12925 ] {9e506fdc-4644-4a90-83e3-eb2d8ea67a3f} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #3 'day' of function makeDate32, expected Number, got String: While processing makeDate32(1984, 3, 'aa'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010319d58 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.307399 [ 12925 ] {a227262f-d546-4c3a-8b0e-8e1618174428} executeQuery: Code: 42. DB::Exception: Incorrect number of arguments for function makeDate32 provided 1 (UInt16), expected 2 ('year' : Number, 'dayofyear' : Number): While processing makeDate32(1980). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52976) (comment: 02243_make_date32.sql) (in query: select makeDate32(1980);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001ac0141d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff365 in /usr/bin/clickhouse 7. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:13:46.308449 [ 12925 ] {a227262f-d546-4c3a-8b0e-8e1618174428} TCPHandler: Code: 42. DB::Exception: Incorrect number of arguments for function makeDate32 provided 1 (UInt16), expected 2 ('year' : Number, 'dayofyear' : Number): While processing makeDate32(1980). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001ac0141d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff365 in /usr/bin/clickhouse 7. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:13:46.316989 [ 12925 ] {22c69935-514d-4b60-a9b5-6419fcef6a09} executeQuery: Code: 42. DB::Exception: Incorrect number of arguments for function makeDate32 provided 4 (UInt16, UInt8, UInt8, UInt8), expected 2 ('year' : Number, 'dayofyear' : Number): While processing makeDate32(1980, 1, 1, 1). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52976) (comment: 02243_make_date32.sql) (in query: select makeDate32(1980, 1, 1, 1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001ac0141d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff365 in /usr/bin/clickhouse 7. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:13:46.317808 [ 12925 ] {22c69935-514d-4b60-a9b5-6419fcef6a09} TCPHandler: Code: 42. DB::Exception: Incorrect number of arguments for function makeDate32 provided 4 (UInt16, UInt8, UInt8, UInt8), expected 2 ('year' : Number, 'dayofyear' : Number): While processing makeDate32(1980, 1, 1, 1). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001ac0141d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff365 in /usr/bin/clickhouse 7. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:13:46.815867 [ 12920 ] {73aed3c9-5580-48c3-80ac-dd5f8da4bb92} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date: While processing makeDate32(CAST(1980, 'Date'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53010) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32(cast(1980 as Date), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.816815 [ 12920 ] {73aed3c9-5580-48c3-80ac-dd5f8da4bb92} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date: While processing makeDate32(CAST(1980, 'Date'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.825232 [ 12920 ] {34e94f5f-a262-4bff-b8ee-42b2c04c4051} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date: While processing makeDate32(CAST(-1980, 'Date'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53010) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32(cast(-1980 as Date), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.826026 [ 12920 ] {34e94f5f-a262-4bff-b8ee-42b2c04c4051} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date: While processing makeDate32(CAST(-1980, 'Date'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.833418 [ 12920 ] {1edf8b83-3d92-4188-8727-f5f59f2fd75a} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date32: While processing makeDate32(CAST(1980, 'Date32'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53010) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32(cast(1980 as Date32), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.834238 [ 12920 ] {1edf8b83-3d92-4188-8727-f5f59f2fd75a} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date32: While processing makeDate32(CAST(1980, 'Date32'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.841977 [ 12920 ] {af6dd25f-b322-40c6-a772-9ff9552d0c30} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date32: While processing makeDate32(CAST(-1980, 'Date32'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53010) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32(cast(-1980 as Date32), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.842752 [ 12920 ] {af6dd25f-b322-40c6-a772-9ff9552d0c30} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date32: While processing makeDate32(CAST(-1980, 'Date32'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.849932 [ 12920 ] {d8ec4f04-9bb0-4be9-96c1-10bbd261fa21} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime: While processing makeDate32(CAST(1980, 'DateTime'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53010) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32(cast(1980 as DateTime), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.850682 [ 12920 ] {d8ec4f04-9bb0-4be9-96c1-10bbd261fa21} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime: While processing makeDate32(CAST(1980, 'DateTime'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.858747 [ 12920 ] {f311c6c9-6065-412b-8974-5ebf9cd4ceaa} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime: While processing makeDate32(CAST(-1980, 'DateTime'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53010) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32(cast(-1980 as DateTime), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.859513 [ 12920 ] {f311c6c9-6065-412b-8974-5ebf9cd4ceaa} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime: While processing makeDate32(CAST(-1980, 'DateTime'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.867176 [ 12920 ] {be6a2dde-72f0-4b3f-9bfc-e57fff60a2de} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime64(3): While processing makeDate32(CAST(1980, 'DateTime64'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53010) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32(cast(1980 as DateTime64), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.867948 [ 12920 ] {be6a2dde-72f0-4b3f-9bfc-e57fff60a2de} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime64(3): While processing makeDate32(CAST(1980, 'DateTime64'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.875635 [ 12920 ] {dc8d379f-2d74-49fb-8166-f57df97e61c9} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime64(3): While processing makeDate32(CAST(-1980, 'DateTime64'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53010) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32(cast(-1980 as DateTime64), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.876412 [ 12920 ] {dc8d379f-2d74-49fb-8166-f57df97e61c9} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime64(3): While processing makeDate32(CAST(-1980, 'DateTime64'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.883399 [ 12920 ] {86f74e31-1aec-4569-94de-c947352b7aec} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('1980', '10'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53010) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32('1980', '10');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.884226 [ 12920 ] {86f74e31-1aec-4569-94de-c947352b7aec} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('1980', '10'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.891621 [ 12920 ] {3c04a8e5-4781-46f6-a514-4d8581a8ab8b} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('-1980', 3). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53010) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32('-1980', 3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.892536 [ 12920 ] {3c04a8e5-4781-46f6-a514-4d8581a8ab8b} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('-1980', 3). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.899770 [ 12920 ] {b35b373f-412b-4b6b-b2eb-88b28791f995} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('aa', 3). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53010) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32('aa', 3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.900564 [ 12920 ] {b35b373f-412b-4b6b-b2eb-88b28791f995} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('aa', 3). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.908109 [ 12920 ] {ac53ba5f-ad74-4b9c-9867-05cf4083ce59} executeQuery: Code: 43. DB::Exception: Illegal type of argument #2 'dayofyear' of function makeDate32, expected Number, got String: While processing makeDate32(1994, 'aa'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53010) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32(1994, 'aa');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:46.909031 [ 12920 ] {ac53ba5f-ad74-4b9c-9867-05cf4083ce59} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #2 'dayofyear' of function makeDate32, expected Number, got String: While processing makeDate32(1994, 'aa'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031a025 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.330380 [ 12916 ] {c746ac33-5d2a-4c88-a4f4-f455d47004ab} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got Date: While processing makeDate(CAST(1980, 'Date'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42850) (comment: 02242_make_date_mysql.sql) (in query: select makeDate(cast(1980 as Date), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.331311 [ 12916 ] {c746ac33-5d2a-4c88-a4f4-f455d47004ab} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got Date: While processing makeDate(CAST(1980, 'Date'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.340051 [ 12916 ] {6fac7c2d-0892-4bcc-a2ea-058dbc21ea4e} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got Date: While processing makeDate(CAST(-1980, 'Date'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42850) (comment: 02242_make_date_mysql.sql) (in query: select makeDate(cast(-1980 as Date), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.340944 [ 12916 ] {6fac7c2d-0892-4bcc-a2ea-058dbc21ea4e} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got Date: While processing makeDate(CAST(-1980, 'Date'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.349100 [ 12916 ] {72f2bb4e-555d-459e-880d-4f197fa29571} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got Date32: While processing makeDate(CAST(1980, 'Date32'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42850) (comment: 02242_make_date_mysql.sql) (in query: select makeDate(cast(1980 as Date32), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.349952 [ 12916 ] {72f2bb4e-555d-459e-880d-4f197fa29571} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got Date32: While processing makeDate(CAST(1980, 'Date32'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.357847 [ 12916 ] {a1f50574-1e3b-47b7-ab40-211085bb6fd4} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got Date32: While processing makeDate(CAST(-1980, 'Date32'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42850) (comment: 02242_make_date_mysql.sql) (in query: select makeDate(cast(-1980 as Date32), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.358633 [ 12916 ] {a1f50574-1e3b-47b7-ab40-211085bb6fd4} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got Date32: While processing makeDate(CAST(-1980, 'Date32'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.366119 [ 12916 ] {ef2f8463-af4c-4756-87e5-49c3edde7ceb} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got DateTime: While processing makeDate(CAST(1980, 'DateTime'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42850) (comment: 02242_make_date_mysql.sql) (in query: select makeDate(cast(1980 as DateTime), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.366992 [ 12916 ] {ef2f8463-af4c-4756-87e5-49c3edde7ceb} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got DateTime: While processing makeDate(CAST(1980, 'DateTime'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.374624 [ 12916 ] {6018f102-fe5c-462a-85c2-57e2ebfd574c} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got DateTime: While processing makeDate(CAST(-1980, 'DateTime'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42850) (comment: 02242_make_date_mysql.sql) (in query: select makeDate(cast(-1980 as DateTime), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.375418 [ 12916 ] {6018f102-fe5c-462a-85c2-57e2ebfd574c} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got DateTime: While processing makeDate(CAST(-1980, 'DateTime'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.383487 [ 12916 ] {46e4d407-8be5-4b17-861d-3f0b0427ffb3} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got DateTime64(3): While processing makeDate(CAST(1980, 'DateTime64'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42850) (comment: 02242_make_date_mysql.sql) (in query: select makeDate(cast(1980 as DateTime64), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.384258 [ 12916 ] {46e4d407-8be5-4b17-861d-3f0b0427ffb3} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got DateTime64(3): While processing makeDate(CAST(1980, 'DateTime64'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.391909 [ 12916 ] {72f3c490-c9bf-4642-8df5-ac9654ba048a} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got DateTime64(3): While processing makeDate(CAST(-1980, 'DateTime64'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42850) (comment: 02242_make_date_mysql.sql) (in query: select makeDate(cast(-1980 as DateTime64), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.392694 [ 12916 ] {72f3c490-c9bf-4642-8df5-ac9654ba048a} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got DateTime64(3): While processing makeDate(CAST(-1980, 'DateTime64'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.400069 [ 12916 ] {30af6c11-1f48-486e-ab02-e7b16febd581} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got String: While processing makeDate('1980', '10'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42850) (comment: 02242_make_date_mysql.sql) (in query: select makeDate('1980', '10');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.400912 [ 12916 ] {30af6c11-1f48-486e-ab02-e7b16febd581} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got String: While processing makeDate('1980', '10'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.408244 [ 12916 ] {526317ee-89ac-4b18-bf43-ab9ac2761e93} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got String: While processing makeDate('-1980', 3). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42850) (comment: 02242_make_date_mysql.sql) (in query: select makeDate('-1980', 3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.409054 [ 12916 ] {526317ee-89ac-4b18-bf43-ab9ac2761e93} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got String: While processing makeDate('-1980', 3). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.416444 [ 12916 ] {e03da310-e744-41aa-97b1-f9c8ca2af810} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got String: While processing makeDate('aa', 3). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42850) (comment: 02242_make_date_mysql.sql) (in query: select makeDate('aa', 3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.417327 [ 12916 ] {e03da310-e744-41aa-97b1-f9c8ca2af810} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got String: While processing makeDate('aa', 3). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.424696 [ 12916 ] {68f3a536-cf7b-4869-9c42-659e169a88cd} executeQuery: Code: 43. DB::Exception: Illegal type of argument #2 'dayofyear' of function makeDate, expected Number, got String: While processing makeDate(1994, 'aa'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42850) (comment: 02242_make_date_mysql.sql) (in query: select makeDate(1994, 'aa');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:48.425590 [ 12916 ] {68f3a536-cf7b-4869-9c42-659e169a88cd} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #2 'dayofyear' of function makeDate, expected Number, got String: While processing makeDate(1994, 'aa'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x0000000010317ce5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:13:51.409412 [ 12919 ] {f25d4ae5-20d0-47d9-8056-93807ad36257} executeQuery: Code: 59. DB::Exception: Invalid type for filter in HAVING: Nothing. In query SELECT (NULL, NULL, NULL, NULL, NULL, NULL, NULL) FROM numbers(0) GROUP BY number WITH TOTALS HAVING sum(number) <= arrayJoin([]). (ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42982) (comment: 02233_with_total_empty_chunk.sql) (in query: SELECT (NULL, NULL, NULL, NULL, NULL, NULL, NULL) FROM numbers(0) GROUP BY number WITH TOTALS HAVING sum(number) <= arrayJoin([]) -- { serverError 59 }; ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x000000001b3f3fc8 in /usr/bin/clickhouse 6. /build/src/Analyzer/ValidationUtils.cpp:31: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000001c99d73e in /usr/bin/clickhouse 7. /build/src/Analyzer/ValidationUtils.cpp:59: DB::validateFilters(std::shared_ptr const&) @ 0x000000001c99d60b in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7139: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c9204d5 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 11. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:51.410668 [ 12919 ] {f25d4ae5-20d0-47d9-8056-93807ad36257} TCPHandler: Code: 59. DB::Exception: Invalid type for filter in HAVING: Nothing. In query SELECT (NULL, NULL, NULL, NULL, NULL, NULL, NULL) FROM numbers(0) GROUP BY number WITH TOTALS HAVING sum(number) <= arrayJoin([]). (ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x000000001b3f3fc8 in /usr/bin/clickhouse 6. /build/src/Analyzer/ValidationUtils.cpp:31: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000001c99d73e in /usr/bin/clickhouse 7. /build/src/Analyzer/ValidationUtils.cpp:59: DB::validateFilters(std::shared_ptr const&) @ 0x000000001c99d60b in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7139: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c9204d5 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 11. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:51.673075 [ 12933 ] {02421_truncate_isolation_no_merges_test_9xduel5u_tx81_4651} executeQuery: Code: 232. DB::Exception: No part all_2_2_0 in committed state. (NO_SUCH_DATA_PART) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:38548) (in query: alter table tt drop part 'all_2_2_0'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4984: DB::MergeTreeData::checkPartCanBeDropped(String const&) @ 0x000000001deaf870 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:5138: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001deb1670 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da24c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 12. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 13. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 14. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:51.674048 [ 12933 ] {02421_truncate_isolation_no_merges_test_9xduel5u_tx81_4651} DynamicQueryHandler: Code: 232. DB::Exception: No part all_2_2_0 in committed state. (NO_SUCH_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4984: DB::MergeTreeData::checkPartCanBeDropped(String const&) @ 0x000000001deaf870 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:5138: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001deb1670 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da24c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 12. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 13. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 14. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:13:51.798280 [ 12933 ] {02421_truncate_isolation_no_merges_test_9xduel5u_tx81_17931} executeQuery: Code: 649. DB::Exception: Cannot execute query because current transaction failed. Expecting ROLLBACK statement. (INVALID_TRANSACTION) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:38554) (in query: select count() from tt), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [86]) @ 0x000000000f200c9e in /usr/bin/clickhouse 6. /build/src/Interpreters/executeQuery.cpp:799: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b1c87 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 8. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 9. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 10. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 16. ? @ 0x00007f1a0debbac3 in ? 17. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:51.799330 [ 12933 ] {02421_truncate_isolation_no_merges_test_9xduel5u_tx81_17931} DynamicQueryHandler: Code: 649. DB::Exception: Cannot execute query because current transaction failed. Expecting ROLLBACK statement. (INVALID_TRANSACTION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [86]) @ 0x000000000f200c9e in /usr/bin/clickhouse 6. /build/src/Interpreters/executeQuery.cpp:799: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b1c87 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 8. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 9. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 10. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 16. ? @ 0x00007f1a0debbac3 in ? 17. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:13:51.819025 [ 12933 ] {02421_truncate_isolation_no_merges_test_9xduel5u_tx81_21249} executeQuery: Code: 649. DB::Exception: Transaction is not in RUNNING state. (INVALID_TRANSACTION) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:38558) (in query: commit), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [36]) @ 0x000000000ceb289e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:56: DB::InterpreterTransactionControlQuery::executeCommit(std::shared_ptr) @ 0x000000001cbfbff5 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:29: DB::InterpreterTransactionControlQuery::execute() @ 0x000000001cbfbb6d in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:51.819963 [ 12933 ] {02421_truncate_isolation_no_merges_test_9xduel5u_tx81_21249} DynamicQueryHandler: Code: 649. DB::Exception: Transaction is not in RUNNING state. (INVALID_TRANSACTION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [36]) @ 0x000000000ceb289e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:56: DB::InterpreterTransactionControlQuery::executeCommit(std::shared_ptr) @ 0x000000001cbfbff5 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:29: DB::InterpreterTransactionControlQuery::execute() @ 0x000000001cbfbb6d in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:13:53.472477 [ 12925 ] {2f5d37f7-4230-4f91-a3b2-ec3b10b6ff63} executeQuery: Code: 10. DB::Exception: Not found column _part in block order_0 UInt64 UInt64(size = 0), granule UInt8 UInt8(size = 0). (NOT_FOUND_COLUMN_IN_BLOCK) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42958) (comment: 02235_add_part_offset_virtual_column.sql) (in query: SELECT count(*), sum(_part_offset), sum(order_0) from t_1 prewhere _part != '' where granule == 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/ActionsDAG.cpp:656: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc8d97d in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:636: DB::IMergeTreeSelectAlgorithm::applyPrewhereActions(DB::Block, std::shared_ptr const&) @ 0x000000001e12e2c4 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:671: DB::IMergeTreeSelectAlgorithm::transformHeader(DB::Block, std::shared_ptr const&, std::shared_ptr const&, std::vector> const&) @ 0x000000001e131c17 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:254: DB::ReadFromMergeTree::ReadFromMergeTree(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector>, std::vector>, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr, std::shared_ptr, unsigned long, unsigned long, bool, std::shared_ptr, std::equal_to, std::allocator>>>, Poco::Logger*, std::shared_ptr, bool) @ 0x000000001ee9a32d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000], std::allocator>>, std::vector, std::allocator>>, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&>(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&) @ 0x000000001dfc1798 in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1305: DB::MergeTreeDataSelectExecutor::readFromParts(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, std::shared_ptr, bool) const @ 0x000000001dfaebab in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:168: DB::MergeTreeDataSelectExecutor::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, DB::QueryProcessingStage::Enum, std::shared_ptr, std::equal_to, std::allocator>>>, bool) const @ 0x000000001dfab40c in /usr/bin/clickhouse 13. /build/src/Storages/StorageMergeTree.cpp:252: DB::StorageMergeTree::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001e365a5f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:53.474828 [ 12925 ] {2f5d37f7-4230-4f91-a3b2-ec3b10b6ff63} TCPHandler: Code: 10. DB::Exception: Not found column _part in block order_0 UInt64 UInt64(size = 0), granule UInt8 UInt8(size = 0). (NOT_FOUND_COLUMN_IN_BLOCK), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/ActionsDAG.cpp:656: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc8d97d in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:636: DB::IMergeTreeSelectAlgorithm::applyPrewhereActions(DB::Block, std::shared_ptr const&) @ 0x000000001e12e2c4 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:671: DB::IMergeTreeSelectAlgorithm::transformHeader(DB::Block, std::shared_ptr const&, std::shared_ptr const&, std::vector> const&) @ 0x000000001e131c17 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:254: DB::ReadFromMergeTree::ReadFromMergeTree(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector>, std::vector>, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr, std::shared_ptr, unsigned long, unsigned long, bool, std::shared_ptr, std::equal_to, std::allocator>>>, Poco::Logger*, std::shared_ptr, bool) @ 0x000000001ee9a32d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000], std::allocator>>, std::vector, std::allocator>>, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&>(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&) @ 0x000000001dfc1798 in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1305: DB::MergeTreeDataSelectExecutor::readFromParts(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, std::shared_ptr, bool) const @ 0x000000001dfaebab in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:168: DB::MergeTreeDataSelectExecutor::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, DB::QueryProcessingStage::Enum, std::shared_ptr, std::equal_to, std::allocator>>>, bool) const @ 0x000000001dfab40c in /usr/bin/clickhouse 13. /build/src/Storages/StorageMergeTree.cpp:252: DB::StorageMergeTree::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001e365a5f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:53.501277 [ 12925 ] {ccd5de7d-1256-44a5-8b05-2e707fa7d3bb} executeQuery: Code: 10. DB::Exception: Not found column _part_offset in block order_0 UInt64 UInt64(size = 0), granule UInt8 UInt8(size = 0). (NOT_FOUND_COLUMN_IN_BLOCK) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42958) (comment: 02235_add_part_offset_virtual_column.sql) (in query: SELECT count(*), sum(_part_offset), sum(order_0) from t_1 prewhere _part_offset > 100000 where granule == 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/ActionsDAG.cpp:656: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc8d97d in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:636: DB::IMergeTreeSelectAlgorithm::applyPrewhereActions(DB::Block, std::shared_ptr const&) @ 0x000000001e12e2c4 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:671: DB::IMergeTreeSelectAlgorithm::transformHeader(DB::Block, std::shared_ptr const&, std::shared_ptr const&, std::vector> const&) @ 0x000000001e131c17 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:254: DB::ReadFromMergeTree::ReadFromMergeTree(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector>, std::vector>, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr, std::shared_ptr, unsigned long, unsigned long, bool, std::shared_ptr, std::equal_to, std::allocator>>>, Poco::Logger*, std::shared_ptr, bool) @ 0x000000001ee9a32d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000], std::allocator>>, std::vector, std::allocator>>, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&>(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&) @ 0x000000001dfc1798 in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1305: DB::MergeTreeDataSelectExecutor::readFromParts(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, std::shared_ptr, bool) const @ 0x000000001dfaebab in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:168: DB::MergeTreeDataSelectExecutor::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, DB::QueryProcessingStage::Enum, std::shared_ptr, std::equal_to, std::allocator>>>, bool) const @ 0x000000001dfab40c in /usr/bin/clickhouse 13. /build/src/Storages/StorageMergeTree.cpp:252: DB::StorageMergeTree::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001e365a5f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:53.503003 [ 12925 ] {ccd5de7d-1256-44a5-8b05-2e707fa7d3bb} TCPHandler: Code: 10. DB::Exception: Not found column _part_offset in block order_0 UInt64 UInt64(size = 0), granule UInt8 UInt8(size = 0). (NOT_FOUND_COLUMN_IN_BLOCK), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/ActionsDAG.cpp:656: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc8d97d in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:636: DB::IMergeTreeSelectAlgorithm::applyPrewhereActions(DB::Block, std::shared_ptr const&) @ 0x000000001e12e2c4 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:671: DB::IMergeTreeSelectAlgorithm::transformHeader(DB::Block, std::shared_ptr const&, std::shared_ptr const&, std::vector> const&) @ 0x000000001e131c17 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:254: DB::ReadFromMergeTree::ReadFromMergeTree(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector>, std::vector>, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr, std::shared_ptr, unsigned long, unsigned long, bool, std::shared_ptr, std::equal_to, std::allocator>>>, Poco::Logger*, std::shared_ptr, bool) @ 0x000000001ee9a32d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000], std::allocator>>, std::vector, std::allocator>>, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&>(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&) @ 0x000000001dfc1798 in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1305: DB::MergeTreeDataSelectExecutor::readFromParts(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, std::shared_ptr, bool) const @ 0x000000001dfaebab in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:168: DB::MergeTreeDataSelectExecutor::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, DB::QueryProcessingStage::Enum, std::shared_ptr, std::equal_to, std::allocator>>>, bool) const @ 0x000000001dfab40c in /usr/bin/clickhouse 13. /build/src/Storages/StorageMergeTree.cpp:252: DB::StorageMergeTree::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001e365a5f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:13:53.969820 [ 6011 ] {d00b7cdd-fdbd-443c-a3b1-cc4aea1f6b50} test_04795hlm.rmt1 (3f8ed998-5e1b-4edb-81df-8122d85f0d13): while loading part all_0_0_0_1 on path store/3f8/3f8ed998-5e1b-4edb-81df-8122d85f0d13/all_0_0_0_1: Code: 107. DB::Exception: store/3f8/3f8ed998-5e1b-4edb-81df-8122d85f0d13/all_0_0_0_1/data.bin doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, std::__fs::filesystem::path&&) @ 0x000000001df5c593 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataPartChecksum.cpp:54: DB::MergeTreeDataPartChecksum::checkSize(DB::IDataPartStorage const&, String const&) const @ 0x000000001df5f0f6 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeDataPartChecksum.cpp:96: DB::MergeTreeDataPartChecksums::checkSizes(DB::IDataPartStorage const&) const @ 0x000000001df5f817 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/IMergeTreeDataPart.cpp:1876: DB::IMergeTreeDataPart::checkConsistencyBase() const @ 0x000000001dd8430e in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeDataPartCompact.cpp:154: DB::MergeTreeDataPartCompact::checkConsistency(bool) const @ 0x000000001df696a7 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/IMergeTreeDataPart.cpp:664: DB::IMergeTreeDataPart::loadColumnsChecksumsIndexes(bool, bool) @ 0x000000001dd74a73 in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeData.cpp:1301: DB::MergeTreeData::loadDataPart(DB::MergeTreePartInfo const&, String const&, std::shared_ptr const&, DB::MergeTreeDataPartState, std::mutex&) @ 0x000000001de6efb3 in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeData.cpp:1441: DB::MergeTreeData::loadDataPartWithRetries(DB::MergeTreePartInfo const&, String const&, std::shared_ptr const&, DB::MergeTreeDataPartState, std::mutex&, unsigned long, unsigned long, unsigned long) @ 0x000000001de73a17 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeData.cpp:1527: DB::MergeTreeData::loadDataPartsFromDisk(std::vector, std::allocator>>&)::$_0::operator()() const @ 0x000000001deeb7c8 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, std::allocator>>&)::$_0&>()()) std::__invoke[abi:v15000], std::allocator>>&)::$_0&>(DB::MergeTreeData::loadDataPartsFromDisk(std::vector, std::allocator>>&)::$_0&) @ 0x000000001deeb715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call, std::allocator>>&)::$_0&>(DB::MergeTreeData::loadDataPartsFromDisk(std::vector, std::allocator>>&)::$_0&) @ 0x000000001deeb6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func, std::allocator>>&)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001deeb6d5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl, std::allocator>>&)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001deeb6a0 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 20. /build/src/Interpreters/threadPoolCallbackRunner.h:42: std::function (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda'()::operator()() @ 0x000000001b38301d in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000] (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda'()&>(void&&) @ 0x000000001b382f95 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/future:1694: std::__packaged_task_func (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda'(), std::allocator (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda'()>, void ()>::operator()() @ 0x000000001b382d21 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/future:1876: std::__packaged_task_function::operator()() const @ 0x000000001ab2bd9a in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/future:2068: std::packaged_task::operator()() @ 0x000000001ab2bbb8 in /usr/bin/clickhouse 25. /build/src/Interpreters/threadPoolCallbackRunner.h:50: std::function (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'()::operator()() const @ 0x000000001b38367d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000] (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'()&>(void&&) @ 0x000000001b383655 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'()&>(std::function (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'()&) @ 0x000000001b383635 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'(), void ()>::operator()[abi:v15000]() @ 0x000000001b383615 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001b3835e0 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:13:53.971156 [ 6011 ] {d00b7cdd-fdbd-443c-a3b1-cc4aea1f6b50} test_04795hlm.rmt1 (3f8ed998-5e1b-4edb-81df-8122d85f0d13): Detaching broken part /var/lib/clickhouse/store/3f8/3f8ed998-5e1b-4edb-81df-8122d85f0d13/all_0_0_0_1 (size: 390.00 B). If it happened after update, it is likely because of backward incompatibility. You need to resolve this manually 2024.10.22 10:13:53.977826 [ 6469 ] {d00b7cdd-fdbd-443c-a3b1-cc4aea1f6b50} test_04795hlm.rmt1 (3f8ed998-5e1b-4edb-81df-8122d85f0d13): while loading part all_0_0_0 on path store/3f8/3f8ed998-5e1b-4edb-81df-8122d85f0d13/all_0_0_0: Code: 107. DB::Exception: store/3f8/3f8ed998-5e1b-4edb-81df-8122d85f0d13/all_0_0_0/data.bin doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, std::__fs::filesystem::path&&) @ 0x000000001df5c593 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataPartChecksum.cpp:54: DB::MergeTreeDataPartChecksum::checkSize(DB::IDataPartStorage const&, String const&) const @ 0x000000001df5f0f6 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeDataPartChecksum.cpp:96: DB::MergeTreeDataPartChecksums::checkSizes(DB::IDataPartStorage const&) const @ 0x000000001df5f817 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/IMergeTreeDataPart.cpp:1876: DB::IMergeTreeDataPart::checkConsistencyBase() const @ 0x000000001dd8430e in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeDataPartCompact.cpp:154: DB::MergeTreeDataPartCompact::checkConsistency(bool) const @ 0x000000001df696a7 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/IMergeTreeDataPart.cpp:664: DB::IMergeTreeDataPart::loadColumnsChecksumsIndexes(bool, bool) @ 0x000000001dd74a73 in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeData.cpp:1301: DB::MergeTreeData::loadDataPart(DB::MergeTreePartInfo const&, String const&, std::shared_ptr const&, DB::MergeTreeDataPartState, std::mutex&) @ 0x000000001de6efb3 in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeData.cpp:1441: DB::MergeTreeData::loadDataPartWithRetries(DB::MergeTreePartInfo const&, String const&, std::shared_ptr const&, DB::MergeTreeDataPartState, std::mutex&, unsigned long, unsigned long, unsigned long) @ 0x000000001de73a17 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeData.cpp:1527: DB::MergeTreeData::loadDataPartsFromDisk(std::vector, std::allocator>>&)::$_0::operator()() const @ 0x000000001deeb7c8 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, std::allocator>>&)::$_0&>()()) std::__invoke[abi:v15000], std::allocator>>&)::$_0&>(DB::MergeTreeData::loadDataPartsFromDisk(std::vector, std::allocator>>&)::$_0&) @ 0x000000001deeb715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call, std::allocator>>&)::$_0&>(DB::MergeTreeData::loadDataPartsFromDisk(std::vector, std::allocator>>&)::$_0&) @ 0x000000001deeb6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func, std::allocator>>&)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001deeb6d5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl, std::allocator>>&)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001deeb6a0 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 20. /build/src/Interpreters/threadPoolCallbackRunner.h:42: std::function (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda'()::operator()() @ 0x000000001b38301d in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000] (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda'()&>(void&&) @ 0x000000001b382f95 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/future:1694: std::__packaged_task_func (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda'(), std::allocator (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda'()>, void ()>::operator()() @ 0x000000001b382d21 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/future:1876: std::__packaged_task_function::operator()() const @ 0x000000001ab2bd9a in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/future:2068: std::packaged_task::operator()() @ 0x000000001ab2bbb8 in /usr/bin/clickhouse 25. /build/src/Interpreters/threadPoolCallbackRunner.h:50: std::function (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'()::operator()() const @ 0x000000001b38367d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000] (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'()&>(void&&) @ 0x000000001b383655 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'()&>(std::function (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'()&) @ 0x000000001b383635 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'(), void ()>::operator()[abi:v15000]() @ 0x000000001b383615 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001b3835e0 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:13:53.979374 [ 6469 ] {d00b7cdd-fdbd-443c-a3b1-cc4aea1f6b50} test_04795hlm.rmt1 (3f8ed998-5e1b-4edb-81df-8122d85f0d13): Detaching broken part /var/lib/clickhouse/store/3f8/3f8ed998-5e1b-4edb-81df-8122d85f0d13/all_0_0_0 (size: 390.00 B). If it happened after update, it is likely because of backward incompatibility. You need to resolve this manually 2024.10.22 10:13:54.013607 [ 809 ] {} test_04795hlm.rmt1 (3f8ed998-5e1b-4edb-81df-8122d85f0d13): Detached 0 parts covered by broken part all_0_0_0_1: 2024.10.22 10:13:54.019616 [ 809 ] {} test_04795hlm.rmt1 (3f8ed998-5e1b-4edb-81df-8122d85f0d13): Detached 0 parts covered by broken part all_0_0_0: 2024.10.22 10:14:03.093020 [ 12919 ] {729e6a46-214c-4fb1-9ee6-a797c343ac89} executeQuery: Code: 69. DB::Exception: The argument 'resolution' (20) of function h3GetPentagonIndexes is out of bounds because the maximum resolution in H3 library is 15: While processing h3GetPentagonIndexes(20) AS indexes. (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33046) (comment: 02212_h3_get_pentagon_indexes.sql) (in query: SELECT h3GetPentagonIndexes(20) AS indexes;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, int&&) @ 0x000000000e47c5a8 in /usr/bin/clickhouse 6. /build/src/Functions/h3GetPentagonIndexes.cpp:84: DB::(anonymous namespace)::FunctionH3GetPentagonIndexes::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eee4792 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:14:03.094091 [ 12919 ] {729e6a46-214c-4fb1-9ee6-a797c343ac89} TCPHandler: Code: 69. DB::Exception: The argument 'resolution' (20) of function h3GetPentagonIndexes is out of bounds because the maximum resolution in H3 library is 15: While processing h3GetPentagonIndexes(20) AS indexes. (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, int&&) @ 0x000000000e47c5a8 in /usr/bin/clickhouse 6. /build/src/Functions/h3GetPentagonIndexes.cpp:84: DB::(anonymous namespace)::FunctionH3GetPentagonIndexes::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eee4792 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:14:03.757870 [ 12919 ] {c0302674-784a-4647-aa3d-a83db9d4076e} executeQuery: Code: 36. DB::Exception: Wrong index name. Cannot find index `test_indes` to drop, may be you meant: ['test_index']. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33104) (comment: 02225_hints_for_indeices.sh) (in query: ALTER TABLE t DROP INDEX test_indes), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x000000000d9efb2c in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:555: DB::AlterCommand::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d58da53 in /usr/bin/clickhouse 7. /build/src/Storages/AlterCommands.cpp:929: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d590825 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9310c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:03.759406 [ 12919 ] {c0302674-784a-4647-aa3d-a83db9d4076e} TCPHandler: Code: 36. DB::Exception: Wrong index name. Cannot find index `test_indes` to drop, may be you meant: ['test_index']. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x000000000d9efb2c in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:555: DB::AlterCommand::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d58da53 in /usr/bin/clickhouse 7. /build/src/Storages/AlterCommands.cpp:929: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d590825 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9310c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:05.676954 [ 12919 ] {46427e83-e0ce-45da-a547-ecd648e48797} executeQuery: Code: 36. DB::Exception: Wrong index name. Cannot find index `test_indes` to insert after, may be you meant: ['test_index']. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33146) (comment: 02225_hints_for_indeices.sh) (in query: ALTER TABLE t ADD INDEX test_index1 n TYPE minmax GRANULARITY 4 AFTER test_indes), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x000000000d9efb2c in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:528: DB::AlterCommand::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d58d5bd in /usr/bin/clickhouse 7. /build/src/Storages/AlterCommands.cpp:929: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d590825 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9310c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:05.678814 [ 12919 ] {46427e83-e0ce-45da-a547-ecd648e48797} TCPHandler: Code: 36. DB::Exception: Wrong index name. Cannot find index `test_indes` to insert after, may be you meant: ['test_index']. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x000000000d9efb2c in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:528: DB::AlterCommand::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d58d5bd in /usr/bin/clickhouse 7. /build/src/Storages/AlterCommands.cpp:929: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d590825 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9310c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:11.121000 [ 12919 ] {1a8c5ea0-a892-4543-b2bd-798a7dfdd259} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 10.00. (TOO_MANY_ROWS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58894) (comment: 02201_use_skip_indexes_if_final.sql) (in query: -- { echoOn } SELECT * FROM data_02201 FINAL WHERE value = 1 SETTINGS use_skip_indexes=0, use_skip_indexes_if_final=0, max_rows_to_read=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8a5e39 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee9a1c3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1786: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8aa6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:11.121780 [ 12919 ] {1a8c5ea0-a892-4543-b2bd-798a7dfdd259} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 10.00. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8a5e39 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee9a1c3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1786: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8aa6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:11.144047 [ 12919 ] {33f78935-791e-400a-a41d-bf7c0c821737} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 10.00. (TOO_MANY_ROWS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58894) (comment: 02201_use_skip_indexes_if_final.sql) (in query: SELECT * FROM data_02201 FINAL WHERE value = 1 SETTINGS use_skip_indexes=1, use_skip_indexes_if_final=0, max_rows_to_read=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8a5e39 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee9a1c3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1786: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8aa6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:11.145089 [ 12919 ] {33f78935-791e-400a-a41d-bf7c0c821737} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 10.00. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8a5e39 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee9a1c3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1786: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8aa6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:11.164164 [ 12919 ] {ae838173-b5eb-44d0-ad69-440ac21e0f76} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 10.00. (TOO_MANY_ROWS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58894) (comment: 02201_use_skip_indexes_if_final.sql) (in query: SELECT * FROM data_02201 FINAL WHERE value = 1 SETTINGS use_skip_indexes=0, use_skip_indexes_if_final=1, max_rows_to_read=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8a5e39 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee9a1c3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1786: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8aa6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:11.165189 [ 12919 ] {ae838173-b5eb-44d0-ad69-440ac21e0f76} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 10.00. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8a5e39 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee9a1c3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1786: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8aa6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:15.011634 [ 1674 ] {565ec454-1a67-4415-8593-cffa1bdbbbda} executeQuery: Code: 43. DB::Exception: Illegal type Array(UInt8) of argument of function toUInt64: While processing dictGet('02176_test_simple_key_dictionary', 'value', [0]). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58984) (comment: 02176_dict_get_has_implicit_key_cast.sql) (in query: SELECT dictGet('02176_test_simple_key_dictionary', 'value', [0]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2103: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2dc586 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2db69e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 25. /build/src/Interpreters/castColumn.cpp:35: COW::immutable_ptr DB::castColumn<(DB::CastType)1>(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d055d23 in /usr/bin/clickhouse 26. /build/src/Interpreters/castColumn.cpp:46: DB::castColumnAccurate(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d055908 in /usr/bin/clickhouse 27. /build/src/Dictionaries/IDictionary.h:161: DB::IDictionary::convertKeyColumns(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, std::vector, std::allocator>>&) const @ 0x0000000017d094e0 in /usr/bin/clickhouse 28. /build/src/Functions/FunctionsExternalDictionaries.h:564: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc5e745 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 30. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 31. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 2024.10.22 10:14:15.012648 [ 1674 ] {565ec454-1a67-4415-8593-cffa1bdbbbda} TCPHandler: Code: 43. DB::Exception: Illegal type Array(UInt8) of argument of function toUInt64: While processing dictGet('02176_test_simple_key_dictionary', 'value', [0]). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2103: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2dc586 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2db69e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 25. /build/src/Interpreters/castColumn.cpp:35: COW::immutable_ptr DB::castColumn<(DB::CastType)1>(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d055d23 in /usr/bin/clickhouse 26. /build/src/Interpreters/castColumn.cpp:46: DB::castColumnAccurate(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d055908 in /usr/bin/clickhouse 27. /build/src/Dictionaries/IDictionary.h:161: DB::IDictionary::convertKeyColumns(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, std::vector, std::allocator>>&) const @ 0x0000000017d094e0 in /usr/bin/clickhouse 28. /build/src/Functions/FunctionsExternalDictionaries.h:564: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc5e745 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 30. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 31. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 2024.10.22 10:14:15.208675 [ 1674 ] {7cafc50c-c58f-4dbd-87f0-12403468c263} executeQuery: Code: 43. DB::Exception: Illegal type Array(UInt8) of argument of function toUInt64: While processing dictHas('02176_test_simple_key_dictionary', [0]). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58984) (comment: 02176_dict_get_has_implicit_key_cast.sql) (in query: SELECT dictHas('02176_test_simple_key_dictionary', [0]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2103: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2dc586 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2db69e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 25. /build/src/Interpreters/castColumn.cpp:35: COW::immutable_ptr DB::castColumn<(DB::CastType)1>(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d055d23 in /usr/bin/clickhouse 26. /build/src/Interpreters/castColumn.cpp:46: DB::castColumnAccurate(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d055908 in /usr/bin/clickhouse 27. /build/src/Dictionaries/IDictionary.h:161: DB::IDictionary::convertKeyColumns(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, std::vector, std::allocator>>&) const @ 0x0000000017d094e0 in /usr/bin/clickhouse 28. /build/src/Functions/FunctionsExternalDictionaries.h:281: DB::FunctionDictHas::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc6de43 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 30. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 31. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 2024.10.22 10:14:15.209661 [ 1674 ] {7cafc50c-c58f-4dbd-87f0-12403468c263} TCPHandler: Code: 43. DB::Exception: Illegal type Array(UInt8) of argument of function toUInt64: While processing dictHas('02176_test_simple_key_dictionary', [0]). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2103: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2dc586 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2db69e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 25. /build/src/Interpreters/castColumn.cpp:35: COW::immutable_ptr DB::castColumn<(DB::CastType)1>(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d055d23 in /usr/bin/clickhouse 26. /build/src/Interpreters/castColumn.cpp:46: DB::castColumnAccurate(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d055908 in /usr/bin/clickhouse 27. /build/src/Dictionaries/IDictionary.h:161: DB::IDictionary::convertKeyColumns(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, std::vector, std::allocator>>&) const @ 0x0000000017d094e0 in /usr/bin/clickhouse 28. /build/src/Functions/FunctionsExternalDictionaries.h:281: DB::FunctionDictHas::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc6de43 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 30. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 31. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 2024.10.22 10:14:15.464046 [ 1674 ] {bceb2bcf-f67e-4d10-9cbe-f9f8f082bcec} executeQuery: Code: 43. DB::Exception: Illegal type Array(UInt8) of argument of function toUInt64: While processing dictGet('02176_test_complex_key_dictionary', 'value', ([0], '0')). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58984) (comment: 02176_dict_get_has_implicit_key_cast.sql) (in query: SELECT dictGet('02176_test_complex_key_dictionary', 'value', tuple([0], '0'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2103: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2dc586 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2db69e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 25. /build/src/Interpreters/castColumn.cpp:35: COW::immutable_ptr DB::castColumn<(DB::CastType)1>(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d055d23 in /usr/bin/clickhouse 26. /build/src/Interpreters/castColumn.cpp:46: DB::castColumnAccurate(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d055908 in /usr/bin/clickhouse 27. /build/src/Dictionaries/IDictionary.h:161: DB::IDictionary::convertKeyColumns(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, std::vector, std::allocator>>&) const @ 0x0000000017d094e0 in /usr/bin/clickhouse 28. /build/src/Functions/FunctionsExternalDictionaries.h:564: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc5e745 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 30. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 31. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 2024.10.22 10:14:15.465350 [ 1674 ] {bceb2bcf-f67e-4d10-9cbe-f9f8f082bcec} TCPHandler: Code: 43. DB::Exception: Illegal type Array(UInt8) of argument of function toUInt64: While processing dictGet('02176_test_complex_key_dictionary', 'value', ([0], '0')). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2103: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2dc586 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2db69e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 25. /build/src/Interpreters/castColumn.cpp:35: COW::immutable_ptr DB::castColumn<(DB::CastType)1>(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d055d23 in /usr/bin/clickhouse 26. /build/src/Interpreters/castColumn.cpp:46: DB::castColumnAccurate(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d055908 in /usr/bin/clickhouse 27. /build/src/Dictionaries/IDictionary.h:161: DB::IDictionary::convertKeyColumns(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, std::vector, std::allocator>>&) const @ 0x0000000017d094e0 in /usr/bin/clickhouse 28. /build/src/Functions/FunctionsExternalDictionaries.h:564: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc5e745 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 30. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 31. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 2024.10.22 10:14:15.707476 [ 1674 ] {be27d106-95e9-4b9b-964e-809f167d5292} executeQuery: Code: 43. DB::Exception: Illegal type Array(UInt8) of argument of function toUInt64: While processing dictHas('02176_test_complex_key_dictionary', ([0], '0')). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58984) (comment: 02176_dict_get_has_implicit_key_cast.sql) (in query: SELECT dictHas('02176_test_complex_key_dictionary', tuple([0], '0'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2103: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2dc586 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2db69e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 25. /build/src/Interpreters/castColumn.cpp:35: COW::immutable_ptr DB::castColumn<(DB::CastType)1>(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d055d23 in /usr/bin/clickhouse 26. /build/src/Interpreters/castColumn.cpp:46: DB::castColumnAccurate(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d055908 in /usr/bin/clickhouse 27. /build/src/Dictionaries/IDictionary.h:161: DB::IDictionary::convertKeyColumns(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, std::vector, std::allocator>>&) const @ 0x0000000017d094e0 in /usr/bin/clickhouse 28. /build/src/Functions/FunctionsExternalDictionaries.h:281: DB::FunctionDictHas::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc6de43 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 30. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 31. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 2024.10.22 10:14:15.708475 [ 1674 ] {be27d106-95e9-4b9b-964e-809f167d5292} TCPHandler: Code: 43. DB::Exception: Illegal type Array(UInt8) of argument of function toUInt64: While processing dictHas('02176_test_complex_key_dictionary', ([0], '0')). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2103: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2dc586 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2db69e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 25. /build/src/Interpreters/castColumn.cpp:35: COW::immutable_ptr DB::castColumn<(DB::CastType)1>(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d055d23 in /usr/bin/clickhouse 26. /build/src/Interpreters/castColumn.cpp:46: DB::castColumnAccurate(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d055908 in /usr/bin/clickhouse 27. /build/src/Dictionaries/IDictionary.h:161: DB::IDictionary::convertKeyColumns(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, std::vector, std::allocator>>&) const @ 0x0000000017d094e0 in /usr/bin/clickhouse 28. /build/src/Functions/FunctionsExternalDictionaries.h:281: DB::FunctionDictHas::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc6de43 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 30. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 31. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 2024.10.22 10:14:16.914280 [ 672 ] {d5ed8638-5f9b-4b24-a3b1-6cb384eb5084} executeQuery: Code: 69. DB::Exception: The argument 'resolution' (16) of function h3NumHexagons is out of bounds because the maximum resolution in H3 library is 15: While processing h3NumHexagons(16). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59052) (comment: 02165_h3_num_hexagons.sql) (in query: SELECT h3NumHexagons(16);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, int&&) @ 0x000000000e47c5a8 in /usr/bin/clickhouse 6. /build/src/Functions/h3NumHexagons.cpp:78: DB::(anonymous namespace)::FunctionH3NumHexagons::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eefc77e in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:14:16.915279 [ 672 ] {d5ed8638-5f9b-4b24-a3b1-6cb384eb5084} TCPHandler: Code: 69. DB::Exception: The argument 'resolution' (16) of function h3NumHexagons is out of bounds because the maximum resolution in H3 library is 15: While processing h3NumHexagons(16). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, int&&) @ 0x000000000e47c5a8 in /usr/bin/clickhouse 6. /build/src/Functions/h3NumHexagons.cpp:78: DB::(anonymous namespace)::FunctionH3NumHexagons::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eefc77e in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:14:20.812113 [ 672 ] {6f884fd7-b396-4901-bcb7-3f9c4f1679c5} executeQuery: Code: 48. DB::Exception: Alter of type 'COMMENT_COLUMN' is not supported by storage Dictionary. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47468) (comment: 02155_dictionary_comment.sql) (in query: ALTER TABLE 02155_test_dictionary COMMENT COLUMN value 'value_column';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af4aecc in /usr/bin/clickhouse 6. /build/src/Storages/StorageDictionary.cpp:281: DB::StorageDictionary::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d651114 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:20.813158 [ 672 ] {6f884fd7-b396-4901-bcb7-3f9c4f1679c5} TCPHandler: Code: 48. DB::Exception: Alter of type 'COMMENT_COLUMN' is not supported by storage Dictionary. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af4aecc in /usr/bin/clickhouse 6. /build/src/Storages/StorageDictionary.cpp:281: DB::StorageDictionary::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d651114 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:21.204924 [ 672 ] {e7b23310-110d-458b-bc2f-619dc82f0ebf} executeQuery: Code: 48. DB::Exception: Alter of type 'COMMENT_COLUMN' is not supported by storage Dictionary. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47468) (comment: 02155_dictionary_comment.sql) (in query: ALTER TABLE 02155_test_dictionary_view COMMENT COLUMN value 'value_column';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af4aecc in /usr/bin/clickhouse 6. /build/src/Storages/StorageDictionary.cpp:281: DB::StorageDictionary::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d651114 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:21.205491 [ 672 ] {e7b23310-110d-458b-bc2f-619dc82f0ebf} TCPHandler: Code: 48. DB::Exception: Alter of type 'COMMENT_COLUMN' is not supported by storage Dictionary. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af4aecc in /usr/bin/clickhouse 6. /build/src/Storages/StorageDictionary.cpp:281: DB::StorageDictionary::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d651114 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:21.681698 [ 12916 ] {8987b058-e981-465e-8077-ff6268ad7a37} executeQuery: Code: 164. DB::Exception: default: Cannot execute query in readonly mode. (READONLY) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47488) (comment: 02157_readonly_system_suspend.sh) (in query: SYSTEM SUSPEND FOR 1 SECOND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:520: auto bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()<>(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b050ab7 in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:601: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const @ 0x000000001b04ec1b in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:625: bool DB::ContextAccess::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001b0221c2 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:698: DB::ContextAccess::checkAccess(DB::AccessFlags const&) const @ 0x000000001b01d4fd in /usr/bin/clickhouse 10. /build/src/Interpreters/Context.cpp:1200: void DB::Context::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001bde91b6 in /usr/bin/clickhouse 11. /build/src/Interpreters/Context.cpp:1203: DB::Context::checkAccess(DB::AccessFlags const&) const @ 0x000000001bdc95dd in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSystemQuery.cpp:298: DB::InterpreterSystemQuery::execute() @ 0x000000001cbdc5a5 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:21.682388 [ 12916 ] {8987b058-e981-465e-8077-ff6268ad7a37} TCPHandler: Code: 164. DB::Exception: default: Cannot execute query in readonly mode. (READONLY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:520: auto bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()<>(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b050ab7 in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:601: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const @ 0x000000001b04ec1b in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:625: bool DB::ContextAccess::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001b0221c2 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:698: DB::ContextAccess::checkAccess(DB::AccessFlags const&) const @ 0x000000001b01d4fd in /usr/bin/clickhouse 10. /build/src/Interpreters/Context.cpp:1200: void DB::Context::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001bde91b6 in /usr/bin/clickhouse 11. /build/src/Interpreters/Context.cpp:1203: DB::Context::checkAccess(DB::AccessFlags const&) const @ 0x000000001bdc95dd in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSystemQuery.cpp:298: DB::InterpreterSystemQuery::execute() @ 0x000000001cbdc5a5 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:29.598041 [ 12917 ] {test_s5adtzxc_TEST02132KILL_QUERY1} executeQuery: Code: 394. DB::Exception: Query was cancelled: While processing (SELECT max(number) FROM system.numbers) AS _subquery27: While processing ((SELECT max(number) FROM system.numbers) AS _subquery27) + 1. (QUERY_WAS_CANCELLED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49628) (comment: 02136_kill_scalar_queries.sh) (in query: select (SELECT max(number) from system.numbers) + 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001ccae2fb in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e6d4ca0 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e6d537c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d4c16 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:29.599920 [ 12917 ] {test_s5adtzxc_TEST02132KILL_QUERY1} TCPHandler: Code: 394. DB::Exception: Query was cancelled: While processing (SELECT max(number) FROM system.numbers) AS _subquery27: While processing ((SELECT max(number) FROM system.numbers) AS _subquery27) + 1. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001ccae2fb in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e6d4ca0 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e6d537c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d4c16 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:31.883938 [ 12918 ] {7035d472-7a28-4fff-811d-e1fb4d80e1c4} executeQuery: Code: 53. DB::Exception: Function dictGetString dictionary attribute has different type Nullable(String) expected String: While processing dictGetString('02125_test_dictionary', 'value', toUInt64(0)). (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49722) (comment: 02125_dict_get_type_nullable_fix.sql) (in query: SELECT dictGetString('02125_test_dictionary', 'value', toUInt64(0));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsExternalDictionaries.h:739: DB::FunctionDictGetImpl::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc865e8 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:14:31.885010 [ 12918 ] {7035d472-7a28-4fff-811d-e1fb4d80e1c4} TCPHandler: Code: 53. DB::Exception: Function dictGetString dictionary attribute has different type Nullable(String) expected String: While processing dictGetString('02125_test_dictionary', 'value', toUInt64(0)). (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsExternalDictionaries.h:739: DB::FunctionDictGetImpl::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc865e8 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:14:33.777067 [ 672 ] {2e76d13c-a084-482d-905e-4ee183b52470} executeQuery: Code: 252. DB::Exception: Too many partitions for single INSERT block (more than 1). The limit is controlled by 'max_partitions_per_insert_block' setting. Large number of partitions is a common misconception. It will lead to severe negative performance impact, including slow server startup, slow INSERT queries and slow SELECT queries. Recommended total number of partitions for a table is under 1000..10000. Please note, that partitioning is not intended to speed up SELECT queries (ORDER BY key is sufficient to make range queries fast). Partitions are intended for data manipulation (DROP PARTITION, etc).: while pushing to view test_v00vf3yn.test_mv_b (71886bf7-fd8b-4f62-aee5-d83d6fb14295). (TOO_MANY_PARTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49744) (comment: 02124_insert_deduplication_token_materialized_views.sql) (in query: INSERT INTO test SELECT 'case1', number%3, 1 FROM numbers(9);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:85: DB::(anonymous namespace)::buildScatterSelector(std::vector> const&, DB::PODArray, 0ul, 0ul>&, DB::PODArray, 63ul, 64ul>&, unsigned long, std::shared_ptr) @ 0x000000001e1ea7dd in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:262: DB::MergeTreeDataWriter::splitBlockIntoParts(DB::Block const&, unsigned long, std::shared_ptr const&, std::shared_ptr, std::shared_ptr) @ 0x000000001e1e8d5c in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:284: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e322f05 in /usr/bin/clickhouse 9. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 26. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e6d2ac7 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6d2a35 in /usr/bin/clickhouse 2024.10.22 10:14:33.780576 [ 672 ] {2e76d13c-a084-482d-905e-4ee183b52470} TCPHandler: Code: 252. DB::Exception: Too many partitions for single INSERT block (more than 1). The limit is controlled by 'max_partitions_per_insert_block' setting. Large number of partitions is a common misconception. It will lead to severe negative performance impact, including slow server startup, slow INSERT queries and slow SELECT queries. Recommended total number of partitions for a table is under 1000..10000. Please note, that partitioning is not intended to speed up SELECT queries (ORDER BY key is sufficient to make range queries fast). Partitions are intended for data manipulation (DROP PARTITION, etc).: while pushing to view test_v00vf3yn.test_mv_b (71886bf7-fd8b-4f62-aee5-d83d6fb14295). (TOO_MANY_PARTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:85: DB::(anonymous namespace)::buildScatterSelector(std::vector> const&, DB::PODArray, 0ul, 0ul>&, DB::PODArray, 63ul, 64ul>&, unsigned long, std::shared_ptr) @ 0x000000001e1ea7dd in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:262: DB::MergeTreeDataWriter::splitBlockIntoParts(DB::Block const&, unsigned long, std::shared_ptr const&, std::shared_ptr, std::shared_ptr) @ 0x000000001e1e8d5c in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:284: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e322f05 in /usr/bin/clickhouse 9. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 26. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e6d2ac7 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6d2a35 in /usr/bin/clickhouse 2024.10.22 10:14:33.930197 [ 12929 ] {test_s5adtzxc_TEST02132KILL_QUERY2} executeQuery: Code: 394. DB::Exception: Query was cancelled: While processing (SELECT number FROM system.numbers WHERE number = 1000000000000) AS _subquery28. (QUERY_WAS_CANCELLED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49726) (comment: 02136_kill_scalar_queries.sh) (in query: SELECT (SELECT number FROM system.numbers WHERE number = 1000000000000);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001ccae2fb in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e6d4ca0 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e6d537c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d4c16 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:33.931714 [ 12929 ] {test_s5adtzxc_TEST02132KILL_QUERY2} TCPHandler: Code: 394. DB::Exception: Query was cancelled: While processing (SELECT number FROM system.numbers WHERE number = 1000000000000) AS _subquery28. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001ccae2fb in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e6d4ca0 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e6d537c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d4c16 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:34.617837 [ 672 ] {e7e14b22-158d-4d13-b702-0b163b599ebe} executeQuery: Code: 252. DB::Exception: Too many partitions for single INSERT block (more than 1). The limit is controlled by 'max_partitions_per_insert_block' setting. Large number of partitions is a common misconception. It will lead to severe negative performance impact, including slow server startup, slow INSERT queries and slow SELECT queries. Recommended total number of partitions for a table is under 1000..10000. Please note, that partitioning is not intended to speed up SELECT queries (ORDER BY key is sufficient to make range queries fast). Partitions are intended for data manipulation (DROP PARTITION, etc).: while pushing to view test_v00vf3yn.test_mv_b (71886bf7-fd8b-4f62-aee5-d83d6fb14295). (TOO_MANY_PARTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49744) (comment: 02124_insert_deduplication_token_materialized_views.sql) (in query: INSERT INTO test SELECT 'case2', number%3, 1 FROM numbers(9) ;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:85: DB::(anonymous namespace)::buildScatterSelector(std::vector> const&, DB::PODArray, 0ul, 0ul>&, DB::PODArray, 63ul, 64ul>&, unsigned long, std::shared_ptr) @ 0x000000001e1ea7dd in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:262: DB::MergeTreeDataWriter::splitBlockIntoParts(DB::Block const&, unsigned long, std::shared_ptr const&, std::shared_ptr, std::shared_ptr) @ 0x000000001e1e8d5c in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:284: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e322f05 in /usr/bin/clickhouse 9. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 26. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e6d2ac7 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6d2a35 in /usr/bin/clickhouse 2024.10.22 10:14:34.623511 [ 672 ] {e7e14b22-158d-4d13-b702-0b163b599ebe} TCPHandler: Code: 252. DB::Exception: Too many partitions for single INSERT block (more than 1). The limit is controlled by 'max_partitions_per_insert_block' setting. Large number of partitions is a common misconception. It will lead to severe negative performance impact, including slow server startup, slow INSERT queries and slow SELECT queries. Recommended total number of partitions for a table is under 1000..10000. Please note, that partitioning is not intended to speed up SELECT queries (ORDER BY key is sufficient to make range queries fast). Partitions are intended for data manipulation (DROP PARTITION, etc).: while pushing to view test_v00vf3yn.test_mv_b (71886bf7-fd8b-4f62-aee5-d83d6fb14295). (TOO_MANY_PARTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:85: DB::(anonymous namespace)::buildScatterSelector(std::vector> const&, DB::PODArray, 0ul, 0ul>&, DB::PODArray, 63ul, 64ul>&, unsigned long, std::shared_ptr) @ 0x000000001e1ea7dd in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:262: DB::MergeTreeDataWriter::splitBlockIntoParts(DB::Block const&, unsigned long, std::shared_ptr const&, std::shared_ptr, std::shared_ptr) @ 0x000000001e1e8d5c in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:284: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e322f05 in /usr/bin/clickhouse 9. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 26. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e6d2ac7 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6d2a35 in /usr/bin/clickhouse 2024.10.22 10:14:35.361466 [ 672 ] {ebf633cb-f3b3-4a8f-81ba-e8905f609cf4} executeQuery: Code: 252. DB::Exception: Too many partitions for single INSERT block (more than 1). The limit is controlled by 'max_partitions_per_insert_block' setting. Large number of partitions is a common misconception. It will lead to severe negative performance impact, including slow server startup, slow INSERT queries and slow SELECT queries. Recommended total number of partitions for a table is under 1000..10000. Please note, that partitioning is not intended to speed up SELECT queries (ORDER BY key is sufficient to make range queries fast). Partitions are intended for data manipulation (DROP PARTITION, etc).: while pushing to view test_v00vf3yn.test_mv_b (71886bf7-fd8b-4f62-aee5-d83d6fb14295). (TOO_MANY_PARTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49744) (comment: 02124_insert_deduplication_token_materialized_views.sql) (in query: INSERT INTO test SELECT 'case3', number%3, 1 FROM numbers(9) SETTINGS insert_deduplication_token = 'case3test1';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:85: DB::(anonymous namespace)::buildScatterSelector(std::vector> const&, DB::PODArray, 0ul, 0ul>&, DB::PODArray, 63ul, 64ul>&, unsigned long, std::shared_ptr) @ 0x000000001e1ea7dd in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:262: DB::MergeTreeDataWriter::splitBlockIntoParts(DB::Block const&, unsigned long, std::shared_ptr const&, std::shared_ptr, std::shared_ptr) @ 0x000000001e1e8d5c in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:284: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e322f05 in /usr/bin/clickhouse 9. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 26. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e6d2ac7 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6d2a35 in /usr/bin/clickhouse 2024.10.22 10:14:35.366356 [ 672 ] {ebf633cb-f3b3-4a8f-81ba-e8905f609cf4} TCPHandler: Code: 252. DB::Exception: Too many partitions for single INSERT block (more than 1). The limit is controlled by 'max_partitions_per_insert_block' setting. Large number of partitions is a common misconception. It will lead to severe negative performance impact, including slow server startup, slow INSERT queries and slow SELECT queries. Recommended total number of partitions for a table is under 1000..10000. Please note, that partitioning is not intended to speed up SELECT queries (ORDER BY key is sufficient to make range queries fast). Partitions are intended for data manipulation (DROP PARTITION, etc).: while pushing to view test_v00vf3yn.test_mv_b (71886bf7-fd8b-4f62-aee5-d83d6fb14295). (TOO_MANY_PARTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:85: DB::(anonymous namespace)::buildScatterSelector(std::vector> const&, DB::PODArray, 0ul, 0ul>&, DB::PODArray, 63ul, 64ul>&, unsigned long, std::shared_ptr) @ 0x000000001e1ea7dd in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:262: DB::MergeTreeDataWriter::splitBlockIntoParts(DB::Block const&, unsigned long, std::shared_ptr const&, std::shared_ptr, std::shared_ptr) @ 0x000000001e1e8d5c in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:284: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e322f05 in /usr/bin/clickhouse 9. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 26. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e6d2ac7 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6d2a35 in /usr/bin/clickhouse 2024.10.22 10:14:35.988925 [ 672 ] {b121ff17-bd4a-4474-9a85-705624a463e0} executeQuery: Code: 252. DB::Exception: Too many partitions for single INSERT block (more than 1). The limit is controlled by 'max_partitions_per_insert_block' setting. Large number of partitions is a common misconception. It will lead to severe negative performance impact, including slow server startup, slow INSERT queries and slow SELECT queries. Recommended total number of partitions for a table is under 1000..10000. Please note, that partitioning is not intended to speed up SELECT queries (ORDER BY key is sufficient to make range queries fast). Partitions are intended for data manipulation (DROP PARTITION, etc).: while pushing to view test_v00vf3yn.test_mv_b (71886bf7-fd8b-4f62-aee5-d83d6fb14295). (TOO_MANY_PARTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49744) (comment: 02124_insert_deduplication_token_materialized_views.sql) (in query: INSERT INTO test SELECT 'case4', number%3, 1 FROM numbers(9) SETTINGS insert_deduplication_token = 'case4test1' ;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:85: DB::(anonymous namespace)::buildScatterSelector(std::vector> const&, DB::PODArray, 0ul, 0ul>&, DB::PODArray, 63ul, 64ul>&, unsigned long, std::shared_ptr) @ 0x000000001e1ea7dd in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:262: DB::MergeTreeDataWriter::splitBlockIntoParts(DB::Block const&, unsigned long, std::shared_ptr const&, std::shared_ptr, std::shared_ptr) @ 0x000000001e1e8d5c in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:284: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e322f05 in /usr/bin/clickhouse 9. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 26. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e6d2ac7 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6d2a35 in /usr/bin/clickhouse 2024.10.22 10:14:35.993737 [ 672 ] {b121ff17-bd4a-4474-9a85-705624a463e0} TCPHandler: Code: 252. DB::Exception: Too many partitions for single INSERT block (more than 1). The limit is controlled by 'max_partitions_per_insert_block' setting. Large number of partitions is a common misconception. It will lead to severe negative performance impact, including slow server startup, slow INSERT queries and slow SELECT queries. Recommended total number of partitions for a table is under 1000..10000. Please note, that partitioning is not intended to speed up SELECT queries (ORDER BY key is sufficient to make range queries fast). Partitions are intended for data manipulation (DROP PARTITION, etc).: while pushing to view test_v00vf3yn.test_mv_b (71886bf7-fd8b-4f62-aee5-d83d6fb14295). (TOO_MANY_PARTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:85: DB::(anonymous namespace)::buildScatterSelector(std::vector> const&, DB::PODArray, 0ul, 0ul>&, DB::PODArray, 63ul, 64ul>&, unsigned long, std::shared_ptr) @ 0x000000001e1ea7dd in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:262: DB::MergeTreeDataWriter::splitBlockIntoParts(DB::Block const&, unsigned long, std::shared_ptr const&, std::shared_ptr, std::shared_ptr) @ 0x000000001e1e8d5c in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:284: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e322f05 in /usr/bin/clickhouse 9. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 26. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e6d2ac7 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6d2a35 in /usr/bin/clickhouse 2024.10.22 10:14:46.783125 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:46.787449 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:46.810217 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:46.822946 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:46.825123 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:46.841246 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:46.847226 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:46.849042 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:46.851396 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:46.874919 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:46.887436 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:46.940490 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:46.963421 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:46.970343 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:46.971233 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.019917 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.020142 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.034218 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.045099 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.049419 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.065070 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.073165 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.075182 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.077974 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.093877 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.112340 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.113333 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.119466 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.129369 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.131130 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.134761 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.137473 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.143347 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.160152 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.166537 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.169269 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.181767 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.185294 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.188016 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.212671 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.221396 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.232137 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.245122 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.261252 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.267735 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.284873 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.297524 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.302796 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.310277 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.311071 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.328794 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.354561 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.355328 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.358340 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.364845 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.389938 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.401937 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.404194 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.411442 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.417018 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.419322 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.434113 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.437433 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.451750 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.459430 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.462372 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.471259 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.473390 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.473827 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.487308 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.492619 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.510701 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.538739 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.550565 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.555412 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.577381 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.578571 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.615719 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.623557 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.638706 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.646504 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.649179 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.654883 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.655945 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.666688 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.671618 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.672420 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.682824 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.690222 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.707248 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.739828 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.749114 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.752620 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.758658 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.763428 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.789245 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.790419 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.793824 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.799289 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.832625 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.858215 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.879152 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.881676 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.881721 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.897329 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.900663 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.924600 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.949149 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.949683 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.960016 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.961001 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.971089 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.973617 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.981075 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.983013 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.993100 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:47.999000 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.006614 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.025814 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.030848 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.039192 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.057350 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.078432 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.100549 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.106141 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.141451 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.142672 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.156383 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.166358 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.225340 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.225683 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.234692 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.238746 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.241743 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.249527 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.257655 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.288867 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.296056 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.302712 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.320827 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.345444 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.363542 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.365257 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.370039 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.396117 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.418898 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.438768 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.478451 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.479340 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.481256 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.492784 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.569646 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.569674 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.574754 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.605226 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.622748 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.637008 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.638621 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.650950 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.720838 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.720924 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.770698 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.783553 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.788263 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.813108 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.814172 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.816220 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.817757 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.822093 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.825818 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.829726 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.838032 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.839923 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.840449 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.844584 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.850610 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.851170 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.867268 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.872575 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.888741 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.895485 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.901276 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.907591 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.921806 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.935090 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.943905 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.961628 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.969581 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:48.995374 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.009210 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.041450 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.054583 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.067004 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.070056 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.071271 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.079033 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.100007 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.103199 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.105353 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.108846 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.129120 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.133020 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.174946 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.265820 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.268815 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.282719 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.298042 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.311435 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.312665 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.342454 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.354443 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.371895 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.392164 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.396252 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.396608 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.423486 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.442294 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.479856 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.496359 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.519463 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.547502 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.547723 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.552621 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.584413 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.643099 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.649441 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.651367 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.653877 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.674168 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.680268 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.682933 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.698924 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.699697 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.733222 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.735462 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.736746 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.748506 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.752216 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.756836 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.785342 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.796707 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.818344 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.819837 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.825196 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.830069 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.880168 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.891725 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.928221 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.952948 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.959230 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.965449 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.971021 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.972613 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.983596 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.986197 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:49.998894 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.004041 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.006430 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.021201 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.027045 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.035573 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.045239 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.045523 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.061440 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.092855 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.092996 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.100333 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.107667 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.118557 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.130536 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.135650 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.147187 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.152655 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.162722 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.169159 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.171925 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.172704 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.195351 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.211921 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.219832 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.223012 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.233307 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.235203 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.242492 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.250574 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.252739 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.275481 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.277763 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.281059 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.302882 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.306650 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.325225 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.332283 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.348341 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.368008 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.370865 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.378803 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.387236 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.394717 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.444113 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.508692 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.511849 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.515986 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.523854 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.530705 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.552365 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.562599 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.562900 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.566081 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.572259 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.591038 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.597947 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.615762 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.616745 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.630855 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.658933 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.686584 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.696773 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.725602 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.793817 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.851816 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.854312 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.860859 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.866047 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.869565 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.872394 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.880713 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.885877 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.903551 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.907484 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.918003 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.930119 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.953733 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.973032 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.982668 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.994670 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:50.997964 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.003756 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.033796 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.036831 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.048646 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.052613 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.071629 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.080712 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.125757 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.138947 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.145690 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.174826 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.177815 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.182228 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.185373 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.197116 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.206272 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.222598 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.232465 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.251636 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.252357 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.257860 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.261378 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.267770 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.284234 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.287512 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.289752 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.294564 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.315257 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.340120 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.352083 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.355237 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.361971 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.381449 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.384976 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.393817 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.403574 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.407250 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.409482 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.411018 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.415032 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.426467 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.444728 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.446974 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.456325 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.464573 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.475473 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.476399 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.482814 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.516957 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.539387 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.544739 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.554050 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.559473 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.561143 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.561794 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.562854 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.567757 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.589329 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.595446 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.611451 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.613151 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.619034 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.621243 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.630794 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.633449 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.636021 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.647620 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.649337 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.653487 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.663669 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.680189 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.685869 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.696859 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.699551 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.711172 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.719474 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.725242 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.733515 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.763117 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.765336 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.769202 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.819978 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.829893 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.866481 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.874092 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.879390 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.882080 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.921757 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.934982 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.937970 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.965320 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.966399 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:51.968369 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.045248 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.056212 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.068598 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.074578 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.099707 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.100699 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.105868 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.107824 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.125836 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.179649 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.182251 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.192992 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.210237 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.215162 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.217063 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.222451 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.240035 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.243816 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.264647 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.285215 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.295387 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.319663 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.341247 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.343437 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.358011 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.363918 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.365163 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.367825 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.396660 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.401669 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.403782 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.417980 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.419432 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.429349 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.446171 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.446584 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.456855 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.457858 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.463435 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.465695 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.476495 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.483621 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.490106 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.520973 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.527146 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.529412 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.537766 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.546345 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.553983 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.561236 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.566264 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.579338 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.580565 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.582249 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.582430 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.583119 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.600180 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.632566 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.638410 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.645248 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.649396 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.659175 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.667317 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.684610 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.690575 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.766075 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.776111 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.803092 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.805348 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.806017 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.845689 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.890228 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.891593 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.897727 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.899040 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.903745 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.910315 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.912954 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.950968 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.960246 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.968375 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.969036 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.974221 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.979902 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:52.986732 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.000984 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.006918 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.010064 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.039170 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.045867 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.049338 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.063611 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.109328 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.114130 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.140066 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.160880 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.165453 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.167871 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.183508 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.193079 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.199522 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.205518 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.212442 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.216259 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.221826 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.230797 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.245967 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.255678 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.280944 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.283576 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.289299 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.297085 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.306843 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.324453 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.365132 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.383556 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.408900 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.410330 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.417957 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.428347 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.464186 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.468225 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.486274 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.498348 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.522271 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.529421 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.539694 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.544154 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.562703 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.577331 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.630449 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.631854 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.644325 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.653766 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.660812 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.662034 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.663977 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.699007 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.709876 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.741001 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.746259 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.783894 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.807263 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.819950 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.825674 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.863193 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.886653 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.891317 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.893407 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.954321 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.954397 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.960404 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.968267 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.974705 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.983103 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.994553 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:53.997061 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.037819 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.075915 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.081296 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.082140 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.120106 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.125158 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.152264 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.177712 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.180360 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.192417 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.196389 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.197508 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.200941 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.216326 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.233206 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.247539 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.294181 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.295648 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.312450 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.334680 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.343617 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.349699 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.353307 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.369796 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.382273 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.386209 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.387402 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.420139 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.470896 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.479648 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.480811 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.493677 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.539423 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.540121 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.608115 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.622771 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.623924 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.641011 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.649390 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.656181 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.668035 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.668856 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.683047 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.697625 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.715740 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.723265 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.729176 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.729639 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.735166 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.748186 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.758924 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.760502 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.784399 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.789836 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.797603 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.800630 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.802842 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.814478 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.816057 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.820620 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.864663 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.911811 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.920944 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.938907 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.945101 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:54.947846 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.023384 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.061374 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.062976 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.072963 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.079292 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.086026 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.105036 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.114569 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.124504 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.139626 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.164632 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.173362 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.177815 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.213682 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.249906 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.278597 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.301658 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.330550 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.339443 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.347145 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.372005 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.391144 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.405479 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.406426 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.416081 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.419830 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.444863 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.451996 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.494105 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.497114 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.498236 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.504725 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.508067 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.522711 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.537074 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.538664 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.540911 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.543624 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.546990 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.553732 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.556464 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.558900 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.562301 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.564569 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.567785 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.618564 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.635097 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.655884 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.672039 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.693947 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.699797 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.705498 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.743230 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.745423 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.753502 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.840327 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.845734 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.857597 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.862125 [ 672 ] {9ce7d03d-ab85-439a-9bb6-75035e9a8e2c} executeQuery: Code: 1. DB::Exception: Set `store_polygon_key_column` setting in dictionary configuration to true to support reading from PolygonDictionary. (UNSUPPORTED_METHOD) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:36256) (comment: 02097_polygon_dictionary_store_key.sql) (in query: SELECT * FROM polygons_test_dictionary_no_option;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [118]) @ 0x000000001849c15e in /usr/bin/clickhouse 6. /build/src/Dictionaries/PolygonDictionary.cpp:150: DB::IPolygonDictionary::read(std::vector> const&, unsigned long, unsigned long) const @ 0x00000000184908f4 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDictionary.cpp:178: DB::StorageDictionary::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d64ffc5 in /usr/bin/clickhouse 8. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:55.863025 [ 672 ] {9ce7d03d-ab85-439a-9bb6-75035e9a8e2c} TCPHandler: Code: 1. DB::Exception: Set `store_polygon_key_column` setting in dictionary configuration to true to support reading from PolygonDictionary. (UNSUPPORTED_METHOD), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [118]) @ 0x000000001849c15e in /usr/bin/clickhouse 6. /build/src/Dictionaries/PolygonDictionary.cpp:150: DB::IPolygonDictionary::read(std::vector> const&, unsigned long, unsigned long) const @ 0x00000000184908f4 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDictionary.cpp:178: DB::StorageDictionary::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d64ffc5 in /usr/bin/clickhouse 8. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:55.869363 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.882771 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.896621 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.909269 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.910558 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.936002 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.936127 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.939443 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.966415 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.968137 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.982043 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.983064 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:55.985643 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.011206 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.024309 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.024831 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.042609 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.098119 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.109490 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.115046 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.117783 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.121514 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.136914 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.140474 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.143835 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.144350 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.148243 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.180055 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.182403 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.217330 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.219766 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.221645 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.227819 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.234999 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.235936 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.245224 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.256576 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.278781 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.298760 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.304886 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.315677 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.328467 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.338156 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.340769 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.361008 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.363131 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.380943 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.381851 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.399736 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.407660 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.413661 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.429706 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.449833 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.455893 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.462863 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.488730 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.495305 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.497247 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.513072 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.517187 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.536210 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.539493 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.545390 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.564350 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.580470 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.598542 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.604866 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.618936 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.649718 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.662886 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.734079 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.736615 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.769980 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.778415 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.793783 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.803477 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.833217 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.843740 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.846180 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.852672 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.864732 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.877819 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.922753 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.935002 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.941457 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.977192 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.988072 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.990349 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:56.991022 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.029608 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.034219 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.043234 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.077306 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.080972 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.082741 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.110310 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.116860 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.119542 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.159745 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.166580 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.169334 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.172502 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.175371 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.175608 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.182425 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.182744 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.200744 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.247799 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.254202 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.279692 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.298164 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.332697 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.335075 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.341031 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.375330 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.381606 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.382125 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.413144 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.418782 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.421482 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.427179 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.467334 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.482442 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.500783 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.501145 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.505335 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.521452 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.529150 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.542036 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.553486 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.589976 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.592435 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.601141 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.601435 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.604228 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.620004 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.634876 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.641342 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.643853 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.650580 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.661128 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.709000 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.727873 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.744352 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.749183 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.761036 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.761295 [ 1139 ] {58376ada-1770-40fd-b1af-de872e859f55} executeQuery: Code: 57. DB::Exception: Table test_bt2rlx79.test_table4 already exists. (TABLE_ALREADY_EXISTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51120) (comment: 02122_4letter_words_stress_zookeeper.sh) (in query: CREATE TABLE test_table4 (`key` UInt64, `value1` UInt8, `value2` UInt8) ENGINE = ReplicatedMergeTree('/clickhouse/tables/02122_4letter_words_stress_zookeeper_test_bt2rlx79/test_table4', '0') ORDER BY key SETTINGS index_granularity = 58512, min_bytes_for_wide_part = 959122837, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 8559, prefer_fetch_merged_part_size_threshold = 1, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 100, min_merge_bytes_to_use_direct_io = 1, index_granularity_bytes = 4071945, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 48682, primary_key_compress_block_size = 29936), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x0000000018447be8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1349: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7f8915 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:57.765294 [ 1139 ] {58376ada-1770-40fd-b1af-de872e859f55} TCPHandler: Code: 57. DB::Exception: Table test_bt2rlx79.test_table4 already exists. (TABLE_ALREADY_EXISTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x0000000018447be8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1349: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7f8915 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:14:57.766601 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.770694 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.771800 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.776062 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.846213 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.874136 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.895337 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.897907 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.900687 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.910453 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.919725 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.928052 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.932790 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.943609 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.955250 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.961560 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.964761 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.990862 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:57.994599 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.004357 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.020821 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.029234 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.031898 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.053220 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.064829 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.065088 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.067645 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.073517 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.076842 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.093466 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.096554 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.100467 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.116226 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.135849 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.156382 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.158883 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.168917 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.172115 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.178093 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.183157 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.202751 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.235696 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.240700 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.247719 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.251006 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.272954 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.289745 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.397493 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.409040 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.414722 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.416726 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.458829 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.467787 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.474480 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.500169 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.507824 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.515152 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.522973 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.534630 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.536954 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.547017 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.573772 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.576957 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.578691 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.589808 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.602054 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.607864 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.623718 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.630797 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.646694 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.648506 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.649236 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.657205 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.673895 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.688210 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.692479 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.695185 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.695456 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.700358 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.708838 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.712972 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.724134 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.779936 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.805507 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.814209 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.824696 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.832899 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.850017 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.859524 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.860604 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.867898 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.869457 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.874333 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.878910 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.891585 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.900648 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.910840 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.923906 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.939978 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.955738 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.968536 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.989323 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:58.998075 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.003674 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.031601 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.034148 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.074415 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.087760 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.089371 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.134359 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.152555 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.157963 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.158036 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.162965 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.174598 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.179068 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.183046 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.187872 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.191090 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.194108 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.202333 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.204084 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.210952 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.224423 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.230163 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.238406 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.251354 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.268995 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.274345 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.278494 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.289270 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.308622 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.311616 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.326310 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.351200 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.364608 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.389278 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.394758 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.398205 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.398966 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.402124 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.422897 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.432154 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.451550 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.462195 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.476072 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.500371 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.502197 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.541419 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.550142 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.557466 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.574438 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.621433 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.641260 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.646529 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.668770 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.669726 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.680810 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.692943 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.702180 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.731485 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.742800 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.743137 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.775312 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.775896 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.795916 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.799386 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.809169 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.839607 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.862201 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.863094 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.865129 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.874382 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.887817 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.890916 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.896485 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.919867 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.952799 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.967571 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.971635 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.975623 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.980002 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:14:59.998849 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.029736 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.031087 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.042484 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.044748 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.047548 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.076549 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.110953 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.152446 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.153090 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.167822 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.239750 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.242712 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.247799 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.267315 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.270767 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.282874 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.295919 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.309789 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.327004 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.359070 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.365911 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.368815 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.375234 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.413417 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.419522 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.419876 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.425584 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.429716 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.440714 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.444427 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.464746 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.469309 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.472752 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.520797 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.524718 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.529498 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.546472 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.557295 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.562838 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.574640 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.577728 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.636893 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.651451 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.656468 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.669243 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.687547 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.695963 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.697108 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.709600 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.709777 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.729391 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.757152 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.760094 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.770116 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.788982 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.795535 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.838586 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.860079 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.872929 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.884346 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.893076 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.919258 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.923832 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.950089 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.967002 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.971740 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.978090 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:00.988668 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.010373 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.012551 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.016531 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.028347 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.034273 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.047133 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.064123 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.105825 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.113282 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.114676 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.134292 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.150728 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.155509 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.173833 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.181086 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.188207 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.208982 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.218617 [ 12922 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.235990 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.244640 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.246273 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.265091 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.304316 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.309984 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.349852 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.352866 [ 5625 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.358010 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.382644 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.386875 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.393821 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.399261 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.402064 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.450266 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.450926 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.461979 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.501308 [ 12917 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.538075 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.541035 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.550864 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.557808 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.577317 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.579717 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.582750 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.588960 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.607940 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.615523 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.628080 [ 12918 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.628720 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.631071 [ 6967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.637990 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.640855 [ 12916 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.642838 [ 1674 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.651276 [ 12925 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.677995 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.689628 [ 1139 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.700810 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.703400 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.730378 [ 12933 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.733102 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.741325 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.748740 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.749921 [ 672 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.751737 [ 12929 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.770246 [ 12919 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.10.22 10:15:01.784596 [ 12917 ] {} ServerErrorHandler: Code: 210. DB::NetException: Connection reset by peer, while reading from socket ([::1]:51230). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000013cf152c in /usr/bin/clickhouse 6. /build/src/IO/ReadBufferFromPocoSocket.cpp:86: DB::ReadBufferFromPocoSocket::nextImpl() @ 0x0000000013cf07a0 in /usr/bin/clickhouse 7. /build/src/IO/ReadBuffer.h:71: DB::ReadBuffer::next() @ 0x000000000b21bd7c in /usr/bin/clickhouse 8. /build/src/IO/ReadBuffer.h:105: DB::TCPHandler::runImpl() @ 0x000000001e6467c1 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 10. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 12. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 15. ? @ 0x00007f1a0debbac3 in ? 16. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:15:02.810175 [ 5625 ] {6e3e48ae-6a9b-44a6-995d-e67225f43bb5} executeQuery: Code: 47. DB::Exception: Missing columns: 'test_01103.t1_distr.id' while processing query: '_CAST(now(([NULL, NULL, NULL, [-2147483648], [NULL, NULL, NULL, NULL, NULL, NULL, NULL]] AND (1048576 AND NULL) AND (NULL AND 1048575 AND NULL AND -2147483649) AND NULL) IN (test_01103.t1_distr.id)) AS b_tmp_alter9225075967929847967, 'DateTime') AS b, b_tmp_alter9225075967929847967', required columns: 'test_01103.t1_distr.id' 'test_01103.t1_distr.id': default expression and column type are incompatible. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51254) (comment: 02041_test_fuzzy_alter.sql) (in query: ALTER TABLE alter_table MODIFY COLUMN `b` DateTime DEFAULT now(([NULL, NULL, NULL, [-2147483648], [NULL, NULL, NULL, NULL, NULL, NULL, NULL]] AND (1048576 AND NULL) AND (NULL AND 1048575 AND NULL AND -2147483649) AND NULL) IN (test_01103.t1_distr.id));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1355: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa6838 in /usr/bin/clickhouse 8. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad41b in /usr/bin/clickhouse 9. /build/src/Storages/AlterCommands.cpp:1389: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d5963bd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da4c5 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:15:02.811099 [ 5625 ] {6e3e48ae-6a9b-44a6-995d-e67225f43bb5} TCPHandler: Code: 47. DB::Exception: Missing columns: 'test_01103.t1_distr.id' while processing query: '_CAST(now(([NULL, NULL, NULL, [-2147483648], [NULL, NULL, NULL, NULL, NULL, NULL, NULL]] AND (1048576 AND NULL) AND (NULL AND 1048575 AND NULL AND -2147483649) AND NULL) IN (test_01103.t1_distr.id)) AS b_tmp_alter9225075967929847967, 'DateTime') AS b, b_tmp_alter9225075967929847967', required columns: 'test_01103.t1_distr.id' 'test_01103.t1_distr.id': default expression and column type are incompatible. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1355: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa6838 in /usr/bin/clickhouse 8. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad41b in /usr/bin/clickhouse 9. /build/src/Storages/AlterCommands.cpp:1389: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d5963bd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da4c5 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:15:05.486005 [ 12929 ] {a4ca5b84-c0d7-4e95-a5db-133cc1d8fa22} executeQuery: Code: 407. DB::Exception: Numeric overflow: While executing ConvertingAggregatedToChunksTransform. (DECIMAL_OVERFLOW) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51312) (comment: 02029_quantile_sanitizer.sql) (in query: SELECT quantileTDigestWeighted(-0.)(toDateTime(10000000000.), 1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/QuantileTDigest.h:486: unsigned int DB::QuantileTDigest::checkOverflow(float) @ 0x0000000014cc053f in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/QuantileTDigest.h:349: unsigned int DB::QuantileTDigest::getImpl(double) @ 0x0000000014cc02a8 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/QuantileTDigest.h:461: DB::QuantileTDigest::get(double) @ 0x0000000014cc021f in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:232: DB::AggregateFunctionQuantile, DB::NameQuantileTDigestWeighted, true, void, false>::insertResultInto(char*, DB::IColumn&, DB::Arena*) const @ 0x0000000014d07252 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1898: void DB::Aggregator::insertAggregatesIntoColumns(char*&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::Arena*) const @ 0x000000001c0f26a8 in /usr/bin/clickhouse 11. /build/src/Interpreters/Aggregator.cpp:2257: DB::Aggregator::prepareBlockAndFillWithoutKey(DB::AggregatedDataVariants&, bool, bool) const @ 0x000000001c029abe in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:458: DB::ConvertingAggregatedToChunksTransform::initialize() @ 0x000000001eb962e1 in /usr/bin/clickhouse 13. /build/src/Processors/Transforms/AggregatingTransform.cpp:294: DB::ConvertingAggregatedToChunksTransform::work() @ 0x000000001eb9351f in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 2024.10.22 10:15:05.488570 [ 12929 ] {a4ca5b84-c0d7-4e95-a5db-133cc1d8fa22} TCPHandler: Code: 407. DB::Exception: Numeric overflow: While executing ConvertingAggregatedToChunksTransform. (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/QuantileTDigest.h:486: unsigned int DB::QuantileTDigest::checkOverflow(float) @ 0x0000000014cc053f in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/QuantileTDigest.h:349: unsigned int DB::QuantileTDigest::getImpl(double) @ 0x0000000014cc02a8 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/QuantileTDigest.h:461: DB::QuantileTDigest::get(double) @ 0x0000000014cc021f in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:232: DB::AggregateFunctionQuantile, DB::NameQuantileTDigestWeighted, true, void, false>::insertResultInto(char*, DB::IColumn&, DB::Arena*) const @ 0x0000000014d07252 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1898: void DB::Aggregator::insertAggregatesIntoColumns(char*&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::Arena*) const @ 0x000000001c0f26a8 in /usr/bin/clickhouse 11. /build/src/Interpreters/Aggregator.cpp:2257: DB::Aggregator::prepareBlockAndFillWithoutKey(DB::AggregatedDataVariants&, bool, bool) const @ 0x000000001c029abe in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:458: DB::ConvertingAggregatedToChunksTransform::initialize() @ 0x000000001eb962e1 in /usr/bin/clickhouse 13. /build/src/Processors/Transforms/AggregatingTransform.cpp:294: DB::ConvertingAggregatedToChunksTransform::work() @ 0x000000001eb9351f in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 2024.10.22 10:15:07.840732 [ 12916 ] {} ServerErrorHandler: Code: 81. DB::Exception: Database no_such_database_could_exist does not exist. (UNKNOWN_DATABASE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/DatabaseCatalog.cpp:509: DB::DatabaseCatalog::assertDatabaseExists(String const&) const @ 0x000000001bee6121 in /usr/bin/clickhouse 7. /build/src/Interpreters/Context.cpp:1965: DB::Context::setCurrentDatabase(String const&) @ 0x000000001bdc8909 in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:265: DB::TCPHandler::runImpl() @ 0x000000001e6452d4 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 10. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 12. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 15. ? @ 0x00007f1a0debbac3 in ? 16. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:15:07.868003 [ 12929 ] {} ServerErrorHandler: Code: 81. DB::Exception: Database no_such_database_could_exist does not exist. (UNKNOWN_DATABASE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/DatabaseCatalog.cpp:509: DB::DatabaseCatalog::assertDatabaseExists(String const&) const @ 0x000000001bee6121 in /usr/bin/clickhouse 7. /build/src/Interpreters/Context.cpp:1965: DB::Context::setCurrentDatabase(String const&) @ 0x000000001bdc8909 in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:265: DB::TCPHandler::runImpl() @ 0x000000001e6452d4 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 10. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 12. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 15. ? @ 0x00007f1a0debbac3 in ? 16. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:15:21.367842 [ 12916 ] {63c745ed-63d7-413c-a2a4-cd1e27ac5bd2} executeQuery: Code: 36. DB::Exception: Parameter width must be in range [2, 1024]. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39078) (comment: 02016_aggregation_spark_bar.sql) (in query: -- { echoOff } SELECT sparkbar(0)(number, number) FROM numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [43]) @ 0x000000000b1fea7e in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.h:277: DB::AggregateFunctionSparkbar::AggregateFunctionSparkbar(std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017950c07 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:28: DB::IAggregateFunction* DB::(anonymous namespace)::createWithUIntegerOrTimeType, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, std::vector, std::allocator>>&&, DB::Array&&) @ 0x00000000178f4e07 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:41: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSparkbarImpl, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, DB::IDataType const&, std::vector, std::allocator>>, DB::Array) @ 0x00000000178f401b in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:65: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178f3e8d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:15:21.368945 [ 12916 ] {63c745ed-63d7-413c-a2a4-cd1e27ac5bd2} TCPHandler: Code: 36. DB::Exception: Parameter width must be in range [2, 1024]. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [43]) @ 0x000000000b1fea7e in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.h:277: DB::AggregateFunctionSparkbar::AggregateFunctionSparkbar(std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017950c07 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:28: DB::IAggregateFunction* DB::(anonymous namespace)::createWithUIntegerOrTimeType, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, std::vector, std::allocator>>&&, DB::Array&&) @ 0x00000000178f4e07 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:41: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSparkbarImpl, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, DB::IDataType const&, std::vector, std::allocator>>, DB::Array) @ 0x00000000178f401b in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:65: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178f3e8d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:15:21.379125 [ 12916 ] {010a82e0-b060-427d-a1dc-e91abe54745a} executeQuery: Code: 36. DB::Exception: Parameter width must be in range [2, 1024]. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39078) (comment: 02016_aggregation_spark_bar.sql) (in query: SELECT sparkbar(1)(number, number) FROM numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [43]) @ 0x000000000b1fea7e in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.h:277: DB::AggregateFunctionSparkbar::AggregateFunctionSparkbar(std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017950c07 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:28: DB::IAggregateFunction* DB::(anonymous namespace)::createWithUIntegerOrTimeType, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, std::vector, std::allocator>>&&, DB::Array&&) @ 0x00000000178f4e07 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:41: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSparkbarImpl, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, DB::IDataType const&, std::vector, std::allocator>>, DB::Array) @ 0x00000000178f401b in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:65: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178f3e8d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:15:21.380179 [ 12916 ] {010a82e0-b060-427d-a1dc-e91abe54745a} TCPHandler: Code: 36. DB::Exception: Parameter width must be in range [2, 1024]. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [43]) @ 0x000000000b1fea7e in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.h:277: DB::AggregateFunctionSparkbar::AggregateFunctionSparkbar(std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017950c07 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:28: DB::IAggregateFunction* DB::(anonymous namespace)::createWithUIntegerOrTimeType, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, std::vector, std::allocator>>&&, DB::Array&&) @ 0x00000000178f4e07 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:41: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSparkbarImpl, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, DB::IDataType const&, std::vector, std::allocator>>, DB::Array) @ 0x00000000178f401b in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:65: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178f3e8d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:15:21.389616 [ 12916 ] {22fda32c-6f0d-47a8-bedc-d097b37eceb7} executeQuery: Code: 36. DB::Exception: Parameter width must be in range [2, 1024]. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39078) (comment: 02016_aggregation_spark_bar.sql) (in query: SELECT sparkbar(1025)(number, number) FROM numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [43]) @ 0x000000000b1fea7e in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.h:277: DB::AggregateFunctionSparkbar::AggregateFunctionSparkbar(std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017950c07 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:28: DB::IAggregateFunction* DB::(anonymous namespace)::createWithUIntegerOrTimeType, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, std::vector, std::allocator>>&&, DB::Array&&) @ 0x00000000178f4e07 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:41: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSparkbarImpl, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, DB::IDataType const&, std::vector, std::allocator>>, DB::Array) @ 0x00000000178f401b in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:65: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178f3e8d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:15:21.390683 [ 12916 ] {22fda32c-6f0d-47a8-bedc-d097b37eceb7} TCPHandler: Code: 36. DB::Exception: Parameter width must be in range [2, 1024]. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [43]) @ 0x000000000b1fea7e in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.h:277: DB::AggregateFunctionSparkbar::AggregateFunctionSparkbar(std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017950c07 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:28: DB::IAggregateFunction* DB::(anonymous namespace)::createWithUIntegerOrTimeType, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, std::vector, std::allocator>>&&, DB::Array&&) @ 0x00000000178f4e07 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:41: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSparkbarImpl, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, DB::IDataType const&, std::vector, std::allocator>>, DB::Array) @ 0x00000000178f401b in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:65: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178f3e8d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:15:21.527224 [ 12916 ] {f8186929-3abd-4267-bb7f-c843859bf0e1} executeQuery: Code: 36. DB::Exception: Parameter `min_x` must be less than `max_x`. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39078) (comment: 02016_aggregation_spark_bar.sql) (in query: SELECT sparkbar(2, 10, 9)(number, number) FROM numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25bebe in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.h:280: DB::AggregateFunctionSparkbar::AggregateFunctionSparkbar(std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017950cba in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:28: DB::IAggregateFunction* DB::(anonymous namespace)::createWithUIntegerOrTimeType, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, std::vector, std::allocator>>&&, DB::Array&&) @ 0x00000000178f4e07 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:41: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSparkbarImpl, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, DB::IDataType const&, std::vector, std::allocator>>, DB::Array) @ 0x00000000178f401b in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:65: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178f3e8d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:15:21.528228 [ 12916 ] {f8186929-3abd-4267-bb7f-c843859bf0e1} TCPHandler: Code: 36. DB::Exception: Parameter `min_x` must be less than `max_x`. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25bebe in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.h:280: DB::AggregateFunctionSparkbar::AggregateFunctionSparkbar(std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017950cba in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:28: DB::IAggregateFunction* DB::(anonymous namespace)::createWithUIntegerOrTimeType, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, std::vector, std::allocator>>&&, DB::Array&&) @ 0x00000000178f4e07 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:41: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSparkbarImpl, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, DB::IDataType const&, std::vector, std::allocator>>, DB::Array) @ 0x00000000178f401b in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:65: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178f3e8d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:15:21.692745 [ 12916 ] {cfdf8a8f-c05c-4af9-803d-fe0a8e634e57} executeQuery: Code: 43. DB::Exception: The second and third parameters are not the same type as the first arguments for aggregate function sparkbar. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39078) (comment: 02016_aggregation_spark_bar.sql) (in query: SELECT sparkbar(2, -5, -1)(number, number) FROM numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:61: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178f3d62 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:15:21.694111 [ 12916 ] {cfdf8a8f-c05c-4af9-803d-fe0a8e634e57} TCPHandler: Code: 43. DB::Exception: The second and third parameters are not the same type as the first arguments for aggregate function sparkbar. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:61: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178f3d62 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:15:21.707038 [ 12916 ] {c31a6e2b-80bc-43ff-8da0-0799768c5f4a} executeQuery: Code: 43. DB::Exception: The second and third parameters are not the same type as the first arguments for aggregate function sparkbar. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39078) (comment: 02016_aggregation_spark_bar.sql) (in query: SELECT sparkbar(2, -5, 1)(number, number) FROM numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:61: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178f3d62 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:15:21.708340 [ 12916 ] {c31a6e2b-80bc-43ff-8da0-0799768c5f4a} TCPHandler: Code: 43. DB::Exception: The second and third parameters are not the same type as the first arguments for aggregate function sparkbar. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:61: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178f3d62 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:15:21.859814 [ 12916 ] {bc0ab9b4-2d49-4c60-92cc-b509501825b6} executeQuery: Code: 43. DB::Exception: The first argument type must be UInt or Date or DateTime for aggregate function sparkbar. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39078) (comment: 02016_aggregation_spark_bar.sql) (in query: SELECT sparkbar(2)(toInt32(number), number) FROM numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:31: DB::IAggregateFunction* DB::(anonymous namespace)::createWithUIntegerOrTimeType, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, std::vector, std::allocator>>&&, DB::Array&&) @ 0x00000000178f4f64 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:41: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSparkbarImpl, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, DB::IDataType const&, std::vector, std::allocator>>, DB::Array) @ 0x00000000178f401b in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:65: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178f3e8d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 2024.10.22 10:15:21.860924 [ 12916 ] {bc0ab9b4-2d49-4c60-92cc-b509501825b6} TCPHandler: Code: 43. DB::Exception: The first argument type must be UInt or Date or DateTime for aggregate function sparkbar. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:31: DB::IAggregateFunction* DB::(anonymous namespace)::createWithUIntegerOrTimeType, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, std::vector, std::allocator>>&&, DB::Array&&) @ 0x00000000178f4f64 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:41: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSparkbarImpl, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, DB::IDataType const&, std::vector, std::allocator>>, DB::Array) @ 0x00000000178f401b in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:65: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178f3e8d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 2024.10.22 10:15:22.015685 [ 12916 ] {5fd6eda4-2522-4521-ae21-8f516affdb30} executeQuery: Code: 42. DB::Exception: The number of params does not match for aggregate function 'sparkbar', expected 1 or 3, got 2. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39078) (comment: 02016_aggregation_spark_bar.sql) (in query: SELECT sparkbar(2, 0)(number, number) FROM numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, unsigned long&&) @ 0x000000000c3c400c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:53: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178f3b3b in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:15:22.016921 [ 12916 ] {5fd6eda4-2522-4521-ae21-8f516affdb30} TCPHandler: Code: 42. DB::Exception: The number of params does not match for aggregate function 'sparkbar', expected 1 or 3, got 2. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, unsigned long&&) @ 0x000000000c3c400c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:53: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178f3b3b in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:15:22.026489 [ 12916 ] {6cb89942-416c-4b52-be06-bb6e83a87b09} executeQuery: Code: 42. DB::Exception: The number of params does not match for aggregate function 'sparkbar', expected 1 or 3, got 4. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39078) (comment: 02016_aggregation_spark_bar.sql) (in query: SELECT sparkbar(2, 0, 5, 8)(number, number) FROM numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, unsigned long&&) @ 0x000000000c3c400c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:53: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178f3b3b in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:15:22.027364 [ 12916 ] {6cb89942-416c-4b52-be06-bb6e83a87b09} TCPHandler: Code: 42. DB::Exception: The number of params does not match for aggregate function 'sparkbar', expected 1 or 3, got 4. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, unsigned long&&) @ 0x000000000c3c400c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:53: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178f3b3b in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:15:25.966558 [ 1300 ] {110e892e-1316-4f41-9745-0702ada4f628} AsynchronousInsertQueue: Failed parsing for query 'INSERT INTO test_2j7rdyht.async_inserts FORMAT CSV' with query id 197b1f9b-b03d-4268-b896-80414daff457. DB::ParsingException: Cannot parse input: expected ',' before: 'qqqqqqqqqqq': Could not print diagnostic info because two last rows aren't in buffer (rare case) : (at row 1) 2024.10.22 10:15:26.095567 [ 12919 ] {197b1f9b-b03d-4268-b896-80414daff457} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: 'qqqqqqqqqqq': Could not print diagnostic info because two last rows aren't in buffer (rare case) : While executing WaitForAsyncInsert: (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:55122) (comment: 02015_async_inserts_2.sh) (in query: INSERT INTO async_inserts FORMAT CSV ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e822708 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7ee173 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 13. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:60: DB::StreamingFormatExecutor::execute() @ 0x000000001e701481 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:44: DB::StreamingFormatExecutor::execute(DB::ReadBuffer&) @ 0x000000001e701012 in /usr/bin/clickhouse 15. /build/src/Interpreters/AsynchronousInsertQueue.cpp:582: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd7fd5c in /usr/bin/clickhouse 16. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd824ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82455 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82435 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd82415 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd823e0 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse 2024.10.22 10:15:26.096947 [ 12919 ] {197b1f9b-b03d-4268-b896-80414daff457} DynamicQueryHandler: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: 'qqqqqqqqqqq': Could not print diagnostic info because two last rows aren't in buffer (rare case) : While executing WaitForAsyncInsert: (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013990ef3 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x000000001398436a in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5e4fa0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e822708 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7ee173 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 13. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:60: DB::StreamingFormatExecutor::execute() @ 0x000000001e701481 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:44: DB::StreamingFormatExecutor::execute(DB::ReadBuffer&) @ 0x000000001e701012 in /usr/bin/clickhouse 15. /build/src/Interpreters/AsynchronousInsertQueue.cpp:582: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd7fd5c in /usr/bin/clickhouse 16. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd824ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82455 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd82435 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd82415 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd823e0 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:15:26.620520 [ 12925 ] {94730121-da13-4ee9-9d69-3f3baf4e4e06} executeQuery: Code: 43. DB::Exception: Nested type LowCardinality(Nullable(String)) cannot be inside Nullable type: While processing JSONExtract(toNullable('{"string_value":null}'), 'string_value', 'LowCardinality(Nullable(String))') AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40422) (comment: 02013_json_function_null_column.sql) (in query: SELECT JSONExtract(toNullable('{"string_value":null}'), 'string_value', 'LowCardinality(Nullable(String))') as x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeNullable.cpp:28: DB::DataTypeNullable::DataTypeNullable(std::shared_ptr const&) @ 0x000000001b99a34c in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::DataTypeNullable* std::construct_at[abi:v15000] const&, DB::DataTypeNullable*>(DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017af8406 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, void, void>(std::allocator&, DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017af8381 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&>(std::allocator, std::shared_ptr const&) @ 0x0000000017af8307 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, void>(std::allocator const&, std::shared_ptr const&) @ 0x0000000017af8237 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, void>(std::shared_ptr const&) @ 0x0000000017af81e6 in /usr/bin/clickhouse 12. /build/src/DataTypes/DataTypeNullable.cpp:86: DB::makeNullable(std::shared_ptr const&) @ 0x000000001b99aa2e in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsJSON.h:468: DB::JSONOverloadResolver::build(std::vector> const&) const @ 0x000000000c0fa538 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:15:26.621839 [ 12925 ] {94730121-da13-4ee9-9d69-3f3baf4e4e06} TCPHandler: Code: 43. DB::Exception: Nested type LowCardinality(Nullable(String)) cannot be inside Nullable type: While processing JSONExtract(toNullable('{"string_value":null}'), 'string_value', 'LowCardinality(Nullable(String))') AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeNullable.cpp:28: DB::DataTypeNullable::DataTypeNullable(std::shared_ptr const&) @ 0x000000001b99a34c in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::DataTypeNullable* std::construct_at[abi:v15000] const&, DB::DataTypeNullable*>(DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017af8406 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, void, void>(std::allocator&, DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017af8381 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&>(std::allocator, std::shared_ptr const&) @ 0x0000000017af8307 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, void>(std::allocator const&, std::shared_ptr const&) @ 0x0000000017af8237 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, void>(std::shared_ptr const&) @ 0x0000000017af81e6 in /usr/bin/clickhouse 12. /build/src/DataTypes/DataTypeNullable.cpp:86: DB::makeNullable(std::shared_ptr const&) @ 0x000000001b99aa2e in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsJSON.h:468: DB::JSONOverloadResolver::build(std::vector> const&) const @ 0x000000000c0fa538 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:15:26.907237 [ 12925 ] {8b50c3c9-512f-44a9-a02a-2b954ae893ed} executeQuery: Code: 43. DB::Exception: The argument 2 of function JSONExtractInt should be a string specifying key or an integer specifying index, illegal type: Nullable(UInt8): While processing JSONExtractInt('[1]', toLowCardinality(toNullable(1))). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40422) (comment: 02013_json_function_null_column.sql) (in query: SELECT JSONExtractInt('[1]', toLowCardinality(toNullable(1)));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsJSON.h:200: DB::FunctionJSONHelpers::prepareMoves(char const*, std::vector> const&, unsigned long, unsigned long) @ 0x000000000c0bdc69 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsJSON.h:108: DB::FunctionJSONHelpers::Executor::run(std::vector> const&, std::shared_ptr const&, unsigned long) @ 0x000000000c0dfd62 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsJSON.h:371: DB::ExecutableFunctionJSON::chooseAndRunJSONParser(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c0df7aa in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsJSON.h:358: DB::ExecutableFunctionJSON::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c0df661 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 2024.10.22 10:15:26.908602 [ 12925 ] {8b50c3c9-512f-44a9-a02a-2b954ae893ed} TCPHandler: Code: 43. DB::Exception: The argument 2 of function JSONExtractInt should be a string specifying key or an integer specifying index, illegal type: Nullable(UInt8): While processing JSONExtractInt('[1]', toLowCardinality(toNullable(1))). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsJSON.h:200: DB::FunctionJSONHelpers::prepareMoves(char const*, std::vector> const&, unsigned long, unsigned long) @ 0x000000000c0bdc69 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsJSON.h:108: DB::FunctionJSONHelpers::Executor::run(std::vector> const&, std::shared_ptr const&, unsigned long) @ 0x000000000c0dfd62 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsJSON.h:371: DB::ExecutableFunctionJSON::chooseAndRunJSONParser(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c0df7aa in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsJSON.h:358: DB::ExecutableFunctionJSON::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c0df661 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 2024.10.22 10:15:27.072706 [ 12925 ] {ec001a06-dc7f-42f4-afbc-d53ee789d296} executeQuery: Code: 43. DB::Exception: Nested type Array(String) cannot be inside Nullable type: While processing JSONExtractArrayRaw('["1"]', toNullable(1)). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40422) (comment: 02013_json_function_null_column.sql) (in query: SELECT JSONExtractArrayRaw('["1"]', toNullable(1));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeNullable.cpp:28: DB::DataTypeNullable::DataTypeNullable(std::shared_ptr const&) @ 0x000000001b99a34c in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::DataTypeNullable* std::construct_at[abi:v15000] const&, DB::DataTypeNullable*>(DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017af8406 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, void, void>(std::allocator&, DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017af8381 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&>(std::allocator, std::shared_ptr const&) @ 0x0000000017af8307 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, void>(std::allocator const&, std::shared_ptr const&) @ 0x0000000017af8237 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, void>(std::shared_ptr const&) @ 0x0000000017af81e6 in /usr/bin/clickhouse 12. /build/src/DataTypes/DataTypeNullable.cpp:86: DB::makeNullable(std::shared_ptr const&) @ 0x000000001b99aa2e in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsJSON.h:468: DB::JSONOverloadResolver::build(std::vector> const&) const @ 0x000000000c144238 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:15:27.074312 [ 12925 ] {ec001a06-dc7f-42f4-afbc-d53ee789d296} TCPHandler: Code: 43. DB::Exception: Nested type Array(String) cannot be inside Nullable type: While processing JSONExtractArrayRaw('["1"]', toNullable(1)). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeNullable.cpp:28: DB::DataTypeNullable::DataTypeNullable(std::shared_ptr const&) @ 0x000000001b99a34c in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::DataTypeNullable* std::construct_at[abi:v15000] const&, DB::DataTypeNullable*>(DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017af8406 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, void, void>(std::allocator&, DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017af8381 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&>(std::allocator, std::shared_ptr const&) @ 0x0000000017af8307 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, void>(std::allocator const&, std::shared_ptr const&) @ 0x0000000017af8237 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, void>(std::shared_ptr const&) @ 0x0000000017af81e6 in /usr/bin/clickhouse 12. /build/src/DataTypes/DataTypeNullable.cpp:86: DB::makeNullable(std::shared_ptr const&) @ 0x000000001b99aa2e in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsJSON.h:468: DB::JSONOverloadResolver::build(std::vector> const&) const @ 0x000000000c144238 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:15:27.233245 [ 12925 ] {14a3f068-6f80-4b34-b5b0-a5a1ade95bd6} executeQuery: Code: 43. DB::Exception: Nested type Array(Tuple(String, String)) cannot be inside Nullable type: While processing JSONExtractKeysAndValuesRaw('["1"]', toNullable(1)). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40422) (comment: 02013_json_function_null_column.sql) (in query: SELECT JSONExtractKeysAndValuesRaw('["1"]', toNullable(1));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeNullable.cpp:28: DB::DataTypeNullable::DataTypeNullable(std::shared_ptr const&) @ 0x000000001b99a34c in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::DataTypeNullable* std::construct_at[abi:v15000] const&, DB::DataTypeNullable*>(DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017af8406 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, void, void>(std::allocator&, DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017af8381 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&>(std::allocator, std::shared_ptr const&) @ 0x0000000017af8307 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, void>(std::allocator const&, std::shared_ptr const&) @ 0x0000000017af8237 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, void>(std::shared_ptr const&) @ 0x0000000017af81e6 in /usr/bin/clickhouse 12. /build/src/DataTypes/DataTypeNullable.cpp:86: DB::makeNullable(std::shared_ptr const&) @ 0x000000001b99aa2e in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsJSON.h:468: DB::JSONOverloadResolver::build(std::vector> const&) const @ 0x000000000c148d98 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:15:27.234570 [ 12925 ] {14a3f068-6f80-4b34-b5b0-a5a1ade95bd6} TCPHandler: Code: 43. DB::Exception: Nested type Array(Tuple(String, String)) cannot be inside Nullable type: While processing JSONExtractKeysAndValuesRaw('["1"]', toNullable(1)). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeNullable.cpp:28: DB::DataTypeNullable::DataTypeNullable(std::shared_ptr const&) @ 0x000000001b99a34c in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::DataTypeNullable* std::construct_at[abi:v15000] const&, DB::DataTypeNullable*>(DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017af8406 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, void, void>(std::allocator&, DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017af8381 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&>(std::allocator, std::shared_ptr const&) @ 0x0000000017af8307 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, void>(std::allocator const&, std::shared_ptr const&) @ 0x0000000017af8237 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, void>(std::shared_ptr const&) @ 0x0000000017af81e6 in /usr/bin/clickhouse 12. /build/src/DataTypes/DataTypeNullable.cpp:86: DB::makeNullable(std::shared_ptr const&) @ 0x000000001b99aa2e in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsJSON.h:468: DB::JSONOverloadResolver::build(std::vector> const&) const @ 0x000000000c148d98 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:15:27.419651 [ 12925 ] {836c0625-45a8-4658-ab93-de2a707305cd} executeQuery: Code: 44. DB::Exception: The last argument of function JSONExtractKeysAndValues should be a constant string specifying the values' data type, illegal value: toNullable(1): While processing JSONExtractKeysAndValues('["1"]', toNullable(1)). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40422) (comment: 02013_json_function_null_column.sql) (in query: SELECT JSONExtractKeysAndValues('["1"]', toNullable(1));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsJSON.h:1379: DB::JSONExtractKeysAndValuesImpl::getReturnType(char const*, std::vector> const&) @ 0x000000000c13957e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsJSON.h:460: DB::JSONOverloadResolver::build(std::vector> const&) const @ 0x000000000c138dcc in /usr/bin/clickhouse 8. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:15:27.420973 [ 12925 ] {836c0625-45a8-4658-ab93-de2a707305cd} TCPHandler: Code: 44. DB::Exception: The last argument of function JSONExtractKeysAndValues should be a constant string specifying the values' data type, illegal value: toNullable(1): While processing JSONExtractKeysAndValues('["1"]', toNullable(1)). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsJSON.h:1379: DB::JSONExtractKeysAndValuesImpl::getReturnType(char const*, std::vector> const&) @ 0x000000000c13957e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsJSON.h:460: DB::JSONOverloadResolver::build(std::vector> const&) const @ 0x000000000c138dcc in /usr/bin/clickhouse 8. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:15:30.862521 [ 1139 ] {2f98bfc6-0de6-41a1-84a5-a279ff0cb9d1} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43746) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:15:30.863641 [ 1139 ] {2f98bfc6-0de6-41a1-84a5-a279ff0cb9d1} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:15:32.803998 [ 12933 ] {c88b74cb-2e7d-4aa1-a448-f34ed8f25cab} executeQuery: Code: 621. DB::Exception: Normalization failed (strFromUTF8): U_INVALID_CHAR_FOUND: While processing char(228) AS value, normalizeUTF8NFC(value). (CANNOT_NORMALIZE_STRING) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43788) (comment: 02011_normalize_utf8.sql) (in query: SELECT char(228) AS value, normalizeUTF8NFC(value);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&&) @ 0x0000000011515d53 in /usr/bin/clickhouse 6. /build/src/Functions/normalizeString.cpp:120: DB::(anonymous namespace)::NormalizeUTF8Impl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x0000000011510086 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionStringToString.h:68: DB::FunctionStringToString, DB::(anonymous namespace)::NormalizeNFCImpl, false>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001150f7e6 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:15:32.804994 [ 12933 ] {c88b74cb-2e7d-4aa1-a448-f34ed8f25cab} TCPHandler: Code: 621. DB::Exception: Normalization failed (strFromUTF8): U_INVALID_CHAR_FOUND: While processing char(228) AS value, normalizeUTF8NFC(value). (CANNOT_NORMALIZE_STRING), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&&) @ 0x0000000011515d53 in /usr/bin/clickhouse 6. /build/src/Functions/normalizeString.cpp:120: DB::(anonymous namespace)::NormalizeUTF8Impl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x0000000011510086 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionStringToString.h:68: DB::FunctionStringToString, DB::(anonymous namespace)::NormalizeNFCImpl, false>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001150f7e6 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:15:32.938198 [ 12933 ] {cb094e63-a766-4a4c-97d3-d0b1dc2748e8} executeQuery: Code: 621. DB::Exception: Normalization failed (strFromUTF8): U_INVALID_CHAR_FOUND: While processing char(228) AS value, normalizeUTF8NFD(value). (CANNOT_NORMALIZE_STRING) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43788) (comment: 02011_normalize_utf8.sql) (in query: SELECT char(228) AS value, normalizeUTF8NFD(value);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&&) @ 0x0000000011515d53 in /usr/bin/clickhouse 6. /build/src/Functions/normalizeString.cpp:120: DB::(anonymous namespace)::NormalizeUTF8Impl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x0000000011511ca6 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionStringToString.h:68: DB::FunctionStringToString, DB::(anonymous namespace)::NormalizeNFDImpl, false>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011511475 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:15:32.939177 [ 12933 ] {cb094e63-a766-4a4c-97d3-d0b1dc2748e8} TCPHandler: Code: 621. DB::Exception: Normalization failed (strFromUTF8): U_INVALID_CHAR_FOUND: While processing char(228) AS value, normalizeUTF8NFD(value). (CANNOT_NORMALIZE_STRING), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&&) @ 0x0000000011515d53 in /usr/bin/clickhouse 6. /build/src/Functions/normalizeString.cpp:120: DB::(anonymous namespace)::NormalizeUTF8Impl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x0000000011511ca6 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionStringToString.h:68: DB::FunctionStringToString, DB::(anonymous namespace)::NormalizeNFDImpl, false>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011511475 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:15:33.091826 [ 12933 ] {5123684a-8003-4f95-a2e0-ab08dd7a95d7} executeQuery: Code: 621. DB::Exception: Normalization failed (strFromUTF8): U_INVALID_CHAR_FOUND: While processing char(228) AS value, normalizeUTF8NFKC(value). (CANNOT_NORMALIZE_STRING) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43788) (comment: 02011_normalize_utf8.sql) (in query: SELECT char(228) AS value, normalizeUTF8NFKC(value);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&&) @ 0x0000000011515d53 in /usr/bin/clickhouse 6. /build/src/Functions/normalizeString.cpp:120: DB::(anonymous namespace)::NormalizeUTF8Impl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x0000000011513846 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionStringToString.h:68: DB::FunctionStringToString, DB::(anonymous namespace)::NormalizeNFKCImpl, false>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011513015 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:15:33.093252 [ 12933 ] {5123684a-8003-4f95-a2e0-ab08dd7a95d7} TCPHandler: Code: 621. DB::Exception: Normalization failed (strFromUTF8): U_INVALID_CHAR_FOUND: While processing char(228) AS value, normalizeUTF8NFKC(value). (CANNOT_NORMALIZE_STRING), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&&) @ 0x0000000011515d53 in /usr/bin/clickhouse 6. /build/src/Functions/normalizeString.cpp:120: DB::(anonymous namespace)::NormalizeUTF8Impl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x0000000011513846 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionStringToString.h:68: DB::FunctionStringToString, DB::(anonymous namespace)::NormalizeNFKCImpl, false>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011513015 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:15:33.235664 [ 12933 ] {514ef1ba-5ffb-4e2f-8e48-2d8831ae9cea} executeQuery: Code: 621. DB::Exception: Normalization failed (strFromUTF8): U_INVALID_CHAR_FOUND: While processing char(228) AS value, normalizeUTF8NFKD(value). (CANNOT_NORMALIZE_STRING) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43788) (comment: 02011_normalize_utf8.sql) (in query: SELECT char(228) AS value, normalizeUTF8NFKD(value);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&&) @ 0x0000000011515d53 in /usr/bin/clickhouse 6. /build/src/Functions/normalizeString.cpp:120: DB::(anonymous namespace)::NormalizeUTF8Impl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x00000000115153e6 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionStringToString.h:68: DB::FunctionStringToString, DB::(anonymous namespace)::NormalizeNFKDImpl, false>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011514bb5 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:15:33.236728 [ 12933 ] {514ef1ba-5ffb-4e2f-8e48-2d8831ae9cea} TCPHandler: Code: 621. DB::Exception: Normalization failed (strFromUTF8): U_INVALID_CHAR_FOUND: While processing char(228) AS value, normalizeUTF8NFKD(value). (CANNOT_NORMALIZE_STRING), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&&) @ 0x0000000011515d53 in /usr/bin/clickhouse 6. /build/src/Functions/normalizeString.cpp:120: DB::(anonymous namespace)::NormalizeUTF8Impl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x00000000115153e6 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionStringToString.h:68: DB::FunctionStringToString, DB::(anonymous namespace)::NormalizeNFKDImpl, false>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011514bb5 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:15:34.433761 [ 50154 ] {c3a24d46-17ec-4e3c-8f2e-304ecc89e80d} executeQuery: Code: 43. DB::Exception: Wrong order of arguments for function divide: argument of numeric type cannot be first: While processing 2 / (1, 1). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43822) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT 2 / (1, 1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const* const&) @ 0x000000000b24dbf3 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:966: DB::FunctionBinaryArithmetic::getFunctionForTupleAndNumberArithmetic(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000000dc5c10a in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:1489: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000000dd42f5f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000da0eaaf in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:15:34.434997 [ 50154 ] {c3a24d46-17ec-4e3c-8f2e-304ecc89e80d} TCPHandler: Code: 43. DB::Exception: Wrong order of arguments for function divide: argument of numeric type cannot be first: While processing 2 / (1, 1). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const* const&) @ 0x000000000b24dbf3 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:966: DB::FunctionBinaryArithmetic::getFunctionForTupleAndNumberArithmetic(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000000dc5c10a in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:1489: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000000dd42f5f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000da0eaaf in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:15:35.087626 [ 5625 ] {0abcd4f9-c703-400d-ad23-f9f781c8f0c1} executeQuery: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(1 :: 0) -> throwIf(1) UInt8 : 1'. (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43874) (comment: 02006_client_test_hint_error_name.sql) (in query: select throwIf(1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x0000000012606806 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126055bd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 2024.10.22 10:15:35.088591 [ 5625 ] {0abcd4f9-c703-400d-ad23-f9f781c8f0c1} TCPHandler: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(1 :: 0) -> throwIf(1) UInt8 : 1'. (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x0000000012606806 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126055bd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 2024.10.22 10:15:35.386168 [ 50154 ] {8b2302f8-1799-4d92-a285-b37b98e728f9} executeQuery: Code: 43. DB::Exception: Argument 0 of function L1Norm should be tuple, got UInt8: While processing L1Norm(1). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43822) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT L1Norm(1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:724: DB::FunctionLNorm::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127eb8e9 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1433: DB::TupleOrArrayFunction::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127ea021 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:15:35.387344 [ 50154 ] {8b2302f8-1799-4d92-a285-b37b98e728f9} TCPHandler: Code: 43. DB::Exception: Argument 0 of function L1Norm should be tuple, got UInt8: While processing L1Norm(1). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:724: DB::FunctionLNorm::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127eb8e9 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1433: DB::TupleOrArrayFunction::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127ea021 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:15:35.543001 [ 50154 ] {df744266-d8f8-421c-9df6-7f595a1c7358} executeQuery: Code: 43. DB::Exception: Illegal types Tuple(UInt8, UInt8) and String of arguments of function divide: While processing (1, 1) / toString(1). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43822) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT (1, 1) / toString(1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1618: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000000dd433b2 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000da0eaaf in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:15:35.544451 [ 50154 ] {df744266-d8f8-421c-9df6-7f595a1c7358} TCPHandler: Code: 43. DB::Exception: Illegal types Tuple(UInt8, UInt8) and String of arguments of function divide: While processing (1, 1) / toString(1). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1618: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000000dd433b2 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000da0eaaf in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:15:35.663289 [ 50154 ] {7297c558-3273-46e5-a288-f5d4bc708716} executeQuery: Code: 43. DB::Exception: Illegal type String of argument of function negate: While executing function tupleNegate for tuple element 1: While processing -(1, toString(1)). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43822) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT -(1, toString(1));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionUnaryArithmetic.h:332: DB::FunctionUnaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001150367f in /usr/bin/clickhouse 7. /build/src/Functions/FunctionUnaryArithmetic.h:260: DB::FunctionUnaryArithmetic::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000114fccba in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Functions/vectorFunctions.cpp:190: DB::FunctionTupleNegate::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127d146a in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionUnaryArithmetic.h:272: DB::FunctionUnaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011503446 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionUnaryArithmetic.h:260: DB::FunctionUnaryArithmetic::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000114fccba in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 2024.10.22 10:15:35.664122 [ 50154 ] {7297c558-3273-46e5-a288-f5d4bc708716} TCPHandler: Code: 43. DB::Exception: Illegal type String of argument of function negate: While executing function tupleNegate for tuple element 1: While processing -(1, toString(1)). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionUnaryArithmetic.h:332: DB::FunctionUnaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001150367f in /usr/bin/clickhouse 7. /build/src/Functions/FunctionUnaryArithmetic.h:260: DB::FunctionUnaryArithmetic::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000114fccba in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Functions/vectorFunctions.cpp:190: DB::FunctionTupleNegate::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127d146a in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionUnaryArithmetic.h:272: DB::FunctionUnaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011503446 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionUnaryArithmetic.h:260: DB::FunctionUnaryArithmetic::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000114fccba in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 2024.10.22 10:15:35.813091 [ 50154 ] {3bc7402e-2f82-45dc-880b-49525788c71b} executeQuery: Code: 43. DB::Exception: Illegal type Decimal(9, 4) of argument of function pow: While executing function LpNorm for tuple element 0: While processing LpNorm((1, 2), toDecimal32(2, 4)). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43822) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT LpNorm((1, 2), toDecimal32(2, 4));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionMathBinaryFloat64.h:45: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x00000000123efbc7 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionMathBinaryFloat64.h:52: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000012347b56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Functions/vectorFunctions.cpp:1108: DB::FunctionLNorm::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127fa4b4 in /usr/bin/clickhouse 14. /build/src/Functions/vectorFunctions.cpp:1433: DB::TupleOrArrayFunction::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127f7261 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 2024.10.22 10:15:35.814225 [ 50154 ] {3bc7402e-2f82-45dc-880b-49525788c71b} TCPHandler: Code: 43. DB::Exception: Illegal type Decimal(9, 4) of argument of function pow: While executing function LpNorm for tuple element 0: While processing LpNorm((1, 2), toDecimal32(2, 4)). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionMathBinaryFloat64.h:45: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x00000000123efbc7 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionMathBinaryFloat64.h:52: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000012347b56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Functions/vectorFunctions.cpp:1108: DB::FunctionLNorm::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127fa4b4 in /usr/bin/clickhouse 14. /build/src/Functions/vectorFunctions.cpp:1433: DB::TupleOrArrayFunction::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127f7261 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 2024.10.22 10:15:35.974783 [ 50154 ] {42a3ded3-248e-4fcd-93f9-64fb6ae4706d} executeQuery: Code: 43. DB::Exception: Expected tuples of the same size as arguments of function dotProduct. Got Tuple(UInt8, UInt8) and Tuple(UInt8, UInt8, UInt8): While processing cosineDistance((1, 2), (2, 3, 4)). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43822) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT cosineDistance((1, 2), (2, 3, 4));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:351: DB::FunctionDotProduct::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127e7fb2 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1348: DB::FunctionCosineDistance::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012811393 in /usr/bin/clickhouse 8. /build/src/Functions/vectorFunctions.cpp:1433: DB::TupleOrArrayFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000001280eaa1 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:15:35.975883 [ 50154 ] {42a3ded3-248e-4fcd-93f9-64fb6ae4706d} TCPHandler: Code: 43. DB::Exception: Expected tuples of the same size as arguments of function dotProduct. Got Tuple(UInt8, UInt8) and Tuple(UInt8, UInt8, UInt8): While processing cosineDistance((1, 2), (2, 3, 4)). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:351: DB::FunctionDotProduct::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127e7fb2 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1348: DB::FunctionCosineDistance::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012811393 in /usr/bin/clickhouse 8. /build/src/Functions/vectorFunctions.cpp:1433: DB::TupleOrArrayFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000001280eaa1 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:15:36.133944 [ 50154 ] {389dd0ea-805e-4431-9fe1-c7f176f04e70} executeQuery: Code: 42. DB::Exception: Function tuple requires at least one argument.: While processing tuple() + tuple(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43822) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT tuple() + tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/tuple.h:49: DB::FunctionTuple::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000127a7c52 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:445: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf33b5 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:15:36.135059 [ 50154 ] {389dd0ea-805e-4431-9fe1-c7f176f04e70} TCPHandler: Code: 42. DB::Exception: Function tuple requires at least one argument.: While processing tuple() + tuple(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/tuple.h:49: DB::FunctionTuple::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000127a7c52 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:445: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf33b5 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:15:36.144938 [ 50154 ] {3549550c-17ff-4512-885b-9ba6065cbffe} executeQuery: Code: 42. DB::Exception: Number of arguments for function LpNorm doesn't match: passed 1, should be 2: While processing LpNorm((1, 2, 3)). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43822) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT LpNorm((1, 2, 3));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:15:36.146146 [ 50154 ] {3549550c-17ff-4512-885b-9ba6065cbffe} TCPHandler: Code: 42. DB::Exception: Number of arguments for function LpNorm doesn't match: passed 1, should be 2: While processing LpNorm((1, 2, 3)). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:15:36.156016 [ 50154 ] {f387a082-2746-4670-97ef-b0fa9272b61a} executeQuery: Code: 42. DB::Exception: Number of arguments for function max2 doesn't match: passed 3, should be 2: While processing max2(1, 2, -1). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43822) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT max2(1, 2, -1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:15:36.157209 [ 50154 ] {f387a082-2746-4670-97ef-b0fa9272b61a} TCPHandler: Code: 42. DB::Exception: Number of arguments for function max2 doesn't match: passed 3, should be 2: While processing max2(1, 2, -1). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:15:36.348700 [ 50154 ] {283cd6dc-4c81-4757-b566-e5ce54e3fefa} executeQuery: Code: 44. DB::Exception: Second argument for function LpNorm must be either constant Float64 or constant UInt. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43822) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT LpNorm((1, 2, 3), materialize(4.));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1145: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f7dac in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f713e in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc8e048 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc8da48 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001ebcdd87 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001ee33d66 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cacd7f1 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:2769: DB::InterpreterSelectQuery::executeExpression(DB::QueryPlan&, std::shared_ptr const&, String const&) @ 0x000000001cac2042 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:1720: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9e05 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 2024.10.22 10:15:36.349852 [ 50154 ] {283cd6dc-4c81-4757-b566-e5ce54e3fefa} TCPHandler: Code: 44. DB::Exception: Second argument for function LpNorm must be either constant Float64 or constant UInt. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1145: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f7dac in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f713e in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc8e048 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc8da48 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001ebcdd87 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001ee33d66 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cacd7f1 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:2769: DB::InterpreterSelectQuery::executeExpression(DB::QueryPlan&, std::shared_ptr const&, String const&) @ 0x000000001cac2042 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:1720: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9e05 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 2024.10.22 10:15:36.499156 [ 50154 ] {807ebc8f-f20d-416d-92b8-0b8e546e41d7} executeQuery: Code: 44. DB::Exception: Second argument for function LpNorm must be either constant Float64 or constant UInt. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43822) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT LpDistance(tuple(*, 1), tuple(2, *), * + 1.) FROM numbers(3, 2);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1145: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f7dac in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f713e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 13. /build/src/Functions/vectorFunctions.cpp:1252: DB::FunctionLDistance::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000128075c1 in /usr/bin/clickhouse 14. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001280673e in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc8e048 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc8da48 in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001ebcdd87 in /usr/bin/clickhouse 23. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001ee33d66 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cacd7f1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:2769: DB::InterpreterSelectQuery::executeExpression(DB::QueryPlan&, std::shared_ptr const&, String const&) @ 0x000000001cac2042 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:1720: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9e05 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 2024.10.22 10:15:36.500198 [ 50154 ] {807ebc8f-f20d-416d-92b8-0b8e546e41d7} TCPHandler: Code: 44. DB::Exception: Second argument for function LpNorm must be either constant Float64 or constant UInt. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1145: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f7dac in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f713e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 13. /build/src/Functions/vectorFunctions.cpp:1252: DB::FunctionLDistance::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000128075c1 in /usr/bin/clickhouse 14. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001280673e in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc8e048 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc8da48 in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001ebcdd87 in /usr/bin/clickhouse 23. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001ee33d66 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cacd7f1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:2769: DB::InterpreterSelectQuery::executeExpression(DB::QueryPlan&, std::shared_ptr const&, String const&) @ 0x000000001cac2042 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:1720: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9e05 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 2024.10.22 10:15:36.800921 [ 50154 ] {88fee23f-c046-4592-a65d-d40d71ab7611} executeQuery: Code: 69. DB::Exception: Second argument for function LpNorm must be not less than one and not be an infinity: While processing LpNorm((3, 1, 4), 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43822) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT LpNorm((3, 1, 4), 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1156: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f81a5 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f713e in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:15:36.802001 [ 50154 ] {88fee23f-c046-4592-a65d-d40d71ab7611} TCPHandler: Code: 69. DB::Exception: Second argument for function LpNorm must be not less than one and not be an infinity: While processing LpNorm((3, 1, 4), 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1156: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f81a5 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f713e in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:15:36.810905 [ 50154 ] {6c9dde93-b1c5-4689-bb74-8d22bb8c9ead} executeQuery: Code: 69. DB::Exception: Second argument for function LpNorm must be not less than one and not be an infinity: While processing LpNorm((1, 2, 3), 0.5). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43822) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT LpNorm((1, 2, 3), 0.5);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1156: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f81a5 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f713e in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:15:36.811763 [ 50154 ] {6c9dde93-b1c5-4689-bb74-8d22bb8c9ead} TCPHandler: Code: 69. DB::Exception: Second argument for function LpNorm must be not less than one and not be an infinity: While processing LpNorm((1, 2, 3), 0.5). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1156: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f81a5 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f713e in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:15:36.820082 [ 50154 ] {9094ac9f-ce42-4908-a6e0-f6b3cd610dfb} executeQuery: Code: 69. DB::Exception: Second argument for function LpNorm must be not less than one and not be an infinity: While processing LpNorm((1, 2, 3), inf). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43822) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT LpNorm((1, 2, 3), inf);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1156: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f81a5 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f713e in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:15:36.821007 [ 50154 ] {9094ac9f-ce42-4908-a6e0-f6b3cd610dfb} TCPHandler: Code: 69. DB::Exception: Second argument for function LpNorm must be not less than one and not be an infinity: While processing LpNorm((1, 2, 3), inf). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1156: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f81a5 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f713e in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:15:36.828716 [ 50154 ] {c6d52cd4-9d74-4cb6-8290-181fdbf691f7} executeQuery: Code: 69. DB::Exception: Second argument for function LpNorm must be not less than one and not be an infinity: While processing LpNorm((1, 2, 3), -1.). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43822) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT LpNorm((1, 2, 3), -1.);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1156: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f81a5 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f713e in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:15:36.829433 [ 50154 ] {c6d52cd4-9d74-4cb6-8290-181fdbf691f7} TCPHandler: Code: 69. DB::Exception: Second argument for function LpNorm must be not less than one and not be an infinity: While processing LpNorm((1, 2, 3), -1.). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1156: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f81a5 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f713e in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:15:36.973883 [ 50154 ] {7d030033-0389-4096-9ffb-53df83ffcc90} executeQuery: Code: 44. DB::Exception: Second argument for function LpNorm must be either constant Float64 or constant UInt: While processing LpNorm((1, 2, 3), -1). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43822) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT LpNorm((1, 2, 3), -1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1153: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f8044 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f713e in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:15:36.975029 [ 50154 ] {7d030033-0389-4096-9ffb-53df83ffcc90} TCPHandler: Code: 44. DB::Exception: Second argument for function LpNorm must be either constant Float64 or constant UInt: While processing LpNorm((1, 2, 3), -1). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1153: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f8044 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f713e in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:15:36.983358 [ 50154 ] {3836cbac-112c-4974-8323-a5e7bfb36c3b} executeQuery: Code: 69. DB::Exception: Second argument for function LpNorm must be not less than one and not be an infinity: While processing LpNorm((1, 2, 3), 0.). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43822) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT LpNorm((1, 2, 3), 0.);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1156: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f81a5 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f713e in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:15:36.984281 [ 50154 ] {3836cbac-112c-4974-8323-a5e7bfb36c3b} TCPHandler: Code: 69. DB::Exception: Second argument for function LpNorm must be not less than one and not be an infinity: While processing LpNorm((1, 2, 3), 0.). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1156: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f81a5 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127f713e in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:15:43.883644 [ 672 ] {47a2a2df-1559-4a65-8108-d4b4bd172b32} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::1]:9000 -> [::1]:41054). (NETWORK_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41054) (comment: 02003_memory_limit_in_client.sh) (in query: SELECT arrayMap(x -> range(x), range(number)) FROM numbers(1000) -- { clientError MEMORY_LIMIT_EXCEEDED }), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:96: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf2424 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/IO/WriteBuffer.h:71: DB::WriteBuffer::nextIfAtEnd() @ 0x000000000b209b38 in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:86: DB::WriteBuffer::write(char const*, unsigned long) @ 0x000000000b21ca13 in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationNumber.cpp:151: DB::SerializationNumber::serializeBinaryBulk(DB::IColumn const&, DB::WriteBuffer&, unsigned long, unsigned long) const @ 0x000000001ba75140 in /usr/bin/clickhouse 11. /build/src/DataTypes/Serializations/SerializationArray.cpp:312: DB::SerializationArray::serializeBinaryBulkWithMultipleStreams(DB::IColumn const&, unsigned long, unsigned long, DB::ISerialization::SerializeBinaryBulkSettings&, std::shared_ptr&) const @ 0x000000001ba313fa in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationArray.cpp:339: DB::SerializationArray::serializeBinaryBulkWithMultipleStreams(DB::IColumn const&, unsigned long, unsigned long, DB::ISerialization::SerializeBinaryBulkSettings&, std::shared_ptr&) const @ 0x000000001ba31612 in /usr/bin/clickhouse 13. /build/src/Formats/NativeWriter.cpp:62: DB::writeData(DB::ISerialization const&, COW::immutable_ptr const&, DB::WriteBuffer&, unsigned long, unsigned long) @ 0x000000001e699b55 in /usr/bin/clickhouse 14. /build/src/Formats/NativeWriter.cpp:163: DB::NativeWriter::write(DB::Block const&) @ 0x000000001e699856 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2035: DB::TCPHandler::sendData(DB::Block const&) @ 0x000000001e652275 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:946: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f8b9 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 24. ? @ 0x00007f1a0debbac3 in ? 25. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:15:44.018315 [ 12919 ] {23e6a890-ecf3-4841-9b3e-da9d234a9323} executeQuery: Code: 497. DB::Exception: u_02015_denied: Not enough privileges. To execute this query, it's necessary to have the grant INSERT(id, s) ON test_9lrk5uvf.async_inserts. (ACCESS_DENIED) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:49556) (comment: 02015_async_inserts_4.sh) (in query: INSERT INTO async_inserts FORMAT JSONEachRow ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:520: auto bool DB::ContextAccess::checkAccessImplHelper>, std::basic_string_view>, std::vector>>(DB::AccessFlags, std::basic_string_view> const&, std::basic_string_view> const&, std::vector> const&) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b05c7cd in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:560: bool DB::ContextAccess::checkAccessImplHelper>, std::basic_string_view>, std::vector>>(DB::AccessFlags, std::basic_string_view> const&, std::basic_string_view> const&, std::vector> const&) const @ 0x000000001b05b196 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:631: bool DB::ContextAccess::checkAccessImpl>, std::vector>>(DB::AccessFlags const&, std::basic_string_view>, std::basic_string_view> const&, std::vector> const&) const @ 0x000000001b022630 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:703: DB::ContextAccess::checkAccess(DB::AccessFlags const&, std::basic_string_view>, std::basic_string_view>, std::vector> const&) const @ 0x000000001b01d6f1 in /usr/bin/clickhouse 10. /build/src/Interpreters/Context.cpp:1200: void DB::Context::checkAccessImpl>>(DB::AccessFlags const&, String const&, String const&, std::vector> const&) const @ 0x000000001bde986e in /usr/bin/clickhouse 11. /build/src/Interpreters/Context.cpp:1212: DB::Context::checkAccess(DB::AccessFlags const&, DB::StorageID const&, std::vector> const&) const @ 0x000000001bdc9a40 in /usr/bin/clickhouse 12. /build/src/Interpreters/AsynchronousInsertQueue.cpp:224: DB::AsynchronousInsertQueue::push(std::shared_ptr, std::shared_ptr) @ 0x000000001bd7ba52 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:948: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b383f in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 15. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 16. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 17. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:15:44.018305 [ 672 ] {47a2a2df-1559-4a65-8108-d4b4bd172b32} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::1]:9000 -> [::1]:41054). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:96: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf2424 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/IO/WriteBuffer.h:71: DB::WriteBuffer::nextIfAtEnd() @ 0x000000000b209b38 in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:86: DB::WriteBuffer::write(char const*, unsigned long) @ 0x000000000b21ca13 in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationNumber.cpp:151: DB::SerializationNumber::serializeBinaryBulk(DB::IColumn const&, DB::WriteBuffer&, unsigned long, unsigned long) const @ 0x000000001ba75140 in /usr/bin/clickhouse 11. /build/src/DataTypes/Serializations/SerializationArray.cpp:312: DB::SerializationArray::serializeBinaryBulkWithMultipleStreams(DB::IColumn const&, unsigned long, unsigned long, DB::ISerialization::SerializeBinaryBulkSettings&, std::shared_ptr&) const @ 0x000000001ba313fa in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationArray.cpp:339: DB::SerializationArray::serializeBinaryBulkWithMultipleStreams(DB::IColumn const&, unsigned long, unsigned long, DB::ISerialization::SerializeBinaryBulkSettings&, std::shared_ptr&) const @ 0x000000001ba31612 in /usr/bin/clickhouse 13. /build/src/Formats/NativeWriter.cpp:62: DB::writeData(DB::ISerialization const&, COW::immutable_ptr const&, DB::WriteBuffer&, unsigned long, unsigned long) @ 0x000000001e699b55 in /usr/bin/clickhouse 14. /build/src/Formats/NativeWriter.cpp:163: DB::NativeWriter::write(DB::Block const&) @ 0x000000001e699856 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2035: DB::TCPHandler::sendData(DB::Block const&) @ 0x000000001e652275 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:946: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f8b9 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 24. ? @ 0x00007f1a0debbac3 in ? 25. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:15:44.019089 [ 672 ] {47a2a2df-1559-4a65-8108-d4b4bd172b32} TCPHandler: Client has gone away. 2024.10.22 10:15:44.019560 [ 12919 ] {23e6a890-ecf3-4841-9b3e-da9d234a9323} DynamicQueryHandler: Code: 497. DB::Exception: u_02015_denied: Not enough privileges. To execute this query, it's necessary to have the grant INSERT(id, s) ON test_9lrk5uvf.async_inserts. (ACCESS_DENIED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:520: auto bool DB::ContextAccess::checkAccessImplHelper>, std::basic_string_view>, std::vector>>(DB::AccessFlags, std::basic_string_view> const&, std::basic_string_view> const&, std::vector> const&) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b05c7cd in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:560: bool DB::ContextAccess::checkAccessImplHelper>, std::basic_string_view>, std::vector>>(DB::AccessFlags, std::basic_string_view> const&, std::basic_string_view> const&, std::vector> const&) const @ 0x000000001b05b196 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:631: bool DB::ContextAccess::checkAccessImpl>, std::vector>>(DB::AccessFlags const&, std::basic_string_view>, std::basic_string_view> const&, std::vector> const&) const @ 0x000000001b022630 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:703: DB::ContextAccess::checkAccess(DB::AccessFlags const&, std::basic_string_view>, std::basic_string_view>, std::vector> const&) const @ 0x000000001b01d6f1 in /usr/bin/clickhouse 10. /build/src/Interpreters/Context.cpp:1200: void DB::Context::checkAccessImpl>>(DB::AccessFlags const&, String const&, String const&, std::vector> const&) const @ 0x000000001bde986e in /usr/bin/clickhouse 11. /build/src/Interpreters/Context.cpp:1212: DB::Context::checkAccess(DB::AccessFlags const&, DB::StorageID const&, std::vector> const&) const @ 0x000000001bdc9a40 in /usr/bin/clickhouse 12. /build/src/Interpreters/AsynchronousInsertQueue.cpp:224: DB::AsynchronousInsertQueue::push(std::shared_ptr, std::shared_ptr) @ 0x000000001bd7ba52 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:948: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b383f in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 15. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 16. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 17. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:15:44.800367 [ 50154 ] {cd967f2c-eba7-456f-8835-9ff423fcdab2} executeQuery: Code: 62. DB::Exception: Syntax error: failed at position 8 ('$'): $$ab . Expected one of: ALL, DISTINCT ON, DISTINCT, TOP, not empty list of expressions, list of expressions, list of elements, expression with optional alias, element of expression with optional alias, lambda expression, CAST operator, NOT, INTERVAL, CASE, DATE, TIMESTAMP, tuple, collection of literals, array, number, literal, NULL, Bool, true, false, string literal, asterisk, qualified asterisk, compound identifier, identifier, COLUMNS matcher, COLUMNS, qualified COLUMNS matcher, substitution, MySQL-style global variable. (SYNTAX_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:49586) (comment: 01949_heredoc_unfinished.sh) (in query: SELECT $$ab ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b2043aa in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:80: DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000b204355 in /usr/bin/clickhouse 6. /build/src/Parsers/parseQuery.cpp:363: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long) @ 0x000000001f483067 in /usr/bin/clickhouse 7. /build/src/Parsers/parseQuery.cpp:375: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long) @ 0x000000001f483146 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:714: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b1408 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:15:44.801451 [ 50154 ] {cd967f2c-eba7-456f-8835-9ff423fcdab2} DynamicQueryHandler: Code: 62. DB::Exception: Syntax error: failed at position 8 ('$'): $$ab . Expected one of: ALL, DISTINCT ON, DISTINCT, TOP, not empty list of expressions, list of expressions, list of elements, expression with optional alias, element of expression with optional alias, lambda expression, CAST operator, NOT, INTERVAL, CASE, DATE, TIMESTAMP, tuple, collection of literals, array, number, literal, NULL, Bool, true, false, string literal, asterisk, qualified asterisk, compound identifier, identifier, COLUMNS matcher, COLUMNS, qualified COLUMNS matcher, substitution, MySQL-style global variable. (SYNTAX_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b2043aa in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:80: DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000b204355 in /usr/bin/clickhouse 6. /build/src/Parsers/parseQuery.cpp:363: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long) @ 0x000000001f483067 in /usr/bin/clickhouse 7. /build/src/Parsers/parseQuery.cpp:375: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long) @ 0x000000001f483146 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:714: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b1408 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:15:44.814868 [ 50154 ] {617b7c6b-685e-41ab-b3dd-15e5d265103f} executeQuery: Code: 62. DB::Exception: Syntax error: failed at position 8 ('$'): $$ . Expected one of: ALL, DISTINCT ON, DISTINCT, TOP, not empty list of expressions, list of expressions, list of elements, expression with optional alias, element of expression with optional alias, lambda expression, CAST operator, NOT, INTERVAL, CASE, DATE, TIMESTAMP, tuple, collection of literals, array, number, literal, NULL, Bool, true, false, string literal, asterisk, qualified asterisk, compound identifier, identifier, COLUMNS matcher, COLUMNS, qualified COLUMNS matcher, substitution, MySQL-style global variable. (SYNTAX_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:49592) (comment: 01949_heredoc_unfinished.sh) (in query: SELECT $$ ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b2043aa in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:80: DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000b204355 in /usr/bin/clickhouse 6. /build/src/Parsers/parseQuery.cpp:363: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long) @ 0x000000001f483067 in /usr/bin/clickhouse 7. /build/src/Parsers/parseQuery.cpp:375: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long) @ 0x000000001f483146 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:714: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b1408 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:15:44.815643 [ 50154 ] {617b7c6b-685e-41ab-b3dd-15e5d265103f} DynamicQueryHandler: Code: 62. DB::Exception: Syntax error: failed at position 8 ('$'): $$ . Expected one of: ALL, DISTINCT ON, DISTINCT, TOP, not empty list of expressions, list of expressions, list of elements, expression with optional alias, element of expression with optional alias, lambda expression, CAST operator, NOT, INTERVAL, CASE, DATE, TIMESTAMP, tuple, collection of literals, array, number, literal, NULL, Bool, true, false, string literal, asterisk, qualified asterisk, compound identifier, identifier, COLUMNS matcher, COLUMNS, qualified COLUMNS matcher, substitution, MySQL-style global variable. (SYNTAX_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b2043aa in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:80: DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000b204355 in /usr/bin/clickhouse 6. /build/src/Parsers/parseQuery.cpp:363: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long) @ 0x000000001f483067 in /usr/bin/clickhouse 7. /build/src/Parsers/parseQuery.cpp:375: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long) @ 0x000000001f483146 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:714: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b1408 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:15:44.825803 [ 1139 ] {4f7e77f1-9afb-4e34-a97a-1573c1af92a8} ConnectionPoolWithFailover: Connection failed at try â„–1, reason: Code: 210. DB::NetException: Net Exception: Network is unreachable (255.255.255.255:9000). (NETWORK_ERROR) (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:15:44.959525 [ 1139 ] {4f7e77f1-9afb-4e34-a97a-1573c1af92a8} executeQuery: Code: 519. DB::NetException: All attempts to get table structure failed. Log: . (NO_REMOTE_SHARD_AVAILABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41162) (comment: 01956_skip_unavailable_shards_excessive_attempts.sh) (in query: select * from remote('255.255.255.255', system.one) settings use_hedged_requests=0), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type>, String&) @ 0x000000001da52833 in /usr/bin/clickhouse 6. /build/src/Storages/getStructureOfRemoteTable.cpp:166: DB::getStructureOfRemoteTable(DB::Cluster const&, DB::StorageID const&, std::shared_ptr, std::shared_ptr const&) @ 0x000000001da513d6 in /usr/bin/clickhouse 7. /build/src/TableFunctions/TableFunctionRemote.cpp:345: DB::TableFunctionRemote::getActualTableStructure(std::shared_ptr, bool) const @ 0x000000001a9506e2 in /usr/bin/clickhouse 8. /build/src/TableFunctions/TableFunctionRemote.cpp:305: DB::TableFunctionRemote::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a94fbf6 in /usr/bin/clickhouse 9. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 10. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 11. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:15:44.959593 [ 50154 ] {f562fd61-ac89-4e41-86fa-54d99c5ac343} executeQuery: Code: 62. DB::Exception: Syntax error: failed at position 8 ('$'): $ . Expected one of: ALL, DISTINCT ON, DISTINCT, TOP, not empty list of expressions, list of expressions, list of elements, expression with optional alias, element of expression with optional alias, lambda expression, CAST operator, NOT, INTERVAL, CASE, DATE, TIMESTAMP, tuple, collection of literals, array, number, literal, NULL, Bool, true, false, string literal, asterisk, qualified asterisk, compound identifier, identifier, COLUMNS matcher, COLUMNS, qualified COLUMNS matcher, substitution, MySQL-style global variable. (SYNTAX_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:49594) (comment: 01949_heredoc_unfinished.sh) (in query: SELECT $ ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b2043aa in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:80: DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000b204355 in /usr/bin/clickhouse 6. /build/src/Parsers/parseQuery.cpp:363: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long) @ 0x000000001f483067 in /usr/bin/clickhouse 7. /build/src/Parsers/parseQuery.cpp:375: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long) @ 0x000000001f483146 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:714: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b1408 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:15:44.960839 [ 50154 ] {f562fd61-ac89-4e41-86fa-54d99c5ac343} DynamicQueryHandler: Code: 62. DB::Exception: Syntax error: failed at position 8 ('$'): $ . Expected one of: ALL, DISTINCT ON, DISTINCT, TOP, not empty list of expressions, list of expressions, list of elements, expression with optional alias, element of expression with optional alias, lambda expression, CAST operator, NOT, INTERVAL, CASE, DATE, TIMESTAMP, tuple, collection of literals, array, number, literal, NULL, Bool, true, false, string literal, asterisk, qualified asterisk, compound identifier, identifier, COLUMNS matcher, COLUMNS, qualified COLUMNS matcher, substitution, MySQL-style global variable. (SYNTAX_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b2043aa in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:80: DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000b204355 in /usr/bin/clickhouse 6. /build/src/Parsers/parseQuery.cpp:363: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long) @ 0x000000001f483067 in /usr/bin/clickhouse 7. /build/src/Parsers/parseQuery.cpp:375: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long) @ 0x000000001f483146 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:714: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b1408 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:15:44.961260 [ 1139 ] {4f7e77f1-9afb-4e34-a97a-1573c1af92a8} TCPHandler: Code: 519. DB::NetException: All attempts to get table structure failed. Log: . (NO_REMOTE_SHARD_AVAILABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type>, String&) @ 0x000000001da52833 in /usr/bin/clickhouse 6. /build/src/Storages/getStructureOfRemoteTable.cpp:166: DB::getStructureOfRemoteTable(DB::Cluster const&, DB::StorageID const&, std::shared_ptr, std::shared_ptr const&) @ 0x000000001da513d6 in /usr/bin/clickhouse 7. /build/src/TableFunctions/TableFunctionRemote.cpp:345: DB::TableFunctionRemote::getActualTableStructure(std::shared_ptr, bool) const @ 0x000000001a9506e2 in /usr/bin/clickhouse 8. /build/src/TableFunctions/TableFunctionRemote.cpp:305: DB::TableFunctionRemote::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a94fbf6 in /usr/bin/clickhouse 9. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac10bb3 in /usr/bin/clickhouse 10. /build/src/Interpreters/Context.cpp:1744: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdcde37 in /usr/bin/clickhouse 11. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:15:45.433819 [ 672 ] {758d6400-bb98-4399-8f87-8075b8fcb4c2} executeQuery: Code: 6. DB::Exception: Illegal character '\x0d' in partition id starting with 'test_'. (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41172) (comment: 01944_insert_partition_by.sql) (in query: INSERT INTO FUNCTION s3('http://localhost:9001/foo/test_{_partition_id}.csv', 'admin', '[HIDDEN]', 'CSV', 'id Int32, val String') PARTITION BY val FORMAT Values), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, String&&) @ 0x000000001d60ff8c in /usr/bin/clickhouse 6. /build/src/Storages/PartitionedSink.cpp:139: DB::PartitionedSink::validatePartitionKey(String const&, bool) @ 0x000000001d60f37f in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:967: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d974656 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d97428e in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d60de9d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d60eef5 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:15:45.517876 [ 672 ] {758d6400-bb98-4399-8f87-8075b8fcb4c2} TCPHandler: Code: 6. DB::Exception: Illegal character '\x0d' in partition id starting with 'test_'. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, String&&) @ 0x000000001d60ff8c in /usr/bin/clickhouse 6. /build/src/Storages/PartitionedSink.cpp:139: DB::PartitionedSink::validatePartitionKey(String const&, bool) @ 0x000000001d60f37f in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:967: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d974656 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d97428e in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d60de9d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d60eef5 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:15:45.660166 [ 672 ] {e6ee2c84-5b92-49f3-b458-59997bdbb14f} executeQuery: Code: 6. DB::Exception: Illegal character '\x00' in partition id starting with 'test_abc'. (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41172) (comment: 01944_insert_partition_by.sql) (in query: INSERT INTO FUNCTION s3('http://localhost:9001/foo/test_{_partition_id}.csv', 'admin', '[HIDDEN]', 'CSV', 'id Int32, val String') PARTITION BY val FORMAT Values), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, String&&) @ 0x000000001d60ff8c in /usr/bin/clickhouse 6. /build/src/Storages/PartitionedSink.cpp:139: DB::PartitionedSink::validatePartitionKey(String const&, bool) @ 0x000000001d60f37f in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:967: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d974656 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d97428e in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d60de9d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d60eef5 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:15:45.742879 [ 672 ] {e6ee2c84-5b92-49f3-b458-59997bdbb14f} TCPHandler: Code: 6. DB::Exception: Illegal character '\x00' in partition id starting with 'test_abc'. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, String&&) @ 0x000000001d60ff8c in /usr/bin/clickhouse 6. /build/src/Storages/PartitionedSink.cpp:139: DB::PartitionedSink::validatePartitionKey(String const&, bool) @ 0x000000001d60f37f in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:967: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d974656 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d97428e in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d60de9d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d60eef5 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:15:46.096913 [ 672 ] {28277888-154d-408f-b3e4-292fcc8c3100} executeQuery: Code: 6. DB::Exception: Incorrect non-UTF8 sequence in key. (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41172) (comment: 01944_insert_partition_by.sql) (in query: INSERT INTO FUNCTION s3('http://localhost:9001/foo/test_{_partition_id}.csv', 'admin', '[HIDDEN]', 'CSV', 'id Int32, val String') PARTITION BY val FORMAT Values), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [35]) @ 0x000000000b207fde in /usr/bin/clickhouse 6. /build/src/Storages/StorageS3.cpp:964: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d974612 in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d97428e in /usr/bin/clickhouse 8. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d60de9d in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d60eef5 in /usr/bin/clickhouse 10. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:15:46.178444 [ 672 ] {28277888-154d-408f-b3e4-292fcc8c3100} TCPHandler: Code: 6. DB::Exception: Incorrect non-UTF8 sequence in key. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [35]) @ 0x000000000b207fde in /usr/bin/clickhouse 6. /build/src/Storages/StorageS3.cpp:964: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d974612 in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d97428e in /usr/bin/clickhouse 8. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d60de9d in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d60eef5 in /usr/bin/clickhouse 10. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:15:46.321252 [ 672 ] {742f53ea-1792-4a5d-97d9-b30fbce1864c} executeQuery: Code: 6. DB::Exception: Illegal character '\x7d' in partition id starting with 'test_abc'. (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41172) (comment: 01944_insert_partition_by.sql) (in query: INSERT INTO FUNCTION s3('http://localhost:9001/foo/test_{_partition_id}.csv', 'admin', '[HIDDEN]', 'CSV', 'id Int32, val String') PARTITION BY val FORMAT Values), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, String&&) @ 0x000000001d60ff8c in /usr/bin/clickhouse 6. /build/src/Storages/PartitionedSink.cpp:139: DB::PartitionedSink::validatePartitionKey(String const&, bool) @ 0x000000001d60f37f in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:967: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d974656 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d97428e in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d60de9d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d60eef5 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:15:46.403223 [ 672 ] {742f53ea-1792-4a5d-97d9-b30fbce1864c} TCPHandler: Code: 6. DB::Exception: Illegal character '\x7d' in partition id starting with 'test_abc'. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, String&&) @ 0x000000001d60ff8c in /usr/bin/clickhouse 6. /build/src/Storages/PartitionedSink.cpp:139: DB::PartitionedSink::validatePartitionKey(String const&, bool) @ 0x000000001d60f37f in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:967: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d974656 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d97428e in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d60de9d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d60eef5 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:15:46.544915 [ 672 ] {9dad68d9-3a2e-4995-ab22-4a738849ab80} executeQuery: Code: 6. DB::Exception: Illegal character '\x2a' in partition id starting with 'test_abc'. (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41172) (comment: 01944_insert_partition_by.sql) (in query: INSERT INTO FUNCTION s3('http://localhost:9001/foo/test_{_partition_id}.csv', 'admin', '[HIDDEN]', 'CSV', 'id Int32, val String') PARTITION BY val FORMAT Values), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, String&&) @ 0x000000001d60ff8c in /usr/bin/clickhouse 6. /build/src/Storages/PartitionedSink.cpp:139: DB::PartitionedSink::validatePartitionKey(String const&, bool) @ 0x000000001d60f37f in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:967: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d974656 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d97428e in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d60de9d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d60eef5 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:15:46.626526 [ 672 ] {9dad68d9-3a2e-4995-ab22-4a738849ab80} TCPHandler: Code: 6. DB::Exception: Illegal character '\x2a' in partition id starting with 'test_abc'. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, String&&) @ 0x000000001d60ff8c in /usr/bin/clickhouse 6. /build/src/Storages/PartitionedSink.cpp:139: DB::PartitionedSink::validatePartitionKey(String const&, bool) @ 0x000000001d60f37f in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:967: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d974656 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d97428e in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d60de9d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d60eef5 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:15:46.827468 [ 6076 ] {0057ff4d-8173-4435-8415-c5a753c8f5ec} ConnectionPoolWithFailover: Connection failed at try â„–1, reason: Code: 210. DB::NetException: Net Exception: Network is unreachable (255.255.255.255:9000). (NETWORK_ERROR) (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:15:46.963273 [ 672 ] {8ceffa35-8706-4fe2-b3fa-f8cb58f5b9d1} executeQuery: Code: 36. DB::Exception: Incorrect key length (not empty, max 1023 characters), got: 0. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41172) (comment: 01944_insert_partition_by.sql) (in query: INSERT INTO FUNCTION s3('http://localhost:9001/foo/{_partition_id}', 'admin', '[HIDDEN]', 'CSV', 'id Int32, val String') PARTITION BY val FORMAT Values), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9214f3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageS3.cpp:961: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d974589 in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d97428e in /usr/bin/clickhouse 8. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d60de9d in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d60eef5 in /usr/bin/clickhouse 10. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:15:47.018939 [ 672 ] {8ceffa35-8706-4fe2-b3fa-f8cb58f5b9d1} TCPHandler: Code: 36. DB::Exception: Incorrect key length (not empty, max 1023 characters), got: 0. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9214f3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageS3.cpp:961: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d974589 in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d97428e in /usr/bin/clickhouse 8. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d60de9d in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d60eef5 in /usr/bin/clickhouse 10. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:15:47.295267 [ 672 ] {72eeaee4-f20c-4c21-9152-2ef995223068} executeQuery: Code: 36. DB::Exception: Bucket name length is out of bounds in virtual hosted style S3 URI: ''. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41172) (comment: 01944_insert_partition_by.sql) (in query: INSERT INTO FUNCTION s3('http://localhost:9001/{_partition_id}/key.csv', 'admin', '[HIDDEN]', 'CSV', 'id Int32, val String') PARTITION BY val FORMAT Values), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/IO/S3/URI.cpp:119: DB::S3::URI::validateBucket(String const&, Poco::URI const&) @ 0x000000001a9ac76b in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:946: DB::PartitionedStorageS3Sink::validateBucket(String const&) @ 0x000000001d9743e0 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:915: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d97425c in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d60de9d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d60eef5 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:15:47.350791 [ 672 ] {72eeaee4-f20c-4c21-9152-2ef995223068} TCPHandler: Code: 36. DB::Exception: Bucket name length is out of bounds in virtual hosted style S3 URI: ''. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/IO/S3/URI.cpp:119: DB::S3::URI::validateBucket(String const&, Poco::URI const&) @ 0x000000001a9ac76b in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:946: DB::PartitionedStorageS3Sink::validateBucket(String const&) @ 0x000000001d9743e0 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:915: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d97425c in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d60de9d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d60eef5 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:15:47.625353 [ 672 ] {b95f852d-b92a-46ad-8296-4618bbd57002} executeQuery: Code: 6. DB::Exception: Illegal character '\x2f' in partition id starting with 'aa'. (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41172) (comment: 01944_insert_partition_by.sql) (in query: INSERT INTO FUNCTION s3('http://localhost:9001/{_partition_id}/key.csv', 'admin', '[HIDDEN]', 'CSV', 'id Int32, val String') PARTITION BY val FORMAT Values), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, String&&) @ 0x000000001d60ff8c in /usr/bin/clickhouse 6. /build/src/Storages/PartitionedSink.cpp:139: DB::PartitionedSink::validatePartitionKey(String const&, bool) @ 0x000000001d60f37f in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:952: DB::PartitionedStorageS3Sink::validateBucket(String const&) @ 0x000000001d9744c4 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:915: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d97425c in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d60de9d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d60eef5 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:15:47.681934 [ 672 ] {b95f852d-b92a-46ad-8296-4618bbd57002} TCPHandler: Code: 6. DB::Exception: Illegal character '\x2f' in partition id starting with 'aa'. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, String&&) @ 0x000000001d60ff8c in /usr/bin/clickhouse 6. /build/src/Storages/PartitionedSink.cpp:139: DB::PartitionedSink::validatePartitionKey(String const&, bool) @ 0x000000001d60f37f in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:952: DB::PartitionedStorageS3Sink::validateBucket(String const&) @ 0x000000001d9744c4 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:915: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d97425c in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d60de9d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d60eef5 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:15:48.771842 [ 12929 ] {13e29f24-c7e6-482b-9136-686a7f08cc68} ConnectionPoolWithFailover: Connection failed at try â„–1, reason: Code: 210. DB::NetException: Net Exception: Network is unreachable (255.255.255.255:9000). (NETWORK_ERROR) (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:15:48.793201 [ 6248 ] {13e29f24-c7e6-482b-9136-686a7f08cc68} ConnectionPoolWithFailover: Connection failed at try â„–1, reason: Code: 210. DB::NetException: Net Exception: Network is unreachable (255.255.255.255:9000). (NETWORK_ERROR) (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:15:52.748739 [ 50237 ] {8f052cb2-7710-4391-bab9-8b629047f145} executeQuery: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:33474). (NETWORK_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33474) (in query: SELECT DISTINCT arrayJoin(extractAll(name, '[\\w_]{2,}')) AS res FROM (SELECT * FROM viewIfPermitted(SELECT name FROM system.functions ELSE null('name String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT name FROM system.table_engines ELSE null('name String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT name FROM system.formats ELSE null('name String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT name FROM system.table_functions ELSE null('name String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT name FROM system.data_type_families ELSE null('name String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT name FROM system.merge_tree_settings ELSE null('name String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT name FROM system.settings ELSE null('name String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT cluster FROM system.clusters ELSE null('cluster String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT macro FROM system.macros ELSE null('macro String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT policy_name FROM system.storage_policies ELSE null('policy_name String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT concat(func.name, comb.name) AS x FROM system.functions AS func CROSS JOIN system.aggregate_function_combinators AS comb WHERE is_aggregate ELSE null('x String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT name FROM system.databases LIMIT 10000 ELSE null('name String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT DISTINCT name FROM system.tables LIMIT 10000 ELSE null('name String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT DISTINCT name FROM system.dictionaries LIMIT 10000 ELSE null('name String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT DISTINCT name FROM system.columns LIMIT 10000 ELSE null('name String'))) WHERE notEmpty(res)), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2036: DB::TCPHandler::sendData(DB::Block const&) @ 0x000000001e652292 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:946: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f8b9 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:15:52.768304 [ 50237 ] {8f052cb2-7710-4391-bab9-8b629047f145} TCPHandler: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:33474). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2036: DB::TCPHandler::sendData(DB::Block const&) @ 0x000000001e652292 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:946: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f8b9 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:15:52.768888 [ 50237 ] {8f052cb2-7710-4391-bab9-8b629047f145} TCPHandler: Client has gone away. 2024.10.22 10:15:55.627052 [ 50242 ] {7402bdbf-f9fa-4512-8f1a-e2f548f84e73} executeQuery: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt32: While processing accurateCast(1e35, 'UInt32'). (CANNOT_CONVERT_TYPE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33544) (comment: 01906_bigint_accurate_cast_ubsan.sql) (in query: SELECT accurateCast(1e35, 'UInt32');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7db2ae in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)::operator(), DB::DataTypeNumber>>(DB::DataTypeNumber const&) const @ 0x000000000b7d3597 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)&&) @ 0x000000000b7d24c0 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7d2109 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7d2066 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7d2000 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7d1fa0 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7d1f48 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 2024.10.22 10:15:55.628539 [ 50242 ] {7402bdbf-f9fa-4512-8f1a-e2f548f84e73} TCPHandler: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt32: While processing accurateCast(1e35, 'UInt32'). (CANNOT_CONVERT_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7db2ae in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)::operator(), DB::DataTypeNumber>>(DB::DataTypeNumber const&) const @ 0x000000000b7d3597 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)&&) @ 0x000000000b7d24c0 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7d2109 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7d2066 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7d2000 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7d1fa0 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7d1f48 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 2024.10.22 10:15:55.886566 [ 50242 ] {30c973f6-2fa3-4236-94eb-d778a8983d00} executeQuery: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt64: While processing accurateCast(1e35, 'UInt64'). (CANNOT_CONVERT_TYPE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33544) (comment: 01906_bigint_accurate_cast_ubsan.sql) (in query: SELECT accurateCast(1e35, 'UInt64');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7e820e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)::operator(), DB::DataTypeNumber>>(DB::DataTypeNumber const&) const @ 0x000000000b7e0497 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)&&) @ 0x000000000b7df3c0 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7df009 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7def66 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7def00 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7deea0 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7dee48 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 2024.10.22 10:15:55.890542 [ 50242 ] {30c973f6-2fa3-4236-94eb-d778a8983d00} TCPHandler: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt64: While processing accurateCast(1e35, 'UInt64'). (CANNOT_CONVERT_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7e820e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)::operator(), DB::DataTypeNumber>>(DB::DataTypeNumber const&) const @ 0x000000000b7e0497 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)&&) @ 0x000000000b7df3c0 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7df009 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7def66 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7def00 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7deea0 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7dee48 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 2024.10.22 10:15:56.190444 [ 50242 ] {68250090-b9c0-4aba-ae29-7f835320a2ee} executeQuery: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt128: While processing accurateCast(1e35, 'UInt128'). (CANNOT_CONVERT_TYPE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33544) (comment: 01906_bigint_accurate_cast_ubsan.sql) (in query: SELECT accurateCast(1e35, 'UInt128');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber>, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7f518e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)::operator(), DB::DataTypeNumber>>>(DB::DataTypeNumber> const&) const @ 0x000000000b7ed417 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)&&) @ 0x000000000b7ec340 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7ebf89 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ebee6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ebe80 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ebe20 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7ebdc8 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 2024.10.22 10:15:56.192622 [ 50242 ] {68250090-b9c0-4aba-ae29-7f835320a2ee} TCPHandler: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt128: While processing accurateCast(1e35, 'UInt128'). (CANNOT_CONVERT_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber>, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7f518e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)::operator(), DB::DataTypeNumber>>>(DB::DataTypeNumber> const&) const @ 0x000000000b7ed417 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)&&) @ 0x000000000b7ec340 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7ebf89 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ebee6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ebe80 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ebe20 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7ebdc8 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 2024.10.22 10:15:56.491752 [ 50242 ] {25d89847-3830-430b-9c41-86ddeb16140b} executeQuery: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt256: While processing accurateCast(1e35, 'UInt256'). (CANNOT_CONVERT_TYPE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33544) (comment: 01906_bigint_accurate_cast_ubsan.sql) (in query: SELECT accurateCast(1e35, 'UInt256');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber>, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b8020ee in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)::operator(), DB::DataTypeNumber>>>(DB::DataTypeNumber> const&) const @ 0x000000000b7fa3b7 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)&&) @ 0x000000000b7f92e0 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7f8f29 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7f8e86 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7f8e20 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7f8dc0 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7f8d68 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 2024.10.22 10:15:56.493439 [ 50242 ] {25d89847-3830-430b-9c41-86ddeb16140b} TCPHandler: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt256: While processing accurateCast(1e35, 'UInt256'). (CANNOT_CONVERT_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber>, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b8020ee in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)::operator(), DB::DataTypeNumber>>>(DB::DataTypeNumber> const&) const @ 0x000000000b7fa3b7 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)&&) @ 0x000000000b7f92e0 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7f8f29 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7f8e86 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7f8e20 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7f8dc0 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7f8d68 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 2024.10.22 10:15:56.852737 [ 50242 ] {2beaf2ae-71a4-4618-8b7a-f1bee58fea89} executeQuery: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt64: While processing accurateCast(100000000000000000000., 'UInt64'). (CANNOT_CONVERT_TYPE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33544) (comment: 01906_bigint_accurate_cast_ubsan.sql) (in query: SELECT accurateCast(1e20, 'UInt64');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7e820e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)::operator(), DB::DataTypeNumber>>(DB::DataTypeNumber const&) const @ 0x000000000b7e0497 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)&&) @ 0x000000000b7df3c0 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7df009 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7def66 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7def00 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7deea0 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7dee48 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 2024.10.22 10:15:56.854325 [ 50242 ] {2beaf2ae-71a4-4618-8b7a-f1bee58fea89} TCPHandler: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt64: While processing accurateCast(100000000000000000000., 'UInt64'). (CANNOT_CONVERT_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7e820e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)::operator(), DB::DataTypeNumber>>(DB::DataTypeNumber const&) const @ 0x000000000b7e0497 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)&&) @ 0x000000000b7df3c0 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7df009 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7def66 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7def00 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7deea0 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7dee48 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 2024.10.22 10:15:56.864303 [ 50242 ] {2ce387d9-b660-4419-a66e-0716d15efe7d} executeQuery: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt128: While processing accurateCast(100000000000000000000., 'UInt128'). (CANNOT_CONVERT_TYPE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33544) (comment: 01906_bigint_accurate_cast_ubsan.sql) (in query: SELECT accurateCast(1e20, 'UInt128');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber>, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7f518e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)::operator(), DB::DataTypeNumber>>>(DB::DataTypeNumber> const&) const @ 0x000000000b7ed417 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)&&) @ 0x000000000b7ec340 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7ebf89 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ebee6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ebe80 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ebe20 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7ebdc8 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 2024.10.22 10:15:56.865860 [ 50242 ] {2ce387d9-b660-4419-a66e-0716d15efe7d} TCPHandler: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt128: While processing accurateCast(100000000000000000000., 'UInt128'). (CANNOT_CONVERT_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber>, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7f518e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)::operator(), DB::DataTypeNumber>>>(DB::DataTypeNumber> const&) const @ 0x000000000b7ed417 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)&&) @ 0x000000000b7ec340 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7ebf89 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ebee6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ebe80 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ebe20 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7ebdc8 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 2024.10.22 10:15:56.875326 [ 50242 ] {9778a6eb-fa3b-4291-a32b-9e39522d60b6} executeQuery: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt256: While processing accurateCast(100000000000000000000., 'UInt256'). (CANNOT_CONVERT_TYPE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33544) (comment: 01906_bigint_accurate_cast_ubsan.sql) (in query: SELECT accurateCast(1e20, 'UInt256');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber>, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b8020ee in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)::operator(), DB::DataTypeNumber>>>(DB::DataTypeNumber> const&) const @ 0x000000000b7fa3b7 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)&&) @ 0x000000000b7f92e0 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7f8f29 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7f8e86 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7f8e20 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7f8dc0 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7f8d68 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 2024.10.22 10:15:56.877117 [ 50242 ] {9778a6eb-fa3b-4291-a32b-9e39522d60b6} TCPHandler: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt256: While processing accurateCast(100000000000000000000., 'UInt256'). (CANNOT_CONVERT_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber>, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b8020ee in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)::operator(), DB::DataTypeNumber>>>(DB::DataTypeNumber> const&) const @ 0x000000000b7fa3b7 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)&&) @ 0x000000000b7f92e0 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7f8f29 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7f8e86 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7f8e20 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7f8dc0 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7f8d68 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 2024.10.22 10:15:57.206112 [ 50242 ] {8819aad1-11d1-4ec6-99bd-7587d86c7a5f} executeQuery: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type Int64: While processing accurateCast(10000000000000000000., 'Int64'). (CANNOT_CONVERT_TYPE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33544) (comment: 01906_bigint_accurate_cast_ubsan.sql) (in query: SELECT accurateCast(1e19, 'Int64');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b835c8e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)::operator(), DB::DataTypeNumber>>(DB::DataTypeNumber const&) const @ 0x000000000b82df17 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)&&) @ 0x000000000b82ce40 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b82ca89 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b82c9e6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b82c980 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b82c920 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b82c8c8 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 2024.10.22 10:15:57.207789 [ 50242 ] {8819aad1-11d1-4ec6-99bd-7587d86c7a5f} TCPHandler: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type Int64: While processing accurateCast(10000000000000000000., 'Int64'). (CANNOT_CONVERT_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b835c8e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)::operator(), DB::DataTypeNumber>>(DB::DataTypeNumber const&) const @ 0x000000000b82df17 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)&&) @ 0x000000000b82ce40 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b82ca89 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b82c9e6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b82c980 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b82c920 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b82c8c8 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 2024.10.22 10:16:01.779756 [ 12916 ] {6efc492f-e649-4574-84b3-641daca2cf77} executeQuery: Code: 43. DB::Exception: Illegal type AggregateFunction(quantile, UInt8) of argument for aggregate function sum: While processing toTypeName(initializeAggregation('sumState', initializeAggregation('quantileState', 0))). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51706) (comment: 01890_state_of_state.sql) (in query: SELECT toTypeName(initializeAggregation('sumState', initializeAggregation('quantileState', 0)));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSum.cpp:66: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSum(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000015dc6f67 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:199: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac06cde in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 17. /build/src/Functions/initializeAggregation.cpp:86: DB::(anonymous namespace)::FunctionInitializeAggregation::getReturnTypeImpl(std::vector> const&) const @ 0x000000000f1de52d in /usr/bin/clickhouse 18. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 2024.10.22 10:16:01.779818 [ 50242 ] {23019eb3-d90b-4874-917e-b31c97362149} executeQuery: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 100.00, current rows: 1.00 million: While executing Remote: While processing (SELECT count() FROM nums_in_mem_dist WHERE rand() > 0) AS _subquery56: While processing count() / ((SELECT count() FROM nums_in_mem_dist WHERE rand() > 0) AS _subquery56). (TOO_MANY_ROWS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51720) (comment: 01882_scalar_subquery_exception.sql) (in query: select count() / (select count() from nums_in_mem_dist where rand() > 0) from system.one;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b87c2a4 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f10f1 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:01.863319 [ 12930 ] {dd5b39d1-1dcc-41a6-a094-496ac5717697} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::1]:9000 -> [::1]:47544). (NETWORK_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47544) (comment: 01882_scalar_subquery_exception.sql) (in query: SELECT count() FROM `test_1p6kkjpf`.`nums_in_mem` WHERE rand() > 0), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:96: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf2424 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2121: DB::TCPHandler::sendProgress() @ 0x000000001e64fcbd in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:979: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64fb3b in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:01.863472 [ 50242 ] {23019eb3-d90b-4874-917e-b31c97362149} TCPHandler: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 100.00, current rows: 1.00 million: While executing Remote: While processing (SELECT count() FROM nums_in_mem_dist WHERE rand() > 0) AS _subquery56: While processing count() / ((SELECT count() FROM nums_in_mem_dist WHERE rand() > 0) AS _subquery56). (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b87c2a4 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f10f1 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:01.863523 [ 12916 ] {6efc492f-e649-4574-84b3-641daca2cf77} TCPHandler: Code: 43. DB::Exception: Illegal type AggregateFunction(quantile, UInt8) of argument for aggregate function sum: While processing toTypeName(initializeAggregation('sumState', initializeAggregation('quantileState', 0))). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSum.cpp:66: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSum(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000015dc6f67 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:199: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac06cde in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 17. /build/src/Functions/initializeAggregation.cpp:86: DB::(anonymous namespace)::FunctionInitializeAggregation::getReturnTypeImpl(std::vector> const&) const @ 0x000000000f1de52d in /usr/bin/clickhouse 18. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 2024.10.22 10:16:01.870928 [ 12930 ] {dd5b39d1-1dcc-41a6-a094-496ac5717697} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::1]:9000 -> [::1]:47544). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:96: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf2424 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2121: DB::TCPHandler::sendProgress() @ 0x000000001e64fcbd in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:979: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64fb3b in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:01.871460 [ 12930 ] {dd5b39d1-1dcc-41a6-a094-496ac5717697} TCPHandler: Client has gone away. 2024.10.22 10:16:02.130532 [ 12916 ] {c4fc0ef5-8110-47ef-88e3-e56eaef24e05} executeQuery: Code: 43. DB::Exception: Illegal type AggregateFunction(uniq, UInt8) of argument of aggregate function max because the values of that data type are not comparable: While processing hex(toString(initializeAggregation('maxState', initializeAggregation('uniqState', 0)))). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51706) (comment: 01890_state_of_state.sql) (in query: SELECT hex(toString(initializeAggregation('maxState', initializeAggregation('uniqState', 0))));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:1315: DB::AggregateFunctionsSingleValue>>::AggregateFunctionsSingleValue(std::shared_ptr const&) @ 0x00000000153c7075 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/HelpersMinMaxAny.h:47: DB::IAggregateFunction* DB::createAggregateFunctionSingleValue(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000153b3a7f in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionMax.cpp:16: DB::(anonymous namespace)::createAggregateFunctionMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000153b314d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:199: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac06cde in /usr/bin/clickhouse 18. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 19. /build/src/Functions/initializeAggregation.cpp:86: DB::(anonymous namespace)::FunctionInitializeAggregation::getReturnTypeImpl(std::vector> const&) const @ 0x000000000f1de52d in /usr/bin/clickhouse 20. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 2024.10.22 10:16:02.131789 [ 12916 ] {c4fc0ef5-8110-47ef-88e3-e56eaef24e05} TCPHandler: Code: 43. DB::Exception: Illegal type AggregateFunction(uniq, UInt8) of argument of aggregate function max because the values of that data type are not comparable: While processing hex(toString(initializeAggregation('maxState', initializeAggregation('uniqState', 0)))). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:1315: DB::AggregateFunctionsSingleValue>>::AggregateFunctionsSingleValue(std::shared_ptr const&) @ 0x00000000153c7075 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/HelpersMinMaxAny.h:47: DB::IAggregateFunction* DB::createAggregateFunctionSingleValue(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000153b3a7f in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionMax.cpp:16: DB::(anonymous namespace)::createAggregateFunctionMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000153b314d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:199: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac06cde in /usr/bin/clickhouse 18. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 19. /build/src/Functions/initializeAggregation.cpp:86: DB::(anonymous namespace)::FunctionInitializeAggregation::getReturnTypeImpl(std::vector> const&) const @ 0x000000000f1de52d in /usr/bin/clickhouse 20. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 2024.10.22 10:16:02.360135 [ 12916 ] {01ffd032-1567-4aa1-9269-cbdc634dcc07} executeQuery: Code: 43. DB::Exception: Illegal type AggregateFunction(uniq, UInt64) of argument for aggregate function quantile. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51706) (comment: 01890_state_of_state.sql) (in query: SELECT toTypeName(quantileState(x)) FROM (SELECT uniqState(number) AS x FROM numbers(1000));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionQuantile.cpp:53: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionQuantile(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000014691829 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:199: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac06cde in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 2024.10.22 10:16:02.361576 [ 12916 ] {01ffd032-1567-4aa1-9269-cbdc634dcc07} TCPHandler: Code: 43. DB::Exception: Illegal type AggregateFunction(uniq, UInt64) of argument for aggregate function quantile. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionQuantile.cpp:53: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionQuantile(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000014691829 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:199: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac06cde in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 2024.10.22 10:16:02.381512 [ 12916 ] {446bf5df-8ca6-44c2-a957-72dcfdb35690} executeQuery: Code: 43. DB::Exception: Illegal type AggregateFunction(uniq, UInt64) of argument for aggregate function quantile. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51706) (comment: 01890_state_of_state.sql) (in query: SELECT hex(toString(quantileState(x))) FROM (SELECT uniqState(number) AS x FROM numbers(1000));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionQuantile.cpp:53: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionQuantile(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000014691829 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:199: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac06cde in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 2024.10.22 10:16:02.382890 [ 12916 ] {446bf5df-8ca6-44c2-a957-72dcfdb35690} TCPHandler: Code: 43. DB::Exception: Illegal type AggregateFunction(uniq, UInt64) of argument for aggregate function quantile. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionQuantile.cpp:53: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionQuantile(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000014691829 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:199: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac06cde in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 2024.10.22 10:16:04.603438 [ 12916 ] {06cd8081-d96b-4b34-827f-44fb495397d7} executeQuery: Code: 403. DB::Exception: Illegal expression '0' in JOIN ON section: While processing 0. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT t1.key FROM t1 INNER ANY JOIN t2 ON t1.id == t2.id AND t2.key == t2.key2 AND t1.key == t1.key2 AND 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb61b6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 10:16:04.604425 [ 12916 ] {06cd8081-d96b-4b34-827f-44fb495397d7} TCPHandler: Code: 403. DB::Exception: Illegal expression '0' in JOIN ON section: While processing 0. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb61b6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 10:16:06.084807 [ 1674 ] {041d44e0-3555-4ebb-8cd9-8aa3368bdd4f} executeQuery: Code: 70. DB::Exception: Conversion from AggregateFunction(sum, UInt8) to AggregateFunction(sum, Int32) is not supported: while converting source column pv to destination column pv. (CANNOT_CONVERT_TYPE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51800) (comment: 01880_materialized_view_to_table_type_check.sql) (in query: CREATE MATERIALIZED VIEW test_mv to test(`id` Int32, `pv` AggregateFunction(sum, Int32)) as SELECT id, sumState(1) as pv from test_input group by id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:3224: DB::FunctionCast::createAggregateFunctionWrapper(std::shared_ptr const&, DB::DataTypeAggregateFunction const*) const @ 0x000000000b20330f in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:4192: DB::FunctionCast::prepareImpl(std::shared_ptr const&, std::shared_ptr const&, bool) const @ 0x000000000b2009ae in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:3922: DB::FunctionCast::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const @ 0x000000000b1fec3c in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:3848: DB::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x000000000b1f9c2d in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2875: DB::FunctionCast::prepare(std::vector> const&) const @ 0x000000000b1f945c in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:272: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89aa9 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:1310: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x000000001bc92eec in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:1236: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f521d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:06.085731 [ 1674 ] {041d44e0-3555-4ebb-8cd9-8aa3368bdd4f} TCPHandler: Code: 70. DB::Exception: Conversion from AggregateFunction(sum, UInt8) to AggregateFunction(sum, Int32) is not supported: while converting source column pv to destination column pv. (CANNOT_CONVERT_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:3224: DB::FunctionCast::createAggregateFunctionWrapper(std::shared_ptr const&, DB::DataTypeAggregateFunction const*) const @ 0x000000000b20330f in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:4192: DB::FunctionCast::prepareImpl(std::shared_ptr const&, std::shared_ptr const&, bool) const @ 0x000000000b2009ae in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:3922: DB::FunctionCast::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const @ 0x000000000b1fec3c in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:3848: DB::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x000000000b1f9c2d in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2875: DB::FunctionCast::prepare(std::vector> const&) const @ 0x000000000b1f945c in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:272: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89aa9 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:1310: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x000000001bc92eec in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:1236: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f521d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:07.032043 [ 12925 ] {f7b83b83-531d-48da-a853-38c01a13f60c} executeQuery: Code: 36. DB::Exception: Illegal address passed to function parseAddress: the address begins with opening square bracket, but no closing square bracket found. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51814) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('[::1', system.one) FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [133]) @ 0x000000001a9980be in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:28: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997c86 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.032947 [ 12925 ] {f7b83b83-531d-48da-a853-38c01a13f60c} TCPHandler: Code: 36. DB::Exception: Illegal address passed to function parseAddress: the address begins with opening square bracket, but no closing square bracket found. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [133]) @ 0x000000001a9980be in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:28: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997c86 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.189620 [ 12925 ] {5bf6a3c0-e5f6-4f69-a9f8-e672c2937f3e} executeQuery: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1]. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51814) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('::1]', system.one) FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8f4493 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997eb4 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.190944 [ 12925 ] {5bf6a3c0-e5f6-4f69-a9f8-e672c2937f3e} TCPHandler: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1]. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8f4493 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997eb4 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.200843 [ 12925 ] {3e99928d-4d52-4c5a-8d95-e27c92a1260d} executeQuery: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51814) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('::1', system.one) FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8f4493 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997eb4 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.202037 [ 12925 ] {3e99928d-4d52-4c5a-8d95-e27c92a1260d} TCPHandler: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8f4493 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997eb4 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.348953 [ 12925 ] {bd2e2a0a-e426-4b57-90a2-8fe78103ec18} executeQuery: Code: 36. DB::Exception: Illegal port prefix passed to function parseAddress: [::1]. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51814) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('[::1][::1]', system.one) FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8f4493 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:39: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997d63 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.350087 [ 12925 ] {bd2e2a0a-e426-4b57-90a2-8fe78103ec18} TCPHandler: Code: 36. DB::Exception: Illegal port prefix passed to function parseAddress: [::1]. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8f4493 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:39: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997d63 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.358023 [ 12925 ] {101244a2-4610-4c36-8c4c-9b0cc4138bea} executeQuery: Code: 36. DB::Exception: Illegal port prefix passed to function parseAddress: [::1. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51814) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('[::1][::1', system.one) FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8f4493 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:39: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997d63 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.358990 [ 12925 ] {101244a2-4610-4c36-8c4c-9b0cc4138bea} TCPHandler: Code: 36. DB::Exception: Illegal port prefix passed to function parseAddress: [::1. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8f4493 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:39: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997d63 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.366634 [ 12925 ] {0aa045cd-5eba-494f-a046-43eeca3a9bcd} executeQuery: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1]. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51814) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('[::1]::1]', system.one) FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8f4493 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997eb4 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.367490 [ 12925 ] {0aa045cd-5eba-494f-a046-43eeca3a9bcd} TCPHandler: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1]. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8f4493 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997eb4 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.406051 [ 12925 ] {070f3895-7620-4bf7-b67c-36c5d04be4e1} executeQuery: Code: 36. DB::Exception: Illegal address passed to function parseAddress: the address begins with opening square bracket, but no closing square bracket found. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51814) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('[::1') FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [133]) @ 0x000000001a9980be in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:28: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997c86 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.406923 [ 12925 ] {070f3895-7620-4bf7-b67c-36c5d04be4e1} TCPHandler: Code: 36. DB::Exception: Illegal address passed to function parseAddress: the address begins with opening square bracket, but no closing square bracket found. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [133]) @ 0x000000001a9980be in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:28: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997c86 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.414965 [ 12925 ] {45cb448e-883a-455f-8909-3d34c4eb5b9b} executeQuery: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1]. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51814) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('::1]') FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8f4493 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997eb4 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.416215 [ 12925 ] {45cb448e-883a-455f-8909-3d34c4eb5b9b} TCPHandler: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1]. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8f4493 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997eb4 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.423400 [ 12925 ] {c7befe77-2cd3-4b0e-9262-d3c4ce9b7a63} executeQuery: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51814) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('::1') FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8f4493 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997eb4 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.424419 [ 12925 ] {c7befe77-2cd3-4b0e-9262-d3c4ce9b7a63} TCPHandler: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8f4493 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997eb4 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.431552 [ 12925 ] {690f37d7-d6dd-4d50-87e5-9295e246a7d6} executeQuery: Code: 36. DB::Exception: Illegal port prefix passed to function parseAddress: [::1]. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51814) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('[::1][::1]') FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8f4493 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:39: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997d63 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.433060 [ 12925 ] {690f37d7-d6dd-4d50-87e5-9295e246a7d6} TCPHandler: Code: 36. DB::Exception: Illegal port prefix passed to function parseAddress: [::1]. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8f4493 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:39: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997d63 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.440606 [ 12925 ] {00e8564a-1272-4d49-b9c9-1d996245b1f3} executeQuery: Code: 36. DB::Exception: Illegal port prefix passed to function parseAddress: [::1. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51814) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('[::1][::1') FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8f4493 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:39: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997d63 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.441892 [ 12925 ] {00e8564a-1272-4d49-b9c9-1d996245b1f3} TCPHandler: Code: 36. DB::Exception: Illegal port prefix passed to function parseAddress: [::1. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8f4493 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:39: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997d63 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.449331 [ 12925 ] {d6e20423-569c-4202-9f3d-33623c920e15} executeQuery: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1]. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51814) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('[::1]::1]') FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8f4493 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997eb4 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.450652 [ 12925 ] {d6e20423-569c-4202-9f3d-33623c920e15} TCPHandler: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1]. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8f4493 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a997eb4 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa4d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:16:07.940989 [ 12916 ] {2dc7f2c7-5467-49dd-a07c-07432c5797b8} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(toUInt8(id), 1)' of type 'UInt16'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: -- `e + 1` is UInt16 SELECT DISTINCT t1.key, toUInt8(t1.id) as e FROM t1 INNER ANY JOIN t2 ON t1.id == t2.id AND e + 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c812 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:07.942003 [ 12916 ] {2dc7f2c7-5467-49dd-a07c-07432c5797b8} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(toUInt8(id), 1)' of type 'UInt16'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c812 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:08.699062 [ 12916 ] {da6521d5-d0cc-4fe8-b29c-ea2f397a1549} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'id' of type 'Int32'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t1.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c812 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:08.700007 [ 12916 ] {da6521d5-d0cc-4fe8-b29c-ea2f397a1549} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'id' of type 'Int32'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c812 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:08.867335 [ 12916 ] {e1704f9c-4bd3-4830-9ea5-308fac6f6d70} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 't2.id' of type 'Int32'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c823 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:08.868533 [ 12916 ] {e1704f9c-4bd3-4830-9ea5-308fac6f6d70} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 't2.id' of type 'Int32'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c823 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:08.896997 [ 12916 ] {b04c50ad-e66e-4938-8936-cc5ca18cb90b} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(id, 2)' of type 'Int64'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t1.id + 2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c812 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:08.897760 [ 12916 ] {b04c50ad-e66e-4938-8936-cc5ca18cb90b} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(id, 2)' of type 'Int64'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c812 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:09.026980 [ 12925 ] {c1c8c174-b554-431f-b5db-3a97f8ffb73b} executeQuery: Code: 80. DB::Exception: Query from view test_encls2dm.view_no_nulls returned Nullable column having not Nullable type in structure. If query from view has JOIN, it may be cause by different values of 'join_use_nulls' setting. You may explicitly specify 'join_use_nulls' in 'CREATE VIEW' query to avoid this error. (INCORRECT_QUERY) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60038) (comment: 01866_view_persist_settings.sql) (in query: SELECT * FROM view_no_nulls;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/StorageView.cpp:190: DB::StorageView::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001da2c3c0 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:09.027073 [ 12916 ] {ab72bbee-dbf1-4d62-978b-e5b64bfb89cf} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(t2.id, 2)' of type 'Int64'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t2.id + 2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c823 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:09.027761 [ 12925 ] {c1c8c174-b554-431f-b5db-3a97f8ffb73b} TCPHandler: Code: 80. DB::Exception: Query from view test_encls2dm.view_no_nulls returned Nullable column having not Nullable type in structure. If query from view has JOIN, it may be cause by different values of 'join_use_nulls' setting. You may explicitly specify 'join_use_nulls' in 'CREATE VIEW' query to avoid this error. (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/StorageView.cpp:190: DB::StorageView::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001da2c3c0 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:09.028084 [ 12916 ] {ab72bbee-dbf1-4d62-978b-e5b64bfb89cf} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(t2.id, 2)' of type 'Int64'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c823 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:09.075244 [ 12916 ] {668d315f-1daf-4e30-9fdf-aa2f797eb520} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'key' of type 'String'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t1.key;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c812 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:09.076215 [ 12916 ] {668d315f-1daf-4e30-9fdf-aa2f797eb520} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'key' of type 'String'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c812 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:09.106526 [ 12916 ] {90e9e110-c6a1-427c-97a0-37be1c601d8e} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 't2.key' of type 'String'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t2.key;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c823 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:09.107501 [ 12916 ] {90e9e110-c6a1-427c-97a0-37be1c601d8e} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 't2.key' of type 'String'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c823 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:09.122922 [ 12916 ] {66df4663-0c79-49b6-807c-17120bc5c595} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t2.id) OR (t2.key2 IS NULL)': While processing (id = t2.id) OR (t2.key2 IS NULL). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 JOIN t2 ON t2.key == t2.key2 AND (t1.id == t2.id OR isNull(t2.key2));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:09.124130 [ 12916 ] {66df4663-0c79-49b6-807c-17120bc5c595} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t2.id) OR (t2.key2 IS NULL)': While processing (id = t2.id) OR (t2.key2 IS NULL). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:09.268683 [ 12916 ] {76dfc45b-6527-4bfa-ba87-4dd73903e21b} executeQuery: Code: 403. DB::Exception: Cannot get JOIN keys from JOIN ON section: '(t2.key = t2.key2) OR (id = t2.id)', found keys: [Left keys: [] Right keys [] Condition columns: '', 'equals(t2.key, t2.key2)']; [Left keys: [id] Right keys [t2.id] Condition columns: '', '']. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 JOIN t2 ON t2.key == t2.key2 OR t1.id == t2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:658: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa569d in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:09.269473 [ 12916 ] {76dfc45b-6527-4bfa-ba87-4dd73903e21b} TCPHandler: Code: 403. DB::Exception: Cannot get JOIN keys from JOIN ON section: '(t2.key = t2.key2) OR (id = t2.id)', found keys: [Left keys: [] Right keys [] Condition columns: '', 'equals(t2.key, t2.key2)']; [Left keys: [id] Right keys [t2.id] Condition columns: '', '']. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:658: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa569d in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:09.467011 [ 12916 ] {b3ec0a0a-e569-43a5-b684-78515ce29f80} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '((key = key2) AND (key != 'XXX')) OR (id = t2.id)': While processing ((key = key2) AND (key != 'XXX')) OR (id = t2.id). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 JOIN t2 ON (t2.key == t2.key2 AND (t1.key == t1.key2 AND t1.key != 'XXX' OR t1.id == t2.id)) AND t1.id == t2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 24. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 25. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:16:09.557227 [ 672 ] {dfdf0409-a761-42d5-ad1a-93f46b2acda6} executeQuery: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:58480). (NETWORK_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:58480) (comment: 01851_hedged_connections_external_tables.sql) (in query: DESC TABLE numbers(2)), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:1090: DB::TCPHandler::sendProfileInfo(DB::ProfileInfo const&) @ 0x000000001e652f0d in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:966: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f9dc in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:09.557436 [ 12916 ] {b3ec0a0a-e569-43a5-b684-78515ce29f80} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '((key = key2) AND (key != 'XXX')) OR (id = t2.id)': While processing ((key = key2) AND (key != 'XXX')) OR (id = t2.id). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 24. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 25. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:16:09.557651 [ 12917 ] {7f231970-8058-4c50-a0c3-c6e94807ddcd} executeQuery: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:58490). (NETWORK_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:58490) (comment: 01851_hedged_connections_external_tables.sql) (in query: SELECT `number` FROM numbers(2) WHERE `number` GLOBAL IN (`_subquery60`)), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:1090: DB::TCPHandler::sendProfileInfo(DB::ProfileInfo const&) @ 0x000000001e652f0d in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:966: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f9dc in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:09.666676 [ 12933 ] {39e0fcf2-75cd-4392-bb21-8e134d481a31} executeQuery: Code: 524. DB::Exception: Trying to ALTER DROP column n3 which is referenced by materialized view ['01851_merge_tree_mv']. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60068) (comment: 01851_clear_column_referenced_by_mv.sql) (in query: ALTER TABLE `01851_merge_tree` DROP COLUMN n3;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3324: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de94fd6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:09.755792 [ 672 ] {dfdf0409-a761-42d5-ad1a-93f46b2acda6} TCPHandler: Can't send logs to client: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:58480). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2073: DB::TCPHandler::sendLogData(DB::Block const&) @ 0x000000001e659e55 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:2150: DB::TCPHandler::sendLogs() @ 0x000000001e6504ff in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:672: DB::TCPHandler::runImpl() @ 0x000000001e648af7 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:16:09.755900 [ 12933 ] {39e0fcf2-75cd-4392-bb21-8e134d481a31} TCPHandler: Code: 524. DB::Exception: Trying to ALTER DROP column n3 which is referenced by materialized view ['01851_merge_tree_mv']. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3324: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de94fd6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:09.755935 [ 12917 ] {7f231970-8058-4c50-a0c3-c6e94807ddcd} TCPHandler: Can't send logs to client: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:58490). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2073: DB::TCPHandler::sendLogData(DB::Block const&) @ 0x000000001e659e55 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:2150: DB::TCPHandler::sendLogs() @ 0x000000001e6504ff in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:672: DB::TCPHandler::runImpl() @ 0x000000001e648af7 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:16:09.756023 [ 12925 ] {26190098-aad9-456a-a46b-601d1adbf3e5} executeQuery: Code: 80. DB::Exception: Query from view test_encls2dm.view_no_nulls returned Nullable column having not Nullable type in structure. If query from view has JOIN, it may be cause by different values of 'join_use_nulls' setting. You may explicitly specify 'join_use_nulls' in 'CREATE VIEW' query to avoid this error. (INCORRECT_QUERY) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60038) (comment: 01866_view_persist_settings.sql) (in query: SELECT * FROM view_no_nulls;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/StorageView.cpp:190: DB::StorageView::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001da2c3c0 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:09.756261 [ 672 ] {dfdf0409-a761-42d5-ad1a-93f46b2acda6} TCPHandler: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:58480). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:1090: DB::TCPHandler::sendProfileInfo(DB::ProfileInfo const&) @ 0x000000001e652f0d in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:966: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f9dc in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:09.756597 [ 12917 ] {7f231970-8058-4c50-a0c3-c6e94807ddcd} TCPHandler: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:58490). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:1090: DB::TCPHandler::sendProfileInfo(DB::ProfileInfo const&) @ 0x000000001e652f0d in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:966: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f9dc in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:09.756819 [ 12925 ] {26190098-aad9-456a-a46b-601d1adbf3e5} TCPHandler: Code: 80. DB::Exception: Query from view test_encls2dm.view_no_nulls returned Nullable column having not Nullable type in structure. If query from view has JOIN, it may be cause by different values of 'join_use_nulls' setting. You may explicitly specify 'join_use_nulls' in 'CREATE VIEW' query to avoid this error. (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/StorageView.cpp:190: DB::StorageView::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001da2c3c0 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:09.756888 [ 672 ] {dfdf0409-a761-42d5-ad1a-93f46b2acda6} TCPHandler: Client has gone away. 2024.10.22 10:16:09.757468 [ 12917 ] {7f231970-8058-4c50-a0c3-c6e94807ddcd} TCPHandler: Client has gone away. 2024.10.22 10:16:09.774193 [ 12933 ] {6950fa4c-4996-4f98-bb2e-22a34f5e5e79} executeQuery: Code: 524. DB::Exception: Trying to ALTER DROP column n2 which is referenced by materialized view ['01851_merge_tree_mv']. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60068) (comment: 01851_clear_column_referenced_by_mv.sql) (in query: ALTER TABLE `01851_merge_tree` DROP COLUMN n2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3324: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de94fd6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:09.775004 [ 12933 ] {6950fa4c-4996-4f98-bb2e-22a34f5e5e79} TCPHandler: Code: 524. DB::Exception: Trying to ALTER DROP column n2 which is referenced by materialized view ['01851_merge_tree_mv']. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3324: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de94fd6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:09.877749 [ 12916 ] {0fac1d8d-231f-47ea-94f7-640ff4da16e7} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected 'id >= t2.id': While processing id >= t2.id. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: -- non-equi condition containing columns from different tables doesn't supported yet SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t1.id >= t2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:09.878952 [ 12916 ] {0fac1d8d-231f-47ea-94f7-640ff4da16e7} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected 'id >= t2.id': While processing id >= t2.id. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:09.902436 [ 12916 ] {d1c9a10e-31b9-47df-9705-4f53730ee2e9} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected 'id >= length(t2.key)': While processing id >= length(t2.key). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ANY JOIN t2 ON t1.id == t2.id AND t2.key == t2.key2 AND t1.key == t1.key2 AND t1.id >= length(t2.key);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:09.903814 [ 12916 ] {d1c9a10e-31b9-47df-9705-4f53730ee2e9} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected 'id >= length(t2.key)': While processing id >= length(t2.key). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:10.091423 [ 12916 ] {723c98b0-f71c-4a37-b109-e92c0807ce00} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(t22.key = t22.key2) OR (id = t22.id)': While processing (t22.key = t22.key2) OR (id = t22.id). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT 't22', * FROM t1 JOIN t22 ON t1.id == t22.idd and (t22.key == t22.key2 OR t1.id == t22.id);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:10.092465 [ 12916 ] {723c98b0-f71c-4a37-b109-e92c0807ce00} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(t22.key = t22.key2) OR (id = t22.id)': While processing (t22.key = t22.key2) OR (id = t22.id). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:10.110199 [ 12916 ] {d3d8186c-b1cb-4c62-bab9-4dbfbc58ae8e} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT 't22', * FROM t1 JOIN t22 ON t1.id == t22.idd and (t1.id == t22.id OR t22.key == t22.key2);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:10.111477 [ 12916 ] {d3d8186c-b1cb-4c62-bab9-4dbfbc58ae8e} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:10.126618 [ 12916 ] {117c7ae2-f24c-4d2e-93a5-83e290f3f611} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(t22.key = t22.key2) OR (id = t22.id)': While processing (t22.key = t22.key2) OR (id = t22.id). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT 't22', * FROM t1 JOIN t22 ON (t22.key == t22.key2 OR t1.id == t22.id) and t1.id == t22.idd;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:10.127520 [ 12916 ] {117c7ae2-f24c-4d2e-93a5-83e290f3f611} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(t22.key = t22.key2) OR (id = t22.id)': While processing (t22.key = t22.key2) OR (id = t22.id). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:10.141145 [ 12916 ] {ce951a4b-9202-4b6a-9871-cdd5a2eda9ed} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT 't22', * FROM t1 JOIN t22 ON (t1.id == t22.id OR t22.key == t22.key2) and t1.id == t22.idd;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:10.142060 [ 12916 ] {ce951a4b-9202-4b6a-9871-cdd5a2eda9ed} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:10.173834 [ 12916 ] {af79066d-a29f-4c8d-acba-72d0e62a71fc} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT 't22', * FROM t1 JOIN t22 ON (t1.id == t22.id OR t22.key == t22.key2) and (t1.id == t22.idd AND (t1.key2 = 'a1' OR t1.key2 = 'a2' OR t1.key2 = 'a3' OR t1.key2 = 'a4' OR t1.key2 = 'a5' OR t1.key2 = 'a6' OR t1.key2 = 'a7' OR t1.key2 = 'a8' OR t1.key2 = 'a9' OR t1.key2 = 'a10' OR t1.key2 = 'a11' OR t1.key2 = 'a12' OR t1.key2 = 'a13' OR t1.key2 = 'a14' OR t1.key2 = 'a15' OR t1.key2 = 'a16' OR t1.key2 = 'a17' OR t1.key2 = 'a18' OR t1.key2 = 'a19' OR t1.key2 = '111'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:10.175498 [ 12916 ] {af79066d-a29f-4c8d-acba-72d0e62a71fc} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:11.483502 [ 12916 ] {3df1a909-8e43-47a3-8a22-4b4a87b32362} executeQuery: Code: 403. DB::Exception: Illegal expression '0' in JOIN ON section: While processing 0. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT t1.key FROM t1 INNER ANY JOIN t2 ON t1.id == t2.id AND t2.key == t2.key2 AND t1.key == t1.key2 AND 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb61b6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 10:16:11.485007 [ 12916 ] {3df1a909-8e43-47a3-8a22-4b4a87b32362} TCPHandler: Code: 403. DB::Exception: Illegal expression '0' in JOIN ON section: While processing 0. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb61b6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 10:16:12.044262 [ 12933 ] {bdd507c5-e185-40ec-a954-be6607f2f81a} executeQuery: Code: 36. DB::Exception: CellId is invalid.: While processing s2ToGeo(toUInt64(-1)). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60092) (comment: 01849_geoToS2.sql) (in query: SELECT s2ToGeo(toUInt64(-1));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [19]) @ 0x000000000b220b1e in /usr/bin/clickhouse 6. /build/src/Functions/s2ToGeo.cpp:100: DB::(anonymous namespace)::FunctionS2ToGeo::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001251d8a4 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:16:12.045500 [ 12933 ] {bdd507c5-e185-40ec-a954-be6607f2f81a} TCPHandler: Code: 36. DB::Exception: CellId is invalid.: While processing s2ToGeo(toUInt64(-1)). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [19]) @ 0x000000000b220b1e in /usr/bin/clickhouse 6. /build/src/Functions/s2ToGeo.cpp:100: DB::(anonymous namespace)::FunctionS2ToGeo::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001251d8a4 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:16:12.181864 [ 12933 ] {6d901bbe-0743-43e8-8b8d-1036a9ffb944} executeQuery: Code: 43. DB::Exception: Illegal type Float64 of argument 1 of function s2ToGeo. Must be UInt64: While processing s2ToGeo(nan). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60092) (comment: 01849_geoToS2.sql) (in query: SELECT s2ToGeo(nan);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, int&&, String&&) @ 0x000000000e47c348 in /usr/bin/clickhouse 6. /build/src/Functions/s2ToGeo.cpp:59: DB::(anonymous namespace)::FunctionS2ToGeo::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001251de6a in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:16:12.182819 [ 12933 ] {6d901bbe-0743-43e8-8b8d-1036a9ffb944} TCPHandler: Code: 43. DB::Exception: Illegal type Float64 of argument 1 of function s2ToGeo. Must be UInt64: While processing s2ToGeo(nan). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, int&&, String&&) @ 0x000000000e47c348 in /usr/bin/clickhouse 6. /build/src/Functions/s2ToGeo.cpp:59: DB::(anonymous namespace)::FunctionS2ToGeo::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001251de6a in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:16:12.345407 [ 12933 ] {3bd4f487-5d79-4486-a6cb-5cc42fce24b6} executeQuery: Code: 36. DB::Exception: Point is invalid. For valid point the latitude is between -90 and 90 degrees inclusiveand the longitude is between -180 and 180 degrees inclusive.: While processing geoToS2(toFloat64(toUInt64(-1)), toFloat64(toUInt64(-1))). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60092) (comment: 01849_geoToS2.sql) (in query: SELECT geoToS2(toFloat64(toUInt64(-1)), toFloat64(toUInt64(-1)));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [147]) @ 0x000000000e47ef7e in /usr/bin/clickhouse 6. /build/src/Functions/geoToS2.cpp:114: DB::(anonymous namespace)::FunctionGeoToS2::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e47e7db in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:16:12.346866 [ 12933 ] {3bd4f487-5d79-4486-a6cb-5cc42fce24b6} TCPHandler: Code: 36. DB::Exception: Point is invalid. For valid point the latitude is between -90 and 90 degrees inclusiveand the longitude is between -180 and 180 degrees inclusive.: While processing geoToS2(toFloat64(toUInt64(-1)), toFloat64(toUInt64(-1))). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [147]) @ 0x000000000e47ef7e in /usr/bin/clickhouse 6. /build/src/Functions/geoToS2.cpp:114: DB::(anonymous namespace)::FunctionGeoToS2::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e47e7db in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:16:12.485511 [ 12933 ] {cf770bdb-2bd7-4d3e-989c-6e3efb1bf309} executeQuery: Code: 43. DB::Exception: Arguments must not be NaN: While processing geoToS2(nan, nan). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60092) (comment: 01849_geoToS2.sql) (in query: SELECT geoToS2(nan, nan);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5e521e in /usr/bin/clickhouse 6. /build/src/Functions/geoToS2.cpp:105: DB::(anonymous namespace)::FunctionGeoToS2::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e47e61c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:16:12.486642 [ 12933 ] {cf770bdb-2bd7-4d3e-989c-6e3efb1bf309} TCPHandler: Code: 43. DB::Exception: Arguments must not be NaN: While processing geoToS2(nan, nan). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5e521e in /usr/bin/clickhouse 6. /build/src/Functions/geoToS2.cpp:105: DB::(anonymous namespace)::FunctionGeoToS2::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e47e61c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:16:12.622212 [ 12933 ] {004e9164-d40f-40c3-b611-9fe5c970ea16} executeQuery: Code: 43. DB::Exception: Arguments must not be infinite: While processing geoToS2(-inf, 1.1754943508222875e-38). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60092) (comment: 01849_geoToS2.sql) (in query: SELECT geoToS2(-inf, 1.1754943508222875e-38);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [31]) @ 0x000000000d576ade in /usr/bin/clickhouse 6. /build/src/Functions/geoToS2.cpp:108: DB::(anonymous namespace)::FunctionGeoToS2::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e47e6f9 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:16:12.623276 [ 12933 ] {004e9164-d40f-40c3-b611-9fe5c970ea16} TCPHandler: Code: 43. DB::Exception: Arguments must not be infinite: While processing geoToS2(-inf, 1.1754943508222875e-38). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [31]) @ 0x000000000d576ade in /usr/bin/clickhouse 6. /build/src/Functions/geoToS2.cpp:108: DB::(anonymous namespace)::FunctionGeoToS2::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e47e6f9 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:16:14.735025 [ 12916 ] {18830c94-760f-4d73-9b0c-1fa79d8b9cd9} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(toUInt8(id), 1)' of type 'UInt16'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: -- `e + 1` is UInt16 SELECT DISTINCT t1.key, toUInt8(t1.id) as e FROM t1 INNER ANY JOIN t2 ON t1.id == t2.id AND e + 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c812 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:14.736532 [ 12916 ] {18830c94-760f-4d73-9b0c-1fa79d8b9cd9} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(toUInt8(id), 1)' of type 'UInt16'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c812 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:15.673175 [ 12916 ] {a0c00fd8-0cd2-40a1-8d2a-bb3a3f6928c9} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'id' of type 'Int32'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t1.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c812 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:15.674279 [ 12916 ] {a0c00fd8-0cd2-40a1-8d2a-bb3a3f6928c9} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'id' of type 'Int32'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c812 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:15.706971 [ 12916 ] {02b236b9-5ade-429f-b004-44962be20296} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 't2.id' of type 'Int32'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c823 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:15.707927 [ 12916 ] {02b236b9-5ade-429f-b004-44962be20296} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 't2.id' of type 'Int32'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c823 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:15.740372 [ 12916 ] {96240866-ccbc-4fa4-b711-251147aa0c04} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(id, 2)' of type 'Int64'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t1.id + 2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c812 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:15.741267 [ 12916 ] {96240866-ccbc-4fa4-b711-251147aa0c04} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(id, 2)' of type 'Int64'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c812 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:15.769619 [ 12916 ] {3215382c-c137-4afa-bb9c-6d1fcffc0010} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(t2.id, 2)' of type 'Int64'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t2.id + 2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c823 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:15.770545 [ 12916 ] {3215382c-c137-4afa-bb9c-6d1fcffc0010} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(t2.id, 2)' of type 'Int64'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c823 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:15.794374 [ 12916 ] {4604bfc8-5834-4896-beb2-2e8cb03cd9d0} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'key' of type 'String'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t1.key;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c812 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:15.795522 [ 12916 ] {4604bfc8-5834-4896-beb2-2e8cb03cd9d0} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'key' of type 'String'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c812 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:15.820347 [ 12916 ] {50112907-2794-4e84-b648-caaeb9fc8305} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 't2.key' of type 'String'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t2.key;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c823 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:15.821177 [ 12916 ] {50112907-2794-4e84-b648-caaeb9fc8305} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 't2.key' of type 'String'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc1ca01 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc1c823 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc1c7ca in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c58c99c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd3834 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:15.834226 [ 12916 ] {49b79919-eb50-4ce5-9ad8-3ef2c63c3d4b} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t2.id) OR (t2.key2 IS NULL)': While processing (id = t2.id) OR (t2.key2 IS NULL). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 JOIN t2 ON t2.key == t2.key2 AND (t1.id == t2.id OR isNull(t2.key2));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:15.835163 [ 12916 ] {49b79919-eb50-4ce5-9ad8-3ef2c63c3d4b} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t2.id) OR (t2.key2 IS NULL)': While processing (id = t2.id) OR (t2.key2 IS NULL). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:15.846571 [ 12916 ] {8edb6c55-5014-4ae5-945d-4573775e7504} executeQuery: Code: 403. DB::Exception: Cannot get JOIN keys from JOIN ON section: '(t2.key = t2.key2) OR (id = t2.id)', found keys: [Left keys: [] Right keys [] Condition columns: '', 'equals(t2.key, t2.key2)']; [Left keys: [id] Right keys [t2.id] Condition columns: '', '']. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 JOIN t2 ON t2.key == t2.key2 OR t1.id == t2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:658: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa569d in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:15.847268 [ 12916 ] {8edb6c55-5014-4ae5-945d-4573775e7504} TCPHandler: Code: 403. DB::Exception: Cannot get JOIN keys from JOIN ON section: '(t2.key = t2.key2) OR (id = t2.id)', found keys: [Left keys: [] Right keys [] Condition columns: '', 'equals(t2.key, t2.key2)']; [Left keys: [id] Right keys [t2.id] Condition columns: '', '']. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:658: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa569d in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:15.862580 [ 12916 ] {fe446f67-6462-4a6e-9098-b526a39c2882} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '((key = key2) AND (key != 'XXX')) OR (id = t2.id)': While processing ((key = key2) AND (key != 'XXX')) OR (id = t2.id). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 JOIN t2 ON (t2.key == t2.key2 AND (t1.key == t1.key2 AND t1.key != 'XXX' OR t1.id == t2.id)) AND t1.id == t2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 24. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 25. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:16:15.863527 [ 12916 ] {fe446f67-6462-4a6e-9098-b526a39c2882} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '((key = key2) AND (key != 'XXX')) OR (id = t2.id)': While processing ((key = key2) AND (key != 'XXX')) OR (id = t2.id). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 24. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 25. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:16:16.057597 [ 12916 ] {821a8ef9-0d95-4ff6-bfb9-50fbc081cac2} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected 'id >= t2.id': While processing id >= t2.id. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: -- non-equi condition containing columns from different tables doesn't supported yet SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t1.id >= t2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:16.058818 [ 12916 ] {821a8ef9-0d95-4ff6-bfb9-50fbc081cac2} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected 'id >= t2.id': While processing id >= t2.id. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:16.076147 [ 12916 ] {bd562801-dbbb-4e8a-a845-c7f1e1a355e4} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected 'id >= length(t2.key)': While processing id >= length(t2.key). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ANY JOIN t2 ON t1.id == t2.id AND t2.key == t2.key2 AND t1.key == t1.key2 AND t1.id >= length(t2.key);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:16.077107 [ 12916 ] {bd562801-dbbb-4e8a-a845-c7f1e1a355e4} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected 'id >= length(t2.key)': While processing id >= length(t2.key). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:16.312261 [ 12916 ] {1e205b10-ca4c-42d8-b1de-9900070e60d7} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(t22.key = t22.key2) OR (id = t22.id)': While processing (t22.key = t22.key2) OR (id = t22.id). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT 't22', * FROM t1 JOIN t22 ON t1.id == t22.idd and (t22.key == t22.key2 OR t1.id == t22.id);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:16.313867 [ 12916 ] {1e205b10-ca4c-42d8-b1de-9900070e60d7} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(t22.key = t22.key2) OR (id = t22.id)': While processing (t22.key = t22.key2) OR (id = t22.id). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:16.331745 [ 12916 ] {ae2b8bff-fe7a-41e6-aa4a-c56eb91e900a} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT 't22', * FROM t1 JOIN t22 ON t1.id == t22.idd and (t1.id == t22.id OR t22.key == t22.key2);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:16.333139 [ 12916 ] {ae2b8bff-fe7a-41e6-aa4a-c56eb91e900a} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:16.351662 [ 12916 ] {13a2c0a5-1516-44c4-b6d3-847bd6177a42} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(t22.key = t22.key2) OR (id = t22.id)': While processing (t22.key = t22.key2) OR (id = t22.id). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT 't22', * FROM t1 JOIN t22 ON (t22.key == t22.key2 OR t1.id == t22.id) and t1.id == t22.idd;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:16.353271 [ 12916 ] {13a2c0a5-1516-44c4-b6d3-847bd6177a42} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(t22.key = t22.key2) OR (id = t22.id)': While processing (t22.key = t22.key2) OR (id = t22.id). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:16.372857 [ 12916 ] {e4a69e51-9eaa-4de6-a644-3ba4834f9df4} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT 't22', * FROM t1 JOIN t22 ON (t1.id == t22.id OR t22.key == t22.key2) and t1.id == t22.idd;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:16.374232 [ 12916 ] {e4a69e51-9eaa-4de6-a644-3ba4834f9df4} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:16.413341 [ 12916 ] {ef57a752-5155-459a-950f-2e42c674cbc0} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51762) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT 't22', * FROM t1 JOIN t22 ON (t1.id == t22.id OR t22.key == t22.key2) and (t1.id == t22.idd AND (t1.key2 = 'a1' OR t1.key2 = 'a2' OR t1.key2 = 'a3' OR t1.key2 = 'a4' OR t1.key2 = 'a5' OR t1.key2 = 'a6' OR t1.key2 = 'a7' OR t1.key2 = 'a8' OR t1.key2 = 'a9' OR t1.key2 = 'a10' OR t1.key2 = 'a11' OR t1.key2 = 'a12' OR t1.key2 = 'a13' OR t1.key2 = 'a14' OR t1.key2 = 'a15' OR t1.key2 = 'a16' OR t1.key2 = 'a17' OR t1.key2 = 'a18' OR t1.key2 = 'a19' OR t1.key2 = '111'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:16.415350 [ 12916 ] {ef57a752-5155-459a-950f-2e42c674cbc0} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d01c756 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfb60e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfb5ee0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfb6386 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfb62ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfb5e6a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfb5d25 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa54dc in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:16:24.736175 [ 12919 ] {7d2e4b49-9cd0-42e5-8d2f-df485c3aadda} executeQuery: Code: 48. DB::Exception: Table engine Join supports only DELETE mutations. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58614) (comment: 01821_join_table_mutation.sql) (in query: ALTER TABLE join_table_mutation UPDATE name = 'some' WHERE 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4c75be in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:120: DB::StorageJoin::checkMutationIsPossible(DB::MutationCommands const&, DB::Settings const&) const @ 0x000000001d6d7f94 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:176: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7d9e4e in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:24.737101 [ 12919 ] {7d2e4b49-9cd0-42e5-8d2f-df485c3aadda} TCPHandler: Code: 48. DB::Exception: Table engine Join supports only DELETE mutations. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4c75be in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:120: DB::StorageJoin::checkMutationIsPossible(DB::MutationCommands const&, DB::Settings const&) const @ 0x000000001d6d7f94 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:176: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7d9e4e in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:29.318341 [ 1139 ] {ac0d79ae-86a5-49c5-ab26-8b6ce962b477} executeQuery: Code: 42. DB::Exception: Storage Buffer requires from 9 to 12 parameters: destination_database, destination_table, num_buckets, min_time, max_time, min_rows, max_rows, min_bytes, max_bytes[, flush_time, flush_rows, flush_bytes]. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34018) (comment: 01817_storage_buffer_parameters.sql) (in query: -- not enough args create table buffer_01817 (key Int) Engine=Buffer(currentDatabase(), data_01817, /* num_layers= */ 1, /* min_time= */ 1, /* max_time= */ 86400, /* min_rows= */ 1e9, /* max_rows= */ 1e6, /* min_bytes= */ 0 /* max_bytes= 4e6 */ );), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [205]) @ 0x000000001da9909e in /usr/bin/clickhouse 6. /build/src/Storages/StorageBuffer.cpp:1093: DB::registerStorageBuffer(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001da92656 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageBuffer(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da925bd in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageBuffer(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da9255d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001da9251d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001da924e5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 13. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:29.319730 [ 1139 ] {ac0d79ae-86a5-49c5-ab26-8b6ce962b477} TCPHandler: Code: 42. DB::Exception: Storage Buffer requires from 9 to 12 parameters: destination_database, destination_table, num_buckets, min_time, max_time, min_rows, max_rows, min_bytes, max_bytes[, flush_time, flush_rows, flush_bytes]. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [205]) @ 0x000000001da9909e in /usr/bin/clickhouse 6. /build/src/Storages/StorageBuffer.cpp:1093: DB::registerStorageBuffer(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001da92656 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageBuffer(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da925bd in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageBuffer(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da9255d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001da9251d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001da924e5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 13. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:29.328105 [ 1139 ] {cf0b330e-86d1-4cf9-a549-7904b5976a09} executeQuery: Code: 42. DB::Exception: Storage Buffer requires from 9 to 12 parameters: destination_database, destination_table, num_buckets, min_time, max_time, min_rows, max_rows, min_bytes, max_bytes[, flush_time, flush_rows, flush_bytes]. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34018) (comment: 01817_storage_buffer_parameters.sql) (in query: -- too much args create table buffer_01817 (key Int) Engine=Buffer(currentDatabase(), data_01817, /* num_layers= */ 1, /* min_time= */ 1, /* max_time= */ 86400, /* min_rows= */ 1e9, /* max_rows= */ 1e6, /* min_bytes= */ 0, /* max_bytes= */ 4e6, /* flush_time= */ 86400, /* flush_rows= */ 10, /* flush_bytes= */0, 0 );), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [205]) @ 0x000000001da9909e in /usr/bin/clickhouse 6. /build/src/Storages/StorageBuffer.cpp:1093: DB::registerStorageBuffer(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001da92656 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageBuffer(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da925bd in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageBuffer(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da9255d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001da9251d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001da924e5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 13. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:29.328839 [ 1139 ] {cf0b330e-86d1-4cf9-a549-7904b5976a09} TCPHandler: Code: 42. DB::Exception: Storage Buffer requires from 9 to 12 parameters: destination_database, destination_table, num_buckets, min_time, max_time, min_rows, max_rows, min_bytes, max_bytes[, flush_time, flush_rows, flush_bytes]. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [205]) @ 0x000000001da9909e in /usr/bin/clickhouse 6. /build/src/Storages/StorageBuffer.cpp:1093: DB::registerStorageBuffer(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001da92656 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageBuffer(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da925bd in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageBuffer(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da9255d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001da9251d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001da924e5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 13. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:31.228748 [ 12919 ] {4bd14dea-70dc-44c2-9049-f34dc9141510} executeQuery: Code: 70. DB::Exception: Cannot convert out of range floating point value to integer type. (CANNOT_CONVERT_TYPE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34102) (comment: 01804_uniq_up_to_ubsan.sql) (in query: SELECT uniqUpTo(1e100)(number) FROM numbers(5);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [65]) @ 0x000000000e1d2ebe in /usr/bin/clickhouse 6. /build/src/Common/FieldVisitorConvertToNumber.h:74: DB::FieldVisitorConvertToNumber::operator()(double const&) const @ 0x0000000012416120 in /usr/bin/clickhouse 7. /build/src/Core/Field.h:638: auto DB::Field::dispatch, DB::Field const&>(DB::FieldVisitorConvertToNumber&&, DB::Field const&) @ 0x000000001468fafa in /usr/bin/clickhouse 8. /build/src/Common/FieldVisitors.h:24: auto DB::applyVisitor, DB::Field const&>(DB::FieldVisitorConvertToNumber&&, DB::Field const&) @ 0x000000001468c71d in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionUniqUpTo.cpp:39: DB::(anonymous namespace)::createAggregateFunctionUniqUpTo(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000173ce09e in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:16:31.230341 [ 12919 ] {4bd14dea-70dc-44c2-9049-f34dc9141510} TCPHandler: Code: 70. DB::Exception: Cannot convert out of range floating point value to integer type. (CANNOT_CONVERT_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [65]) @ 0x000000000e1d2ebe in /usr/bin/clickhouse 6. /build/src/Common/FieldVisitorConvertToNumber.h:74: DB::FieldVisitorConvertToNumber::operator()(double const&) const @ 0x0000000012416120 in /usr/bin/clickhouse 7. /build/src/Core/Field.h:638: auto DB::Field::dispatch, DB::Field const&>(DB::FieldVisitorConvertToNumber&&, DB::Field const&) @ 0x000000001468fafa in /usr/bin/clickhouse 8. /build/src/Common/FieldVisitors.h:24: auto DB::applyVisitor, DB::Field const&>(DB::FieldVisitorConvertToNumber&&, DB::Field const&) @ 0x000000001468c71d in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionUniqUpTo.cpp:39: DB::(anonymous namespace)::createAggregateFunctionUniqUpTo(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000173ce09e in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:16:31.241459 [ 12919 ] {32047485-b693-4203-94e6-c765dfccfc2e} executeQuery: Code: 70. DB::Exception: Cannot convert out of range floating point value to integer type. (CANNOT_CONVERT_TYPE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34102) (comment: 01804_uniq_up_to_ubsan.sql) (in query: SELECT uniqUpTo(-1e100)(number) FROM numbers(5);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [65]) @ 0x000000000e1d2ebe in /usr/bin/clickhouse 6. /build/src/Common/FieldVisitorConvertToNumber.h:74: DB::FieldVisitorConvertToNumber::operator()(double const&) const @ 0x0000000012416120 in /usr/bin/clickhouse 7. /build/src/Core/Field.h:638: auto DB::Field::dispatch, DB::Field const&>(DB::FieldVisitorConvertToNumber&&, DB::Field const&) @ 0x000000001468fafa in /usr/bin/clickhouse 8. /build/src/Common/FieldVisitors.h:24: auto DB::applyVisitor, DB::Field const&>(DB::FieldVisitorConvertToNumber&&, DB::Field const&) @ 0x000000001468c71d in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionUniqUpTo.cpp:39: DB::(anonymous namespace)::createAggregateFunctionUniqUpTo(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000173ce09e in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:16:31.242678 [ 12919 ] {32047485-b693-4203-94e6-c765dfccfc2e} TCPHandler: Code: 70. DB::Exception: Cannot convert out of range floating point value to integer type. (CANNOT_CONVERT_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [65]) @ 0x000000000e1d2ebe in /usr/bin/clickhouse 6. /build/src/Common/FieldVisitorConvertToNumber.h:74: DB::FieldVisitorConvertToNumber::operator()(double const&) const @ 0x0000000012416120 in /usr/bin/clickhouse 7. /build/src/Core/Field.h:638: auto DB::Field::dispatch, DB::Field const&>(DB::FieldVisitorConvertToNumber&&, DB::Field const&) @ 0x000000001468fafa in /usr/bin/clickhouse 8. /build/src/Common/FieldVisitors.h:24: auto DB::applyVisitor, DB::Field const&>(DB::FieldVisitorConvertToNumber&&, DB::Field const&) @ 0x000000001468c71d in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionUniqUpTo.cpp:39: DB::(anonymous namespace)::createAggregateFunctionUniqUpTo(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000173ce09e in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:16:36.665214 [ 919 ] {379cdf66-def3-4f24-b245-ac02a7d4213e::all_1_1_0_7} MutatePlainMergeTreeTask: Code: 190. DB::Exception: Elements '[100, 200]' and '['a', 'b', 'c']' of Nested data structure (Array columns) have different array sizes (2 and 3 respectively) on row 0: while executing 'FUNCTION validateNestedArraySizes(equals(id, 0) : 13, [100, 200] :: 5, ['a', 'b', 'c'] :: 6, [10, 20, 30] :: 7) -> validateNestedArraySizes(equals(id, 0), [100, 200], ['a', 'b', 'c'], [10, 20, 30]) UInt8 : 4'. (SIZES_OF_ARRAYS_DONT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:16:36.852405 [ 5849 ] {b51bcd2d-de95-4e02-9371-dfd711f8fdc0} DistributedSink: Structure does not match (remote: n Int8 Int8(size = 0), local: n UInt64 UInt64(size = 1)), implicit conversion will be done. 2024.10.22 10:16:36.852853 [ 4365 ] {b51bcd2d-de95-4e02-9371-dfd711f8fdc0} DistributedSink: Structure does not match (remote: n Int8 Int8(size = 0), local: n UInt64 UInt64(size = 1)), implicit conversion will be done. 2024.10.22 10:16:36.979056 [ 12930 ] {e1102b46-1f75-4b8d-acd4-1c735e76dba8} executeQuery: Code: 341. DB::Exception: Exception happened during execution of mutation 'mutation_7.txt' with part 'all_1_1_0_6' reason: 'Code: 190. DB::Exception: Elements '[100, 200]' and '['a', 'b', 'c']' of Nested data structure (Array columns) have different array sizes (2 and 3 respectively) on row 0: while executing 'FUNCTION validateNestedArraySizes(equals(id, 0) : 13, [100, 200] :: 5, ['a', 'b', 'c'] :: 6, [10, 20, 30] :: 7) -> validateNestedArraySizes(equals(id, 0), [100, 200], ['a', 'b', 'c'], [10, 20, 30]) UInt8 : 4'. (SIZES_OF_ARRAYS_DONT_MATCH) (version 23.8.16.42.altinitystable (altinity build))'. This error maybe retryable or not. In case of unretryable error, mutation can be killed with KILL MUTATION query. (UNFINISHED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34176) (comment: 01788_update_nested_type_subcolumn_check.sql) (in query: alter table test_wide_nested update `info.id` = [100,200], `info.age` = [10,20,30], `info.name` = ['a','b','c'] where id = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&&, String&, String&) @ 0x000000001e0d5ca4 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeMutationStatus.cpp:26: DB::checkMutationStatus(std::optional&, std::set, std::allocator> const&) @ 0x000000001e0d5a50 in /usr/bin/clickhouse 7. /build/src/Storages/StorageMergeTree.cpp:580: DB::StorageMergeTree::waitForMutation(long, String const&, bool) @ 0x000000001e369cb8 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:550: DB::StorageMergeTree::waitForMutation(long, bool) @ 0x000000001e367868 in /usr/bin/clickhouse 9. /build/src/Storages/StorageMergeTree.cpp:619: DB::StorageMergeTree::mutate(DB::MutationCommands const&, std::shared_ptr) @ 0x000000001e36af4e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:179: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da03a in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:36.979320 [ 919 ] {379cdf66-def3-4f24-b245-ac02a7d4213e::all_1_1_0_7} virtual bool DB::MutatePlainMergeTreeTask::executeStep(): Code: 190. DB::Exception: Elements '[100, 200]' and '['a', 'b', 'c']' of Nested data structure (Array columns) have different array sizes (2 and 3 respectively) on row 0: while executing 'FUNCTION validateNestedArraySizes(equals(id, 0) : 13, [100, 200] :: 5, ['a', 'b', 'c'] :: 6, [10, 20, 30] :: 7) -> validateNestedArraySizes(equals(id, 0), [100, 200], ['a', 'b', 'c'], [10, 20, 30]) UInt8 : 4'. (SIZES_OF_ARRAYS_DONT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String const&, unsigned long&, unsigned long&, unsigned long&) @ 0x00000000127b735a in /usr/bin/clickhouse 6. /build/src/Functions/validateNestedArraySizes.cpp:108: DB::FunctionValidateNestedArraySizes::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127b6f53 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 13. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 14. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e6fb081 in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MutateTask.cpp:1137: DB::PartMergerWriter::mutateOriginalPartAndPrepareProjections() @ 0x000000001e21002a in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MutateTask.cpp:1062: DB::PartMergerWriter::execute() @ 0x000000001e2326e3 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MutateTask.cpp:1506: DB::MutateSomePartColumnsTask::executeStep() @ 0x000000001e236baa in /usr/bin/clickhouse 25. /build/src/Storages/MergeTree/MutateTask.cpp:1754: DB::MutateTask::execute() @ 0x000000001e21126f in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/MutatePlainMergeTreeTask.cpp:90: DB::MutatePlainMergeTreeTask::executeStep() @ 0x000000001e3b25b7 in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de56fed in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de57a4e in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5ff38 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>()()) std::__invoke[abi:v15000]::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001de5ff15 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001de5fef5 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:16:36.980086 [ 12930 ] {e1102b46-1f75-4b8d-acd4-1c735e76dba8} TCPHandler: Code: 341. DB::Exception: Exception happened during execution of mutation 'mutation_7.txt' with part 'all_1_1_0_6' reason: 'Code: 190. DB::Exception: Elements '[100, 200]' and '['a', 'b', 'c']' of Nested data structure (Array columns) have different array sizes (2 and 3 respectively) on row 0: while executing 'FUNCTION validateNestedArraySizes(equals(id, 0) : 13, [100, 200] :: 5, ['a', 'b', 'c'] :: 6, [10, 20, 30] :: 7) -> validateNestedArraySizes(equals(id, 0), [100, 200], ['a', 'b', 'c'], [10, 20, 30]) UInt8 : 4'. (SIZES_OF_ARRAYS_DONT_MATCH) (version 23.8.16.42.altinitystable (altinity build))'. This error maybe retryable or not. In case of unretryable error, mutation can be killed with KILL MUTATION query. (UNFINISHED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&&, String&, String&) @ 0x000000001e0d5ca4 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeMutationStatus.cpp:26: DB::checkMutationStatus(std::optional&, std::set, std::allocator> const&) @ 0x000000001e0d5a50 in /usr/bin/clickhouse 7. /build/src/Storages/StorageMergeTree.cpp:580: DB::StorageMergeTree::waitForMutation(long, String const&, bool) @ 0x000000001e369cb8 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:550: DB::StorageMergeTree::waitForMutation(long, bool) @ 0x000000001e367868 in /usr/bin/clickhouse 9. /build/src/Storages/StorageMergeTree.cpp:619: DB::StorageMergeTree::mutate(DB::MutationCommands const&, std::shared_ptr) @ 0x000000001e36af4e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:179: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da03a in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:37.203598 [ 50237 ] {5b1bd787-2350-48fa-b205-70812d4bcd54} test_l3hqz4be.dist_01683.DirectoryMonitor.default: Structure does not match (remote: n Int8 Int8(size = 0), local: n UInt64 UInt64(size = 0)), implicit conversion will be done 2024.10.22 10:16:37.219459 [ 50237 ] {5b1bd787-2350-48fa-b205-70812d4bcd54} test_l3hqz4be.dist_01683.DirectoryMonitor.default: Structure does not match (remote: n Int8 Int8(size = 0), local: n UInt64 UInt64(size = 0)), implicit conversion will be done 2024.10.22 10:16:37.471160 [ 919 ] {cf0aa0b0-7192-4cef-b2c9-46f483ad2a0e::all_1_1_0_3} MutatePlainMergeTreeTask: Code: 190. DB::Exception: Elements '[10, 20, 30]' and 'info.age' of Nested data structure (Array columns) have different array sizes (3 and 2 respectively) on row 1: while executing 'FUNCTION validateNestedArraySizes(equals(id, 1) : 9, [10, 20, 30] :: 4, info.age : 2) -> validateNestedArraySizes(equals(id, 1), [10, 20, 30], info.age) UInt8 : 3'. (SIZES_OF_ARRAYS_DONT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:16:37.472234 [ 12930 ] {7bb1f6c8-335c-4dd3-b921-6af0c3f3d9f4} executeQuery: Code: 341. DB::Exception: Exception happened during execution of mutation 'mutation_3.txt' with part 'all_1_1_0_2' reason: 'Code: 190. DB::Exception: Elements '[10, 20, 30]' and 'info.age' of Nested data structure (Array columns) have different array sizes (3 and 2 respectively) on row 1: while executing 'FUNCTION validateNestedArraySizes(equals(id, 1) : 9, [10, 20, 30] :: 4, info.age : 2) -> validateNestedArraySizes(equals(id, 1), [10, 20, 30], info.age) UInt8 : 3'. (SIZES_OF_ARRAYS_DONT_MATCH) (version 23.8.16.42.altinitystable (altinity build))'. This error maybe retryable or not. In case of unretryable error, mutation can be killed with KILL MUTATION query. (UNFINISHED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34176) (comment: 01788_update_nested_type_subcolumn_check.sql) (in query: alter table test_wide_nested update `info.id` = [100,200,300], `info.age` = [10,20,30] where id = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&&, String&, String&) @ 0x000000001e0d5ca4 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeMutationStatus.cpp:26: DB::checkMutationStatus(std::optional&, std::set, std::allocator> const&) @ 0x000000001e0d5a50 in /usr/bin/clickhouse 7. /build/src/Storages/StorageMergeTree.cpp:580: DB::StorageMergeTree::waitForMutation(long, String const&, bool) @ 0x000000001e369cb8 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:550: DB::StorageMergeTree::waitForMutation(long, bool) @ 0x000000001e367868 in /usr/bin/clickhouse 9. /build/src/Storages/StorageMergeTree.cpp:619: DB::StorageMergeTree::mutate(DB::MutationCommands const&, std::shared_ptr) @ 0x000000001e36af4e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:179: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da03a in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:37.473115 [ 12930 ] {7bb1f6c8-335c-4dd3-b921-6af0c3f3d9f4} TCPHandler: Code: 341. DB::Exception: Exception happened during execution of mutation 'mutation_3.txt' with part 'all_1_1_0_2' reason: 'Code: 190. DB::Exception: Elements '[10, 20, 30]' and 'info.age' of Nested data structure (Array columns) have different array sizes (3 and 2 respectively) on row 1: while executing 'FUNCTION validateNestedArraySizes(equals(id, 1) : 9, [10, 20, 30] :: 4, info.age : 2) -> validateNestedArraySizes(equals(id, 1), [10, 20, 30], info.age) UInt8 : 3'. (SIZES_OF_ARRAYS_DONT_MATCH) (version 23.8.16.42.altinitystable (altinity build))'. This error maybe retryable or not. In case of unretryable error, mutation can be killed with KILL MUTATION query. (UNFINISHED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&&, String&, String&) @ 0x000000001e0d5ca4 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeMutationStatus.cpp:26: DB::checkMutationStatus(std::optional&, std::set, std::allocator> const&) @ 0x000000001e0d5a50 in /usr/bin/clickhouse 7. /build/src/Storages/StorageMergeTree.cpp:580: DB::StorageMergeTree::waitForMutation(long, String const&, bool) @ 0x000000001e369cb8 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:550: DB::StorageMergeTree::waitForMutation(long, bool) @ 0x000000001e367868 in /usr/bin/clickhouse 9. /build/src/Storages/StorageMergeTree.cpp:619: DB::StorageMergeTree::mutate(DB::MutationCommands const&, std::shared_ptr) @ 0x000000001e36af4e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:179: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da03a in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:37.476102 [ 919 ] {cf0aa0b0-7192-4cef-b2c9-46f483ad2a0e::all_1_1_0_3} virtual bool DB::MutatePlainMergeTreeTask::executeStep(): Code: 190. DB::Exception: Elements '[10, 20, 30]' and 'info.age' of Nested data structure (Array columns) have different array sizes (3 and 2 respectively) on row 1: while executing 'FUNCTION validateNestedArraySizes(equals(id, 1) : 9, [10, 20, 30] :: 4, info.age : 2) -> validateNestedArraySizes(equals(id, 1), [10, 20, 30], info.age) UInt8 : 3'. (SIZES_OF_ARRAYS_DONT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String const&, unsigned long&, unsigned long&, unsigned long&) @ 0x00000000127b735a in /usr/bin/clickhouse 6. /build/src/Functions/validateNestedArraySizes.cpp:108: DB::FunctionValidateNestedArraySizes::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127b6f53 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 13. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 14. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e6fb081 in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MutateTask.cpp:1137: DB::PartMergerWriter::mutateOriginalPartAndPrepareProjections() @ 0x000000001e21002a in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MutateTask.cpp:1062: DB::PartMergerWriter::execute() @ 0x000000001e2326e3 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MutateTask.cpp:1506: DB::MutateSomePartColumnsTask::executeStep() @ 0x000000001e236baa in /usr/bin/clickhouse 25. /build/src/Storages/MergeTree/MutateTask.cpp:1754: DB::MutateTask::execute() @ 0x000000001e21126f in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/MutatePlainMergeTreeTask.cpp:90: DB::MutatePlainMergeTreeTask::executeStep() @ 0x000000001e3b25b7 in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de56fed in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de57a4e in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5ff38 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>()()) std::__invoke[abi:v15000]::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001de5ff15 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001de5fef5 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:16:37.875430 [ 50237 ] {78959726-a842-49e9-b500-32864b3be6e4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 8.00 GiB (attempt to allocate chunk of 8590372046 bytes), maximum: 953.67 MiB. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47390) (comment: 01784_parallel_formatting_memory.sql) (in query: SELECT range(65535) FROM system.one ARRAY JOIN range(65536) AS number;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001387b44e in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b28e725 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b28e5b9 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:235: COW::immutable_ptr DB::ColumnArray::replicateNumber(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d217284 in /usr/bin/clickhouse 14. /build/src/Columns/ColumnArray.cpp:975: DB::ColumnArray::replicate(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d208c5b in /usr/bin/clickhouse 15. /build/src/Columns/ColumnConst.cpp:48: DB::ColumnConst::convertToFullColumn() const @ 0x000000001d240c02 in /usr/bin/clickhouse 16. /build/src/Columns/ColumnConst.h:39: DB::ColumnConst::convertToFullColumnIfConst() const @ 0x000000000bcc4240 in /usr/bin/clickhouse 17. /build/src/Formats/NativeWriter.cpp:53: DB::writeData(DB::ISerialization const&, COW::immutable_ptr const&, DB::WriteBuffer&, unsigned long, unsigned long) @ 0x000000001e699a98 in /usr/bin/clickhouse 18. /build/src/Formats/NativeWriter.cpp:163: DB::NativeWriter::write(DB::Block const&) @ 0x000000001e699856 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2035: DB::TCPHandler::sendData(DB::Block const&) @ 0x000000001e652275 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:946: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f8b9 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:37.876462 [ 50237 ] {78959726-a842-49e9-b500-32864b3be6e4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 8.00 GiB (attempt to allocate chunk of 8590372046 bytes), maximum: 953.67 MiB. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001387b44e in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b28e725 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b28e5b9 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:235: COW::immutable_ptr DB::ColumnArray::replicateNumber(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d217284 in /usr/bin/clickhouse 14. /build/src/Columns/ColumnArray.cpp:975: DB::ColumnArray::replicate(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d208c5b in /usr/bin/clickhouse 15. /build/src/Columns/ColumnConst.cpp:48: DB::ColumnConst::convertToFullColumn() const @ 0x000000001d240c02 in /usr/bin/clickhouse 16. /build/src/Columns/ColumnConst.h:39: DB::ColumnConst::convertToFullColumnIfConst() const @ 0x000000000bcc4240 in /usr/bin/clickhouse 17. /build/src/Formats/NativeWriter.cpp:53: DB::writeData(DB::ISerialization const&, COW::immutable_ptr const&, DB::WriteBuffer&, unsigned long, unsigned long) @ 0x000000001e699a98 in /usr/bin/clickhouse 18. /build/src/Formats/NativeWriter.cpp:163: DB::NativeWriter::write(DB::Block const&) @ 0x000000001e699856 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2035: DB::TCPHandler::sendData(DB::Block const&) @ 0x000000001e652275 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:946: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f8b9 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:39.014778 [ 50113 ] {fef9dfcf-873d-48b3-8262-57e7996c16e4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 8.00 GiB (attempt to allocate chunk of 8590372542 bytes), maximum: 953.67 MiB. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47408) (comment: 01785_parallel_formatting_memory.sh) (in query: SELECT range(65535) FROM system.one ARRAY JOIN range(65536) AS number), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001387b44e in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b28e725 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b28e5b9 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:235: COW::immutable_ptr DB::ColumnArray::replicateNumber(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d217284 in /usr/bin/clickhouse 14. /build/src/Columns/ColumnArray.cpp:975: DB::ColumnArray::replicate(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d208c5b in /usr/bin/clickhouse 15. /build/src/Columns/ColumnConst.cpp:48: DB::ColumnConst::convertToFullColumn() const @ 0x000000001d240c02 in /usr/bin/clickhouse 16. /build/src/Columns/ColumnConst.h:39: DB::ColumnConst::convertToFullColumnIfConst() const @ 0x000000000bcc4240 in /usr/bin/clickhouse 17. /build/src/Formats/NativeWriter.cpp:53: DB::writeData(DB::ISerialization const&, COW::immutable_ptr const&, DB::WriteBuffer&, unsigned long, unsigned long) @ 0x000000001e699a98 in /usr/bin/clickhouse 18. /build/src/Formats/NativeWriter.cpp:163: DB::NativeWriter::write(DB::Block const&) @ 0x000000001e699856 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2035: DB::TCPHandler::sendData(DB::Block const&) @ 0x000000001e652275 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:946: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f8b9 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:39.016818 [ 50113 ] {fef9dfcf-873d-48b3-8262-57e7996c16e4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 8.00 GiB (attempt to allocate chunk of 8590372542 bytes), maximum: 953.67 MiB. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001387b44e in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b28e725 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b28e5b9 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:235: COW::immutable_ptr DB::ColumnArray::replicateNumber(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d217284 in /usr/bin/clickhouse 14. /build/src/Columns/ColumnArray.cpp:975: DB::ColumnArray::replicate(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d208c5b in /usr/bin/clickhouse 15. /build/src/Columns/ColumnConst.cpp:48: DB::ColumnConst::convertToFullColumn() const @ 0x000000001d240c02 in /usr/bin/clickhouse 16. /build/src/Columns/ColumnConst.h:39: DB::ColumnConst::convertToFullColumnIfConst() const @ 0x000000000bcc4240 in /usr/bin/clickhouse 17. /build/src/Formats/NativeWriter.cpp:53: DB::writeData(DB::ISerialization const&, COW::immutable_ptr const&, DB::WriteBuffer&, unsigned long, unsigned long) @ 0x000000001e699a98 in /usr/bin/clickhouse 18. /build/src/Formats/NativeWriter.cpp:163: DB::NativeWriter::write(DB::Block const&) @ 0x000000001e699856 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2035: DB::TCPHandler::sendData(DB::Block const&) @ 0x000000001e652275 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:946: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f8b9 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:39.665364 [ 50113 ] {d8fa390b-5250-49a9-badd-063fb978e5a0} executeQuery: Code: 44. DB::Exception: Illegal columns of arguments of function range, the function only implemented for unsigned/signed integers up to 64 bit: While processing range(toUInt256(1), 1). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47428) (comment: 01780_range_msan.sql) (in query: SELECT range(toUInt256(1), 1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/array/range.cpp:398: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000013832832 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:16:39.666431 [ 50113 ] {d8fa390b-5250-49a9-badd-063fb978e5a0} TCPHandler: Code: 44. DB::Exception: Illegal columns of arguments of function range, the function only implemented for unsigned/signed integers up to 64 bit: While processing range(toUInt256(1), 1). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/array/range.cpp:398: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000013832832 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:16:41.156490 [ 50242 ] {555b551d-a677-49c4-ac34-a4eaf2c9a3c8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 8.00 GiB (attempt to allocate chunk of 8589943992 bytes), maximum: 953.67 MiB. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47462) (comment: 01785_parallel_formatting_memory.sh) (in query: SELECT range(65535) FROM system.one ARRAY JOIN range(65536) AS number), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001387b44e in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b28e725 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b28e5b9 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:235: COW::immutable_ptr DB::ColumnArray::replicateNumber(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d217284 in /usr/bin/clickhouse 14. /build/src/Columns/ColumnArray.cpp:975: DB::ColumnArray::replicate(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d208c5b in /usr/bin/clickhouse 15. /build/src/Columns/ColumnConst.cpp:48: DB::ColumnConst::convertToFullColumn() const @ 0x000000001d240c02 in /usr/bin/clickhouse 16. /build/src/Columns/ColumnConst.h:39: DB::ColumnConst::convertToFullColumnIfConst() const @ 0x000000000bcc4240 in /usr/bin/clickhouse 17. /build/src/Formats/NativeWriter.cpp:53: DB::writeData(DB::ISerialization const&, COW::immutable_ptr const&, DB::WriteBuffer&, unsigned long, unsigned long) @ 0x000000001e699a98 in /usr/bin/clickhouse 18. /build/src/Formats/NativeWriter.cpp:163: DB::NativeWriter::write(DB::Block const&) @ 0x000000001e699856 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2035: DB::TCPHandler::sendData(DB::Block const&) @ 0x000000001e652275 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:946: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f8b9 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:41.158389 [ 50242 ] {555b551d-a677-49c4-ac34-a4eaf2c9a3c8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 8.00 GiB (attempt to allocate chunk of 8589943992 bytes), maximum: 953.67 MiB. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001387b44e in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b28e725 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b28e5b9 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:235: COW::immutable_ptr DB::ColumnArray::replicateNumber(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d217284 in /usr/bin/clickhouse 14. /build/src/Columns/ColumnArray.cpp:975: DB::ColumnArray::replicate(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d208c5b in /usr/bin/clickhouse 15. /build/src/Columns/ColumnConst.cpp:48: DB::ColumnConst::convertToFullColumn() const @ 0x000000001d240c02 in /usr/bin/clickhouse 16. /build/src/Columns/ColumnConst.h:39: DB::ColumnConst::convertToFullColumnIfConst() const @ 0x000000000bcc4240 in /usr/bin/clickhouse 17. /build/src/Formats/NativeWriter.cpp:53: DB::writeData(DB::ISerialization const&, COW::immutable_ptr const&, DB::WriteBuffer&, unsigned long, unsigned long) @ 0x000000001e699a98 in /usr/bin/clickhouse 18. /build/src/Formats/NativeWriter.cpp:163: DB::NativeWriter::write(DB::Block const&) @ 0x000000001e699856 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2035: DB::TCPHandler::sendData(DB::Block const&) @ 0x000000001e652275 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:946: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f8b9 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:41.703717 [ 50241 ] {7dd07b9a-fba4-4903-a506-b1247e78c4cd} executeQuery: Code: 407. DB::Exception: Numeric overflow: While processing ignore(addHours(now64(3), inf)). (DECIMAL_OVERFLOW) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47502) (comment: 01773_datetime64_add_ubsan.sql) (in query: -- The result is unspecified but UBSan should not argue. SELECT ignore(addHours(now64(3), inf)) FROM numbers(2);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:437: long DB::Adder::checkOverflow(double) @ 0x000000000c435ba0 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:445: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>, DB::ColumnVector>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::ColumnVector const&, DateLUTImpl const&, unsigned short, unsigned long) const @ 0x000000000c43a87c in /usr/bin/clickhouse 8. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:413: auto void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)::operator()>(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000000c43a043 in /usr/bin/clickhouse 9. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::IColumn, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)>(DB::PODArray, 63ul, 64ul> const*, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)&&) @ 0x000000000c4319f0 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:414: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const @ 0x000000000c439b63 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:482: DB::DateTimeAddIntervalImpl::execute(DB::AddHoursImpl, std::vector> const&, std::shared_ptr const&, unsigned short) @ 0x000000000c43458a in /usr/bin/clickhouse 12. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:663: DB::FunctionDateOrDateTimeAddInterval::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c432b17 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 2024.10.22 10:16:41.704919 [ 50241 ] {7dd07b9a-fba4-4903-a506-b1247e78c4cd} TCPHandler: Code: 407. DB::Exception: Numeric overflow: While processing ignore(addHours(now64(3), inf)). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:437: long DB::Adder::checkOverflow(double) @ 0x000000000c435ba0 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:445: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>, DB::ColumnVector>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::ColumnVector const&, DateLUTImpl const&, unsigned short, unsigned long) const @ 0x000000000c43a87c in /usr/bin/clickhouse 8. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:413: auto void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)::operator()>(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000000c43a043 in /usr/bin/clickhouse 9. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::IColumn, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)>(DB::PODArray, 63ul, 64ul> const*, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)&&) @ 0x000000000c4319f0 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:414: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const @ 0x000000000c439b63 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:482: DB::DateTimeAddIntervalImpl::execute(DB::AddHoursImpl, std::vector> const&, std::shared_ptr const&, unsigned short) @ 0x000000000c43458a in /usr/bin/clickhouse 12. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:663: DB::FunctionDateOrDateTimeAddInterval::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c432b17 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 2024.10.22 10:16:49.345874 [ 12933 ] {a6575caf-9631-4f40-9341-8392b1a769cd} executeQuery: Code: 6. DB::Exception: Cannot parse string '2021-1-01 00:00:00' as DateTime: syntax error at position 10 (parsed just '2021-1-01 '): while executing 'FUNCTION toDateTime(format('{}-{}-01 00:00:00', '2021', '1') :: 3) -> toDateTime(format('{}-{}-01 00:00:00', '2021', '1')) DateTime : 2'. (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55026) (comment: 01750_parsing_exception.sh) (in query: SELECT toDateTime(format('{}-{}-01 00:00:00', '2021', '1'))), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b59ffd1 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator(), DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b59a5b8 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b58a219 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b589548 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b58873e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 19. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 20. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 2024.10.22 10:16:49.348382 [ 12933 ] {a6575caf-9631-4f40-9341-8392b1a769cd} TCPHandler: Code: 6. DB::Exception: Cannot parse string '2021-1-01 00:00:00' as DateTime: syntax error at position 10 (parsed just '2021-1-01 '): while executing 'FUNCTION toDateTime(format('{}-{}-01 00:00:00', '2021', '1') :: 3) -> toDateTime(format('{}-{}-01 00:00:00', '2021', '1')) DateTime : 2'. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b59ffd1 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator(), DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b59a5b8 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b58a219 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b589548 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b58873e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 19. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 20. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 2024.10.22 10:16:49.638385 [ 12925 ] {f2083357-c052-4d62-834a-d6fe56a49139} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/store/50a/50a02a47-349d-4b07-884a-378fc721de75//data.TSV doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55038) (comment: 01720_engine_file_empty_if_not_exists.sql) (in query: SELECT * FROM file_engine_table;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:49.639073 [ 12925 ] {f2083357-c052-4d62-834a-d6fe56a49139} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/store/50a/50a02a47-349d-4b07-884a-378fc721de75//data.TSV doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:49.650183 [ 12925 ] {8430a3d1-f348-4d41-8cc1-10c2737f0287} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/store/50a/50a02a47-349d-4b07-884a-378fc721de75//data.TSV doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55038) (comment: 01720_engine_file_empty_if_not_exists.sql) (in query: SELECT * FROM file_engine_table;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:49.650988 [ 12925 ] {8430a3d1-f348-4d41-8cc1-10c2737f0287} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/store/50a/50a02a47-349d-4b07-884a-378fc721de75//data.TSV doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:50.662180 [ 1674 ] {302388ae-1c93-48d7-a7eb-b3cc2fdd20be} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: -- Int64 and UInt64 has no supertype SELECT * FROM t1 FULL JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:50.663541 [ 1674 ] {302388ae-1c93-48d7-a7eb-b3cc2fdd20be} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:50.695713 [ 1674 ] {f579d7ca-07e5-4c3c-877b-a5e15ece8509} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 LEFT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:50.696980 [ 1674 ] {f579d7ca-07e5-4c3c-877b-a5e15ece8509} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:50.734410 [ 1674 ] {48534955-b9b9-47d2-9ef6-eb54a0899812} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 RIGHT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:50.735963 [ 1674 ] {48534955-b9b9-47d2-9ef6-eb54a0899812} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:50.774305 [ 1674 ] {f54eb608-1709-41d3-b138-2244ae3f7dc7} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 INNER JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:50.775717 [ 1674 ] {f54eb608-1709-41d3-b138-2244ae3f7dc7} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:51.656537 [ 672 ] {6aa4b4a0-f8b6-43b8-85d9-733220c000a8} executeQuery: Code: 524. DB::Exception: Trying to ALTER DROP version ver column. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55072) (comment: 01714_alter_drop_version.sql) (in query: ALTER TABLE alter_drop_version DROP COLUMN ver;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3242: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9421c in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:51.657264 [ 672 ] {6aa4b4a0-f8b6-43b8-85d9-733220c000a8} TCPHandler: Code: 524. DB::Exception: Trying to ALTER DROP version ver column. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3242: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9421c in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:51.764458 [ 672 ] {a81a65e0-da07-4649-93e7-621a21b51e6e} executeQuery: Code: 524. DB::Exception: Trying to ALTER RENAME version ver column. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55072) (comment: 01714_alter_drop_version.sql) (in query: ALTER TABLE alter_drop_version RENAME COLUMN ver TO rev;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3247: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de94376 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:51.765465 [ 672 ] {a81a65e0-da07-4649-93e7-621a21b51e6e} TCPHandler: Code: 524. DB::Exception: Trying to ALTER RENAME version ver column. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3247: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de94376 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:16:53.731830 [ 1674 ] {30815a34-0171-4e29-bf2f-0f22e8c19a34} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: -- Int64 and UInt64 has no supertype SELECT * FROM t1 FULL JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:53.733075 [ 1674 ] {30815a34-0171-4e29-bf2f-0f22e8c19a34} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:53.766508 [ 1674 ] {4b1e079a-ca17-48b7-a96b-d2b9a0f25934} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 LEFT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:53.767835 [ 1674 ] {4b1e079a-ca17-48b7-a96b-d2b9a0f25934} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:53.804748 [ 1674 ] {6ce7d9a9-2852-4b59-a302-a63501bd30c3} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 RIGHT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:53.806069 [ 1674 ] {6ce7d9a9-2852-4b59-a302-a63501bd30c3} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:53.840290 [ 1674 ] {b39c79d1-f2f7-45a9-8008-b592dd4b67e3} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 INNER JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:53.841213 [ 1674 ] {b39c79d1-f2f7-45a9-8008-b592dd4b67e3} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:53.986773 [ 12917 ] {1fcc1081-5af7-472a-94f0-ad54e5b1da9c} executeQuery: Code: 307. DB::Exception: Limit for rows or bytes to read exceeded, max bytes: 400.00 B, current bytes: 408.00 B: While executing MergeTreeInOrder. (TOO_MANY_BYTES) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55136) (comment: 01710_projection_with_mixed_pipeline.sql) (in query: select uniqHLL12(x) from t settings optimize_use_projections = 1, max_bytes_to_read=400, max_block_size=8;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, ReadableSize&&, ReadableSize&&) @ 0x000000001b8a61e8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:36: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5cc7 in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b87c2a4 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f10f1 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a6a4e0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 2024.10.22 10:16:53.989202 [ 12917 ] {1fcc1081-5af7-472a-94f0-ad54e5b1da9c} TCPHandler: Code: 307. DB::Exception: Limit for rows or bytes to read exceeded, max bytes: 400.00 B, current bytes: 408.00 B: While executing MergeTreeInOrder. (TOO_MANY_BYTES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, ReadableSize&&, ReadableSize&&) @ 0x000000001b8a61e8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:36: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5cc7 in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b87c2a4 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f10f1 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a6a4e0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 2024.10.22 10:16:56.970086 [ 1674 ] {f31b6a64-bde9-4c77-ab6d-3ec7aae53a4a} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: -- Int64 and UInt64 has no supertype SELECT * FROM t1 FULL JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:56.971284 [ 1674 ] {f31b6a64-bde9-4c77-ab6d-3ec7aae53a4a} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:57.002581 [ 1674 ] {c1f23195-a3b4-44d7-bf6f-c18553d78337} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 LEFT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:57.004028 [ 1674 ] {c1f23195-a3b4-44d7-bf6f-c18553d78337} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:57.030228 [ 1674 ] {36fcbff0-ecc8-4c8d-bf00-2ee80129d8e9} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 RIGHT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:57.031686 [ 1674 ] {36fcbff0-ecc8-4c8d-bf00-2ee80129d8e9} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:57.062103 [ 1674 ] {502a0f76-cd8d-4eff-9fe4-8e64ca1a2075} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 INNER JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:57.063424 [ 1674 ] {502a0f76-cd8d-4eff-9fe4-8e64ca1a2075} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:59.987630 [ 1674 ] {663f4bb7-7f64-4966-8286-c42b2849c7ae} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: -- Int64 and UInt64 has no supertype SELECT * FROM t1 FULL JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:16:59.989016 [ 1674 ] {663f4bb7-7f64-4966-8286-c42b2849c7ae} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:00.021858 [ 1674 ] {b0ba7d8a-2820-4399-ade6-f6fb82634ce7} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 LEFT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:00.023198 [ 1674 ] {b0ba7d8a-2820-4399-ade6-f6fb82634ce7} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:00.055987 [ 1674 ] {04e738ba-4a32-43f7-922f-48fac8780aa5} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 RIGHT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:00.057272 [ 1674 ] {04e738ba-4a32-43f7-922f-48fac8780aa5} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:00.090465 [ 1674 ] {f504d00e-1567-48a9-9e07-1d06d26eb5d0} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 INNER JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:00.091884 [ 1674 ] {f504d00e-1567-48a9-9e07-1d06d26eb5d0} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:00.244334 [ 12933 ] {b4d1a1e6-16d5-40e3-96a8-8c665910fc5d} executeQuery: Code: 582. DB::Exception: There is no projection pp in table. (NO_SUCH_PROJECTION_IN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43214) (comment: 01710_projection_drop_if_exists.sql) (in query: alter table tp drop projection pp;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Storages/ProjectionsDescription.cpp:403: DB::ProjectionsDescription::remove(String const&, bool) @ 0x000000001d6186e6 in /usr/bin/clickhouse 7. /build/src/Storages/AlterCommands.cpp:609: DB::AlterCommand::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d58e1d1 in /usr/bin/clickhouse 8. /build/src/Storages/AlterCommands.cpp:929: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d590825 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9310c in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:00.245234 [ 12933 ] {b4d1a1e6-16d5-40e3-96a8-8c665910fc5d} TCPHandler: Code: 582. DB::Exception: There is no projection pp in table. (NO_SUCH_PROJECTION_IN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Storages/ProjectionsDescription.cpp:403: DB::ProjectionsDescription::remove(String const&, bool) @ 0x000000001d6186e6 in /usr/bin/clickhouse 7. /build/src/Storages/AlterCommands.cpp:609: DB::AlterCommand::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d58e1d1 in /usr/bin/clickhouse 8. /build/src/Storages/AlterCommands.cpp:929: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d590825 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9310c in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:00.325916 [ 12933 ] {309a0ecd-463f-4c82-992a-3509d794c182} executeQuery: Code: 582. DB::Exception: There is no projection p in table. (NO_SUCH_PROJECTION_IN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43214) (comment: 01710_projection_drop_if_exists.sql) (in query: alter table tp drop projection p;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Storages/ProjectionsDescription.cpp:403: DB::ProjectionsDescription::remove(String const&, bool) @ 0x000000001d6186e6 in /usr/bin/clickhouse 7. /build/src/Storages/AlterCommands.cpp:609: DB::AlterCommand::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d58e1d1 in /usr/bin/clickhouse 8. /build/src/Storages/AlterCommands.cpp:929: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d590825 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9310c in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:00.326606 [ 12933 ] {309a0ecd-463f-4c82-992a-3509d794c182} TCPHandler: Code: 582. DB::Exception: There is no projection p in table. (NO_SUCH_PROJECTION_IN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Storages/ProjectionsDescription.cpp:403: DB::ProjectionsDescription::remove(String const&, bool) @ 0x000000001d6186e6 in /usr/bin/clickhouse 7. /build/src/Storages/AlterCommands.cpp:609: DB::AlterCommand::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d58e1d1 in /usr/bin/clickhouse 8. /build/src/Storages/AlterCommands.cpp:929: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d590825 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9310c in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:03.876959 [ 1674 ] {b857bc95-48cd-4fa0-9e97-f4f5d3d09100} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: -- Int64 and UInt64 has no supertype SELECT * FROM t1 FULL JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:03.877965 [ 1674 ] {b857bc95-48cd-4fa0-9e97-f4f5d3d09100} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:03.902506 [ 1674 ] {4db7cbe6-415a-4b7f-849b-1293c7794730} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 LEFT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:03.903489 [ 1674 ] {4db7cbe6-415a-4b7f-849b-1293c7794730} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:03.930961 [ 1674 ] {18c1eefb-c06e-4a7f-ad76-5257c3615766} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 RIGHT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:03.931966 [ 1674 ] {18c1eefb-c06e-4a7f-ad76-5257c3615766} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:03.958926 [ 1674 ] {40c636bd-88d5-4829-a099-da5df6a28d69} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 INNER JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:03.959937 [ 1674 ] {40c636bd-88d5-4829-a099-da5df6a28d69} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:06.271229 [ 1674 ] {d717d29b-34ae-43c2-848b-9b88fc252547} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: -- Int64 and UInt64 has no supertype SELECT * FROM t1 FULL JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:06.272534 [ 1674 ] {d717d29b-34ae-43c2-848b-9b88fc252547} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:06.295770 [ 1674 ] {2f3cff02-108b-4216-8872-23f3f7d0c007} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 LEFT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:06.296878 [ 1674 ] {2f3cff02-108b-4216-8872-23f3f7d0c007} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:06.322916 [ 1674 ] {90bd06ab-a40b-489e-b411-9cb2194cef14} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 RIGHT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:06.323898 [ 1674 ] {90bd06ab-a40b-489e-b411-9cb2194cef14} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:06.348351 [ 1674 ] {cfb03489-4929-473b-8708-482c42c276de} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 INNER JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:06.349378 [ 1674 ] {cfb03489-4929-473b-8708-482c42c276de} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:08.421929 [ 12933 ] {a709360e-0eaf-440b-96d4-97989418f1a7} executeQuery: Code: 53. DB::Exception: Cannot convert string Hello to type UInt64: while executing 'FUNCTION equals(key : 0, 'Hello' : 2) -> equals(key, 'Hello') UInt8 : 3'. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49900) (comment: 01686_rocksdb.sql) (in query: SELECT * FROM 01686_test WHERE key = 'Hello';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/convertFieldToType.cpp:508: DB::(anonymous namespace)::convertFieldToTypeImpl(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d072042 in /usr/bin/clickhouse 7. /build/src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToType(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d06e77d in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsComparison.h:919: DB::FunctionComparison::executeWithConstString(std::shared_ptr const&, DB::IColumn const*, DB::IColumn const*, std::shared_ptr const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddff9ce in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsComparison.h:1313: DB::FunctionComparison::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dde8784 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionActions.cpp:780: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf8910e in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:1906: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbec02 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 10:17:08.422863 [ 12933 ] {a709360e-0eaf-440b-96d4-97989418f1a7} TCPHandler: Code: 53. DB::Exception: Cannot convert string Hello to type UInt64: while executing 'FUNCTION equals(key : 0, 'Hello' : 2) -> equals(key, 'Hello') UInt8 : 3'. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/convertFieldToType.cpp:508: DB::(anonymous namespace)::convertFieldToTypeImpl(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d072042 in /usr/bin/clickhouse 7. /build/src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToType(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d06e77d in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsComparison.h:919: DB::FunctionComparison::executeWithConstString(std::shared_ptr const&, DB::IColumn const*, DB::IColumn const*, std::shared_ptr const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddff9ce in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsComparison.h:1313: DB::FunctionComparison::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dde8784 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionActions.cpp:780: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf8910e in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:1906: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbec02 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 10:17:08.652171 [ 1674 ] {4202fb32-5a81-4a86-a14b-ae0a0c8d70a4} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: -- Int64 and UInt64 has no supertype SELECT * FROM t1 FULL JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:08.653178 [ 1674 ] {4202fb32-5a81-4a86-a14b-ae0a0c8d70a4} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:08.675660 [ 1674 ] {210065dd-ec72-486e-88fc-c72b893a6772} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 LEFT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:08.677087 [ 1674 ] {210065dd-ec72-486e-88fc-c72b893a6772} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:08.698494 [ 1674 ] {fd45b33f-9508-4a8b-a9a8-3e5cb7d464ee} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 RIGHT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:08.699620 [ 1674 ] {fd45b33f-9508-4a8b-a9a8-3e5cb7d464ee} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:08.719803 [ 1674 ] {6a9a9422-8381-434e-bcb2-ef1780d595f6} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 INNER JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:08.720746 [ 1674 ] {6a9a9422-8381-434e-bcb2-ef1780d595f6} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:09.125748 [ 672 ] {7b0b9571-bce8-47c0-b108-20d8af64697d} executeQuery: Code: 153. DB::Exception: Cannot perform integer division on infinite or too large floating point numbers: while executing 'FUNCTION intDiv(number :: 0, nan :: 1) -> intDiv(number, nan) Int64 : 2'. (ILLEGAL_DIVISION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49940) (comment: 01683_intdiv_ubsan.sql) (in query: SELECT DISTINCT intDiv(number, nan) FROM numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [80]) @ 0x000000000f200b5e in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:95: long DB::DivideIntegralImpl::apply(unsigned long, double) @ 0x000000000f235470 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:237: void DB::impl_::BinaryOperation, long>::process<(DB::impl_::OpCase)2>(unsigned long const*, double const*, long*, unsigned long, DB::PODArray, 63ul, 64ul> const*) @ 0x000000000f2353b4 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1997: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f3ef739 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f3ef13b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f3e5864 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f3e51a9 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f3e4abd in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f3c3873 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f3c30a7 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f3c2f7d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f3c23b1 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f3c207f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f3bfc16 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f3be5ec in /usr/bin/clickhouse 20. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 26. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 27. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 28. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 2024.10.22 10:17:09.127335 [ 672 ] {7b0b9571-bce8-47c0-b108-20d8af64697d} TCPHandler: Code: 153. DB::Exception: Cannot perform integer division on infinite or too large floating point numbers: while executing 'FUNCTION intDiv(number :: 0, nan :: 1) -> intDiv(number, nan) Int64 : 2'. (ILLEGAL_DIVISION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [80]) @ 0x000000000f200b5e in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:95: long DB::DivideIntegralImpl::apply(unsigned long, double) @ 0x000000000f235470 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:237: void DB::impl_::BinaryOperation, long>::process<(DB::impl_::OpCase)2>(unsigned long const*, double const*, long*, unsigned long, DB::PODArray, 63ul, 64ul> const*) @ 0x000000000f2353b4 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1997: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f3ef739 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f3ef13b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f3e5864 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f3e51a9 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f3e4abd in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f3c3873 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f3c30a7 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f3c2f7d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f3c23b1 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f3c207f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f3bfc16 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f3be5ec in /usr/bin/clickhouse 20. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 26. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 27. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 28. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 2024.10.22 10:17:09.735023 [ 6117 ] {05f8d6c3-e2af-410f-a861-ad4524fe4dfd} DistributedSink: Structure does not match (remote: n Int8 Int8(size = 0), local: n UInt64 UInt64(size = 1)), implicit conversion will be done. 2024.10.22 10:17:09.735550 [ 5908 ] {05f8d6c3-e2af-410f-a861-ad4524fe4dfd} DistributedSink: Structure does not match (remote: n Int8 Int8(size = 0), local: n UInt64 UInt64(size = 1)), implicit conversion will be done. 2024.10.22 10:17:10.040495 [ 869 ] {} test_z9h447lv.dist_01683.DirectoryMonitor.default: Structure does not match (remote: n Int8 Int8(size = 0), local: n UInt64 UInt64(size = 0)), implicit conversion will be done 2024.10.22 10:17:10.041211 [ 870 ] {} test_z9h447lv.dist_01683.DirectoryMonitor.default: Structure does not match (remote: n Int8 Int8(size = 0), local: n UInt64 UInt64(size = 0)), implicit conversion will be done 2024.10.22 10:17:11.155009 [ 672 ] {9bacf2c5-21b8-4642-8f73-4f4cf8548f7c} executeQuery: Code: 407. DB::Exception: Numeric overflow: while executing 'FUNCTION plus(toDateTime(toStartOfFifteenMinutes(plus(toDateTime(1000.0001220703125), multiply(number, 65536)))) :: 3, multiply(number, 9223372036854775807) :: 2) -> plus(toDateTime(toStartOfFifteenMinutes(plus(toDateTime(1000.0001220703125), multiply(number, 65536)))), multiply(number, 9223372036854775807)) DateTime : 4'. (DECIMAL_OVERFLOW) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50006) (comment: 01680_date_time_add_ubsan.sql) (in query: SELECT DISTINCT result FROM (SELECT toStartOfFifteenMinutes(toDateTime(toStartOfFifteenMinutes(toDateTime(1000.0001220703125) + (number * 65536))) + (number * 9223372036854775807)) AS result FROM system.numbers LIMIT 1048576) ORDER BY result DESC NULLS FIRST FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:437: long DB::Adder::checkOverflow(unsigned long) @ 0x000000000c463680 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:445: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>, DB::ColumnVector>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::ColumnVector const&, DateLUTImpl const&, unsigned short, unsigned long) const @ 0x000000000c466c79 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:413: auto void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)::operator()>(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000000c466763 in /usr/bin/clickhouse 9. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::IColumn, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)>(DB::PODArray, 63ul, 64ul> const*, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)&&) @ 0x000000000c45f487 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:414: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const @ 0x000000000c466523 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:482: DB::DateTimeAddIntervalImpl::execute(DB::AddSecondsImpl, std::vector> const&, std::shared_ptr const&, unsigned short) @ 0x000000000c4623aa in /usr/bin/clickhouse 12. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:657: DB::FunctionDateOrDateTimeAddInterval::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c460d54 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:1134: DB::FunctionBinaryArithmetic::executeDateTimeIntervalPlusMinus(std::vector> const&, std::shared_ptr const&, unsigned long, std::shared_ptr const&) const @ 0x0000000011b8c831 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:2025: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b8acd4 in /usr/bin/clickhouse 20. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 26. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 27. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 28. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 2024.10.22 10:17:11.156976 [ 672 ] {9bacf2c5-21b8-4642-8f73-4f4cf8548f7c} TCPHandler: Code: 407. DB::Exception: Numeric overflow: while executing 'FUNCTION plus(toDateTime(toStartOfFifteenMinutes(plus(toDateTime(1000.0001220703125), multiply(number, 65536)))) :: 3, multiply(number, 9223372036854775807) :: 2) -> plus(toDateTime(toStartOfFifteenMinutes(plus(toDateTime(1000.0001220703125), multiply(number, 65536)))), multiply(number, 9223372036854775807)) DateTime : 4'. (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:437: long DB::Adder::checkOverflow(unsigned long) @ 0x000000000c463680 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:445: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>, DB::ColumnVector>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::ColumnVector const&, DateLUTImpl const&, unsigned short, unsigned long) const @ 0x000000000c466c79 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:413: auto void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)::operator()>(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000000c466763 in /usr/bin/clickhouse 9. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::IColumn, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)>(DB::PODArray, 63ul, 64ul> const*, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)&&) @ 0x000000000c45f487 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:414: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const @ 0x000000000c466523 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:482: DB::DateTimeAddIntervalImpl::execute(DB::AddSecondsImpl, std::vector> const&, std::shared_ptr const&, unsigned short) @ 0x000000000c4623aa in /usr/bin/clickhouse 12. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:657: DB::FunctionDateOrDateTimeAddInterval::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c460d54 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:1134: DB::FunctionBinaryArithmetic::executeDateTimeIntervalPlusMinus(std::vector> const&, std::shared_ptr const&, unsigned long, std::shared_ptr const&) const @ 0x0000000011b8c831 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:2025: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b8acd4 in /usr/bin/clickhouse 20. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 26. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 27. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 28. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 2024.10.22 10:17:11.341267 [ 50154 ] {49f57da6-c146-452b-966b-49110512d5f0} executeQuery: Code: 20. DB::Exception: Number of columns in section IN doesn't match. 1 at left, 2 at right.: while executing 'FUNCTION nullIn(str : 0, _subquery77 :: 1) -> nullIn(str, _subquery77) UInt8 : 2': While executing MergeTreeThread. (NUMBER_OF_COLUMNS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49994) (comment: 01681_bloom_filter_nullable_column.sql) (in query: SELECT * FROM bloom_filter_nullable_index WHERE str IN (SELECT '1048576', str FROM bloom_filter_nullable_index) SETTINGS transform_null_in = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x000000000b66c44c in /usr/bin/clickhouse 6. /build/src/Interpreters/Set.cpp:440: DB::Set::checkColumnsNumber(unsigned long) const @ 0x000000001ce1c2e8 in /usr/bin/clickhouse 7. /build/src/Interpreters/Set.cpp:307: DB::Set::execute(std::vector> const&, bool) const @ 0x000000001ce1bdab in /usr/bin/clickhouse 8. /build/src/Functions/in.cpp:150: DB::(anonymous namespace)::FunctionIn::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f1c9ab0 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 14. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionActions.cpp:780: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf8910e in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1344: DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) const @ 0x000000001e1465d4 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1072: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e1449b8 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:973: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e1436b1 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 2024.10.22 10:17:11.343283 [ 50154 ] {49f57da6-c146-452b-966b-49110512d5f0} TCPHandler: Code: 20. DB::Exception: Number of columns in section IN doesn't match. 1 at left, 2 at right.: while executing 'FUNCTION nullIn(str : 0, _subquery77 :: 1) -> nullIn(str, _subquery77) UInt8 : 2': While executing MergeTreeThread. (NUMBER_OF_COLUMNS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x000000000b66c44c in /usr/bin/clickhouse 6. /build/src/Interpreters/Set.cpp:440: DB::Set::checkColumnsNumber(unsigned long) const @ 0x000000001ce1c2e8 in /usr/bin/clickhouse 7. /build/src/Interpreters/Set.cpp:307: DB::Set::execute(std::vector> const&, bool) const @ 0x000000001ce1bdab in /usr/bin/clickhouse 8. /build/src/Functions/in.cpp:150: DB::(anonymous namespace)::FunctionIn::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f1c9ab0 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 14. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionActions.cpp:780: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf8910e in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1344: DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) const @ 0x000000001e1465d4 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1072: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e1449b8 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:973: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e1436b1 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 2024.10.22 10:17:11.390017 [ 50154 ] {06127664-573f-4681-8d41-aef6727d802d} executeQuery: Code: 20. DB::Exception: Number of columns in section IN doesn't match. 1 at left, 2 at right.: while executing 'FUNCTION nullIn(str : 0, _subquery78 :: 1) -> nullIn(str, _subquery78) UInt8 : 2': While executing MergeTreeThread. (NUMBER_OF_COLUMNS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49994) (comment: 01681_bloom_filter_nullable_column.sql) (in query: SELECT * FROM bloom_filter_nullable_index WHERE str IN (SELECT '1048576', str FROM bloom_filter_nullable_index) SETTINGS transform_null_in = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x000000000b66c44c in /usr/bin/clickhouse 6. /build/src/Interpreters/Set.cpp:440: DB::Set::checkColumnsNumber(unsigned long) const @ 0x000000001ce1c2e8 in /usr/bin/clickhouse 7. /build/src/Interpreters/Set.cpp:307: DB::Set::execute(std::vector> const&, bool) const @ 0x000000001ce1bdab in /usr/bin/clickhouse 8. /build/src/Functions/in.cpp:150: DB::(anonymous namespace)::FunctionIn::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f1c9ab0 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 14. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionActions.cpp:780: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf8910e in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1344: DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) const @ 0x000000001e1465d4 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1072: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e1449b8 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:973: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e1436b1 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 2024.10.22 10:17:11.391771 [ 50154 ] {06127664-573f-4681-8d41-aef6727d802d} TCPHandler: Code: 20. DB::Exception: Number of columns in section IN doesn't match. 1 at left, 2 at right.: while executing 'FUNCTION nullIn(str : 0, _subquery78 :: 1) -> nullIn(str, _subquery78) UInt8 : 2': While executing MergeTreeThread. (NUMBER_OF_COLUMNS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x000000000b66c44c in /usr/bin/clickhouse 6. /build/src/Interpreters/Set.cpp:440: DB::Set::checkColumnsNumber(unsigned long) const @ 0x000000001ce1c2e8 in /usr/bin/clickhouse 7. /build/src/Interpreters/Set.cpp:307: DB::Set::execute(std::vector> const&, bool) const @ 0x000000001ce1bdab in /usr/bin/clickhouse 8. /build/src/Functions/in.cpp:150: DB::(anonymous namespace)::FunctionIn::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f1c9ab0 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 14. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionActions.cpp:780: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf8910e in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1344: DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) const @ 0x000000001e1465d4 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1072: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e1449b8 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:973: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e1436b1 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 2024.10.22 10:17:12.482569 [ 1674 ] {10ddad13-df2a-4b6b-8719-03578da80ac0} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: -- Int64 and UInt64 has no supertype SELECT * FROM t1 FULL JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:12.483518 [ 1674 ] {10ddad13-df2a-4b6b-8719-03578da80ac0} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:12.506259 [ 1674 ] {6d5757ee-da1e-43f2-a314-e490fb4f0f08} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 LEFT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:12.507297 [ 1674 ] {6d5757ee-da1e-43f2-a314-e490fb4f0f08} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:12.529961 [ 1674 ] {2374f262-ac38-4caa-8cda-26c0e3c8bead} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 RIGHT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:12.531022 [ 1674 ] {2374f262-ac38-4caa-8cda-26c0e3c8bead} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:12.553962 [ 1674 ] {5e15c6bf-8d0c-460c-928e-4847b20d2fcc} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 INNER JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:12.555000 [ 1674 ] {5e15c6bf-8d0c-460c-928e-4847b20d2fcc} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:14.763315 [ 1674 ] {0921ca87-58d1-44b6-a7e3-f144e00b6a1a} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: -- Int64 and UInt64 has no supertype SELECT * FROM t1 FULL JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:14.764274 [ 1674 ] {0921ca87-58d1-44b6-a7e3-f144e00b6a1a} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:14.786045 [ 1674 ] {8c0e6017-f646-4a7d-b082-b7ec3bd1fa7a} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 LEFT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:14.787069 [ 1674 ] {8c0e6017-f646-4a7d-b082-b7ec3bd1fa7a} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:14.809981 [ 1674 ] {6d3a2a5c-a396-40ac-b1ff-42e9f182162c} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 RIGHT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:14.811173 [ 1674 ] {6d3a2a5c-a396-40ac-b1ff-42e9f182162c} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:14.831777 [ 1674 ] {3a2ceb81-5b40-4216-a0a6-dabd99482178} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55002) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 INNER JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:14.832782 [ 1674 ] {3a2ceb81-5b40-4216-a0a6-dabd99482178} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf5a75a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf5cd18 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf55162 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf560fd in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf50399 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4f76 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:17:18.919373 [ 12933 ] {aba7b417-2571-4e1d-92f5-866617e0dd2e} executeQuery: Code: 574. DB::Exception: Too many bytes pending for async INSERT: 2.24 KiB (bytes_to_throw_insert=1.00 B). (DISTRIBUTED_TOO_MANY_PENDING_BYTES) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45370) (comment: 01670_distributed_bytes_to_throw_insert.sql) (in query: -- second will fail, because of bytes_to_throw_insert=1 -- (previous block definitelly takes more, since it has header) insert into dist_01670 select * from numbers(1) settings prefer_localhost_replica=0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1547: DB::StorageDistributed::delayInsertOrThrowIfNeeded() const @ 0x000000001d66a2bd in /usr/bin/clickhouse 7. /build/src/Storages/Distributed/DistributedSink.cpp:144: DB::DistributedSink::consume(DB::Chunk) @ 0x000000001dd0637b in /usr/bin/clickhouse 8. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 9. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 25. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e6d2ac7 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6d2a35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&) @ 0x000000001e6d2a15 in /usr/bin/clickhouse 2024.10.22 10:17:18.920656 [ 12933 ] {aba7b417-2571-4e1d-92f5-866617e0dd2e} TCPHandler: Code: 574. DB::Exception: Too many bytes pending for async INSERT: 2.24 KiB (bytes_to_throw_insert=1.00 B). (DISTRIBUTED_TOO_MANY_PENDING_BYTES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1547: DB::StorageDistributed::delayInsertOrThrowIfNeeded() const @ 0x000000001d66a2bd in /usr/bin/clickhouse 7. /build/src/Storages/Distributed/DistributedSink.cpp:144: DB::DistributedSink::consume(DB::Chunk) @ 0x000000001dd0637b in /usr/bin/clickhouse 8. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 9. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 25. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e6d2ac7 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6d2a35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&) @ 0x000000001e6d2a15 in /usr/bin/clickhouse 2024.10.22 10:17:20.682134 [ 672 ] {515f32bb-d901-48f6-9b04-0315599773e1} executeQuery: Code: 407. DB::Exception: Intermediate result overflow (signed a = 9223372036854775807, signed b = -9223372036854775808, min = -9223372036854775808, max = 9223372036854775807): While processing lcm(9223372036854775807, -9223372036854775808). (DECIMAL_OVERFLOW) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45426) (comment: 01666_lcm_ubsan.sql) (in query: -- { echo } SELECT lcm(9223372036854775807, -9223372036854775808);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, long&, long&, long&, long&) @ 0x000000000e4537c4 in /usr/bin/clickhouse 6. /build/src/Functions/GCDLCMImpl.h:44: long DB::GCDLCMImpl, DB::(anonymous namespace)::NameLCM>::apply(unsigned long, long) @ 0x000000000f87e3b7 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:255: DB::impl_::BinaryOperation, long>::process(unsigned long, long) @ 0x000000000f87dfdd in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1961: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f95d2da in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f95d0bb in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f958f64 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f95888d in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f9585bd in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f943f53 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f943847 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f94371d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f942b51 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f94281f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f940556 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f93f94c in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 2024.10.22 10:17:20.683471 [ 672 ] {515f32bb-d901-48f6-9b04-0315599773e1} TCPHandler: Code: 407. DB::Exception: Intermediate result overflow (signed a = 9223372036854775807, signed b = -9223372036854775808, min = -9223372036854775808, max = 9223372036854775807): While processing lcm(9223372036854775807, -9223372036854775808). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, long&, long&, long&, long&) @ 0x000000000e4537c4 in /usr/bin/clickhouse 6. /build/src/Functions/GCDLCMImpl.h:44: long DB::GCDLCMImpl, DB::(anonymous namespace)::NameLCM>::apply(unsigned long, long) @ 0x000000000f87e3b7 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:255: DB::impl_::BinaryOperation, long>::process(unsigned long, long) @ 0x000000000f87dfdd in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1961: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f95d2da in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f95d0bb in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f958f64 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f95888d in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f9585bd in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f943f53 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f943847 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f94371d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f942b51 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f94281f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f940556 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f93f94c in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 2024.10.22 10:17:20.692813 [ 672 ] {52d073b6-388e-49b5-9581-94391e195bca} executeQuery: Code: 407. DB::Exception: Intermediate result overflow (signed a = -9223372036854775808, signed b = -9223372036854775807, min = -9223372036854775808, max = 9223372036854775807): While processing lcm(9223372036854775808, -9223372036854775807). (DECIMAL_OVERFLOW) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45426) (comment: 01666_lcm_ubsan.sql) (in query: SELECT lcm(9223372036854775808, -9223372036854775807);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, long&, long&, long&, long&) @ 0x000000000e4537c4 in /usr/bin/clickhouse 6. /build/src/Functions/GCDLCMImpl.h:44: long DB::GCDLCMImpl, DB::(anonymous namespace)::NameLCM>::apply(unsigned long, long) @ 0x000000000f87e3b7 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:255: DB::impl_::BinaryOperation, long>::process(unsigned long, long) @ 0x000000000f87dfdd in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1961: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f95d2da in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f95d0bb in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f958f64 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f95888d in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f9585bd in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f943f53 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f943847 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f94371d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f942b51 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f94281f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f940556 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f93f94c in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 2024.10.22 10:17:20.694119 [ 672 ] {52d073b6-388e-49b5-9581-94391e195bca} TCPHandler: Code: 407. DB::Exception: Intermediate result overflow (signed a = -9223372036854775808, signed b = -9223372036854775807, min = -9223372036854775808, max = 9223372036854775807): While processing lcm(9223372036854775808, -9223372036854775807). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, long&, long&, long&, long&) @ 0x000000000e4537c4 in /usr/bin/clickhouse 6. /build/src/Functions/GCDLCMImpl.h:44: long DB::GCDLCMImpl, DB::(anonymous namespace)::NameLCM>::apply(unsigned long, long) @ 0x000000000f87e3b7 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:255: DB::impl_::BinaryOperation, long>::process(unsigned long, long) @ 0x000000000f87dfdd in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1961: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f95d2da in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f95d0bb in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f958f64 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f95888d in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f9585bd in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f943f53 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f943847 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f94371d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f942b51 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f94281f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f940556 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f93f94c in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 2024.10.22 10:17:20.856170 [ 672 ] {5369af21-bbec-4371-9ae9-4ff4577bc347} executeQuery: Code: 407. DB::Exception: Intermediate result overflow (signed a = -9223372036854775808, signed b = 9223372036854775807, min = -9223372036854775808, max = 9223372036854775807): While processing lcm(-9223372036854775808, 9223372036854775807). (DECIMAL_OVERFLOW) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45426) (comment: 01666_lcm_ubsan.sql) (in query: SELECT lcm(-9223372036854775808, 9223372036854775807);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, long&, long&, long&, long&) @ 0x000000000e4537c4 in /usr/bin/clickhouse 6. /build/src/Functions/GCDLCMImpl.h:44: long DB::GCDLCMImpl, DB::(anonymous namespace)::NameLCM>::apply(long, unsigned long) @ 0x000000000f8c4197 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:255: DB::impl_::BinaryOperation, long>::process(long, unsigned long) @ 0x000000000f8c3dbd in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1961: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f9830ba in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f982e9b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f981564 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f980e67 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f980d3d in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f9440d3 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f9439ed in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f94371d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f942b51 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f94281f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f940556 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f93f94c in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 2024.10.22 10:17:20.857664 [ 672 ] {5369af21-bbec-4371-9ae9-4ff4577bc347} TCPHandler: Code: 407. DB::Exception: Intermediate result overflow (signed a = -9223372036854775808, signed b = 9223372036854775807, min = -9223372036854775808, max = 9223372036854775807): While processing lcm(-9223372036854775808, 9223372036854775807). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, long&, long&, long&, long&) @ 0x000000000e4537c4 in /usr/bin/clickhouse 6. /build/src/Functions/GCDLCMImpl.h:44: long DB::GCDLCMImpl, DB::(anonymous namespace)::NameLCM>::apply(long, unsigned long) @ 0x000000000f8c4197 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:255: DB::impl_::BinaryOperation, long>::process(long, unsigned long) @ 0x000000000f8c3dbd in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1961: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f9830ba in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f982e9b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f981564 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f980e67 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f980d3d in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f9440d3 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f9439ed in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f94371d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f942b51 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f94281f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f940556 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f93f94c in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 2024.10.22 10:17:20.867107 [ 672 ] {00c6cac0-52b4-4a2b-b1ba-4f6da1205594} executeQuery: Code: 407. DB::Exception: Intermediate result overflow (signed a = -9223372036854775807, signed b = -9223372036854775808, min = -9223372036854775808, max = 9223372036854775807): While processing lcm(-9223372036854775807, 9223372036854775808). (DECIMAL_OVERFLOW) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45426) (comment: 01666_lcm_ubsan.sql) (in query: SELECT lcm(-9223372036854775807, 9223372036854775808);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, long&, long&, long&, long&) @ 0x000000000e4537c4 in /usr/bin/clickhouse 6. /build/src/Functions/GCDLCMImpl.h:44: long DB::GCDLCMImpl, DB::(anonymous namespace)::NameLCM>::apply(long, unsigned long) @ 0x000000000f8c4197 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:255: DB::impl_::BinaryOperation, long>::process(long, unsigned long) @ 0x000000000f8c3dbd in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1961: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f9830ba in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f982e9b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f981564 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f980e67 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f980d3d in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f9440d3 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f9439ed in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f94371d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f942b51 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f94281f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f940556 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f93f94c in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 2024.10.22 10:17:20.868572 [ 672 ] {00c6cac0-52b4-4a2b-b1ba-4f6da1205594} TCPHandler: Code: 407. DB::Exception: Intermediate result overflow (signed a = -9223372036854775807, signed b = -9223372036854775808, min = -9223372036854775808, max = 9223372036854775807): While processing lcm(-9223372036854775807, 9223372036854775808). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, long&, long&, long&, long&) @ 0x000000000e4537c4 in /usr/bin/clickhouse 6. /build/src/Functions/GCDLCMImpl.h:44: long DB::GCDLCMImpl, DB::(anonymous namespace)::NameLCM>::apply(long, unsigned long) @ 0x000000000f8c4197 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:255: DB::impl_::BinaryOperation, long>::process(long, unsigned long) @ 0x000000000f8c3dbd in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1961: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f9830ba in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f982e9b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f981564 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f980e67 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f980d3d in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f9440d3 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f9439ed in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f94371d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f942b51 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f94281f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f940556 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f93f94c in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 2024.10.22 10:17:20.980798 [ 672 ] {c790e9df-8965-4394-ace0-e56bac308d43} executeQuery: Code: 407. DB::Exception: Intermediate result overflow (signed a = -9223372036854775808, signed b = -1, min = -9223372036854775808, max = 9223372036854775807): While processing lcm(9223372036854775808, -1). (DECIMAL_OVERFLOW) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45426) (comment: 01666_lcm_ubsan.sql) (in query: SELECT lcm(9223372036854775808, -1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, long&, long&, long&, long&) @ 0x000000000e4537c4 in /usr/bin/clickhouse 6. /build/src/Functions/GCDLCMImpl.h:44: long DB::GCDLCMImpl, DB::(anonymous namespace)::NameLCM>::apply(unsigned long, signed char) @ 0x000000000f87be38 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:255: DB::impl_::BinaryOperation, long>::process(unsigned long, signed char) @ 0x000000000f87ba5f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1961: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f95be3b in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f95bc1b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f958ea4 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f9587ad in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f9585bd in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f943f53 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f943847 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f94371d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f942b51 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f94281f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f940556 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f93f94c in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 2024.10.22 10:17:20.982240 [ 672 ] {c790e9df-8965-4394-ace0-e56bac308d43} TCPHandler: Code: 407. DB::Exception: Intermediate result overflow (signed a = -9223372036854775808, signed b = -1, min = -9223372036854775808, max = 9223372036854775807): While processing lcm(9223372036854775808, -1). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, long&, long&, long&, long&) @ 0x000000000e4537c4 in /usr/bin/clickhouse 6. /build/src/Functions/GCDLCMImpl.h:44: long DB::GCDLCMImpl, DB::(anonymous namespace)::NameLCM>::apply(unsigned long, signed char) @ 0x000000000f87be38 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:255: DB::impl_::BinaryOperation, long>::process(unsigned long, signed char) @ 0x000000000f87ba5f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1961: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f95be3b in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f95bc1b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f958ea4 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f9587ad in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f9585bd in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f943f53 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f943847 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f94371d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f942b51 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f94281f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f940556 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f93f94c in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 2024.10.22 10:17:21.117289 [ 672 ] {8a2bf637-6ea3-4a25-840e-70f645c78a8c} executeQuery: Code: 43. DB::Exception: Illegal types Float64 and Float64 of arguments of function lcm: While processing lcm(-1.7014118346046923e38, -1.7014118346046923e38). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45426) (comment: 01666_lcm_ubsan.sql) (in query: SELECT lcm(-170141183460469231731687303715884105728, -170141183460469231731687303715884105728);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1618: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000000f9a9689 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000f84d9af in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:17:21.118445 [ 672 ] {8a2bf637-6ea3-4a25-840e-70f645c78a8c} TCPHandler: Code: 43. DB::Exception: Illegal types Float64 and Float64 of arguments of function lcm: While processing lcm(-1.7014118346046923e38, -1.7014118346046923e38). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1618: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000000f9a9689 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000f84d9af in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:17:27.434927 [ 12918 ] {a7279895-11c5-49a1-81c5-19999532c9d4} executeQuery: Code: 202. DB::Exception: Too many simultaneous queries for table test_1kfn54st.simple (e9658f06-aeee-42f5-94b7-4f1415f44a37). Maximum is: 1. (TOO_MANY_SIMULTANEOUS_QUERIES) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60766) (comment: 01666_merge_tree_max_query_limit.sh) (in query: select * from simple), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, unsigned long&) @ 0x000000001defc1cc in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:8292: DB::MergeTreeData::insertQueryIdOrThrowNoLock(String const&, unsigned long) const @ 0x000000001dedbde6 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:8318: DB::MergeTreeData::getQueryIdHolder(String const&, unsigned long) const @ 0x000000001dedc4fd in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1167: DB::MergeTreeDataSelectExecutor::checkLimits(DB::MergeTreeData const&, DB::ReadFromMergeTree::AnalysisResult const&, std::shared_ptr const&) @ 0x000000001dfb8c86 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1819: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea96e6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:27.437443 [ 12918 ] {a7279895-11c5-49a1-81c5-19999532c9d4} TCPHandler: Code: 202. DB::Exception: Too many simultaneous queries for table test_1kfn54st.simple (e9658f06-aeee-42f5-94b7-4f1415f44a37). Maximum is: 1. (TOO_MANY_SIMULTANEOUS_QUERIES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, unsigned long&) @ 0x000000001defc1cc in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:8292: DB::MergeTreeData::insertQueryIdOrThrowNoLock(String const&, unsigned long) const @ 0x000000001dedbde6 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:8318: DB::MergeTreeData::getQueryIdHolder(String const&, unsigned long) const @ 0x000000001dedc4fd in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1167: DB::MergeTreeDataSelectExecutor::checkLimits(DB::MergeTreeData const&, DB::ReadFromMergeTree::AnalysisResult const&, std::shared_ptr const&) @ 0x000000001dfb8c86 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1819: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea96e6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:28.160385 [ 12918 ] {f61c1a81-f850-4006-9a6a-65cae098d2e9} executeQuery: Code: 36. DB::Exception: ALTER MODIFY TTL is not supported for default-partitioned tables created with the old syntax. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60806) (comment: 01652_ttl_old_syntax.sql) (in query: ALTER TABLE ttl_old_syntax MODIFY TTL toDate('2020-01-01');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [93]) @ 0x000000001ac7675e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3263: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de94586 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:28.161074 [ 12918 ] {f61c1a81-f850-4006-9a6a-65cae098d2e9} TCPHandler: Code: 36. DB::Exception: ALTER MODIFY TTL is not supported for default-partitioned tables created with the old syntax. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [93]) @ 0x000000001ac7675e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3263: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de94586 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:29.885380 [ 1139 ] {6f856050-a441-4008-9a8c-834d9d93c6b2} executeQuery: Code: 572. DB::Exception: Too many optimizations applied to query plan. Current limit 1. (TOO_MANY_QUERY_PLAN_OPTIMIZATIONS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60860) (comment: 01655_plan_optimizations.sh) (in query: select x + 1 from (select y + 2 as x from (select dummy + 3 as y)) settings query_plan_max_optimizations_to_apply = 1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:82: DB::QueryPlanOptimizations::optimizeTreeFirstPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000001ef2df19 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/QueryPlan.cpp:482: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001ee7c608 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/QueryPlan.cpp:169: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c137 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:29.887109 [ 1139 ] {6f856050-a441-4008-9a8c-834d9d93c6b2} TCPHandler: Code: 572. DB::Exception: Too many optimizations applied to query plan. Current limit 1. (TOO_MANY_QUERY_PLAN_OPTIMIZATIONS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:82: DB::QueryPlanOptimizations::optimizeTreeFirstPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000001ef2df19 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/QueryPlan.cpp:482: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001ee7c608 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/QueryPlan.cpp:169: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c137 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:32.870092 [ 50241 ] {4007a973-4d1f-4e46-a4d2-636ef6814dac} executeQuery: Code: 202. DB::Exception: Too many simultaneous queries for table test_1kfn54st.simple (e9658f06-aeee-42f5-94b7-4f1415f44a37). Maximum is: 1. (TOO_MANY_SIMULTANEOUS_QUERIES) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60952) (comment: 01666_merge_tree_max_query_limit.sh) (in query: select * from simple where i = 0), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, unsigned long&) @ 0x000000001defc1cc in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:8292: DB::MergeTreeData::insertQueryIdOrThrowNoLock(String const&, unsigned long) const @ 0x000000001dedbde6 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:8318: DB::MergeTreeData::getQueryIdHolder(String const&, unsigned long) const @ 0x000000001dedc4fd in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1167: DB::MergeTreeDataSelectExecutor::checkLimits(DB::MergeTreeData const&, DB::ReadFromMergeTree::AnalysisResult const&, std::shared_ptr const&) @ 0x000000001dfb8c86 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1819: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea96e6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:32.871642 [ 50241 ] {4007a973-4d1f-4e46-a4d2-636ef6814dac} TCPHandler: Code: 202. DB::Exception: Too many simultaneous queries for table test_1kfn54st.simple (e9658f06-aeee-42f5-94b7-4f1415f44a37). Maximum is: 1. (TOO_MANY_SIMULTANEOUS_QUERIES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, unsigned long&) @ 0x000000001defc1cc in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:8292: DB::MergeTreeData::insertQueryIdOrThrowNoLock(String const&, unsigned long) const @ 0x000000001dedbde6 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:8318: DB::MergeTreeData::getQueryIdHolder(String const&, unsigned long) const @ 0x000000001dedc4fd in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1167: DB::MergeTreeDataSelectExecutor::checkLimits(DB::MergeTreeData const&, DB::ReadFromMergeTree::AnalysisResult const&, std::shared_ptr const&) @ 0x000000001dfb8c86 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1819: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea96e6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:39.831152 [ 50154 ] {c980a815-31b8-46ed-aff6-4889d7a915bf} executeQuery: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9010 -> [::1]:54406). (NETWORK_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54406) (in query: SELECT 'Hello, world'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2121: DB::TCPHandler::sendProgress() @ 0x000000001e64fcbd in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:967: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f9f1 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:39.831230 [ 5625 ] {5cc8c959-365f-4bfb-8748-430b2522f53f} executeQuery: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9010 -> [::1]:54414). (NETWORK_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54414) (in query: SELECT 'Hello, world'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2121: DB::TCPHandler::sendProgress() @ 0x000000001e64fcbd in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:967: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f9f1 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:39.831863 [ 50154 ] {c980a815-31b8-46ed-aff6-4889d7a915bf} TCPHandler: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9010 -> [::1]:54406). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2121: DB::TCPHandler::sendProgress() @ 0x000000001e64fcbd in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:967: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f9f1 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:39.832137 [ 5625 ] {5cc8c959-365f-4bfb-8748-430b2522f53f} TCPHandler: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9010 -> [::1]:54414). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2121: DB::TCPHandler::sendProgress() @ 0x000000001e64fcbd in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:967: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f9f1 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:39.832357 [ 50154 ] {c980a815-31b8-46ed-aff6-4889d7a915bf} TCPHandler: Client has gone away. 2024.10.22 10:17:39.832787 [ 5625 ] {5cc8c959-365f-4bfb-8748-430b2522f53f} TCPHandler: Client has gone away. 2024.10.22 10:17:40.484273 [ 12918 ] {533d622c-ed14-4bd2-aa39-5e488f5504d8} executeQuery: Code: 202. DB::Exception: Too many simultaneous queries for table test_1kfn54st.simple (e9658f06-aeee-42f5-94b7-4f1415f44a37). Maximum is: 1. (TOO_MANY_SIMULTANEOUS_QUERIES) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37720) (comment: 01666_merge_tree_max_query_limit.sh) (in query: select * from simple where i = 0), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, unsigned long&) @ 0x000000001defc1cc in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:8292: DB::MergeTreeData::insertQueryIdOrThrowNoLock(String const&, unsigned long) const @ 0x000000001dedbde6 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:8318: DB::MergeTreeData::getQueryIdHolder(String const&, unsigned long) const @ 0x000000001dedc4fd in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1167: DB::MergeTreeDataSelectExecutor::checkLimits(DB::MergeTreeData const&, DB::ReadFromMergeTree::AnalysisResult const&, std::shared_ptr const&) @ 0x000000001dfb8c86 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1819: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea96e6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:40.502249 [ 12918 ] {533d622c-ed14-4bd2-aa39-5e488f5504d8} TCPHandler: Code: 202. DB::Exception: Too many simultaneous queries for table test_1kfn54st.simple (e9658f06-aeee-42f5-94b7-4f1415f44a37). Maximum is: 1. (TOO_MANY_SIMULTANEOUS_QUERIES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, unsigned long&) @ 0x000000001defc1cc in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:8292: DB::MergeTreeData::insertQueryIdOrThrowNoLock(String const&, unsigned long) const @ 0x000000001dedbde6 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:8318: DB::MergeTreeData::getQueryIdHolder(String const&, unsigned long) const @ 0x000000001dedc4fd in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1167: DB::MergeTreeDataSelectExecutor::checkLimits(DB::MergeTreeData const&, DB::ReadFromMergeTree::AnalysisResult const&, std::shared_ptr const&) @ 0x000000001dfb8c86 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1819: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea96e6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:42.679406 [ 50237 ] {long_running_query-test_1kfn54st} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45542) (comment: 01666_merge_tree_max_query_limit.sh) (in query: select sleepEachRow(0.1) from simple settings max_block_size = 1 format Null), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001ccae2fb in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e6d4ca0 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e6d537c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d4c16 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:42.682239 [ 50237 ] {long_running_query-test_1kfn54st} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001ccae2fb in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e6d4ca0 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e6d537c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d4c16 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:44.446107 [ 12918 ] {cccf08d6-6312-4f91-aef0-374cf7d25f07} executeQuery: Code: 16. DB::Exception: There is no column with name `alias` in table test_bkat542i.full_duplicates (3145ba95-2db9-4194-9524-1fd777feebbd). There are columns: pk, sk, val, partition_key, mat. (NO_SUCH_COLUMN_IN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37914) (comment: 01581_deduplicate_by_columns_local.sql) (in query: -- ERROR cases OPTIMIZE TABLE full_duplicates DEDUPLICATE BY pk, sk, val, mat, alias;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&) @ 0x000000001da00c48 in /usr/bin/clickhouse 6. /build/src/Storages/StorageSnapshot.cpp:211: DB::StorageSnapshot::check(std::vector> const&) const @ 0x000000001da0049e in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:56: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca97bec in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:44.447047 [ 12918 ] {cccf08d6-6312-4f91-aef0-374cf7d25f07} TCPHandler: Code: 16. DB::Exception: There is no column with name `alias` in table test_bkat542i.full_duplicates (3145ba95-2db9-4194-9524-1fd777feebbd). There are columns: pk, sk, val, partition_key, mat. (NO_SUCH_COLUMN_IN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&) @ 0x000000001da00c48 in /usr/bin/clickhouse 6. /build/src/Storages/StorageSnapshot.cpp:211: DB::StorageSnapshot::check(std::vector> const&) const @ 0x000000001da0049e in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:56: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca97bec in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:44.550354 [ 12918 ] {0bdaecc0-3ed9-42c5-96a7-c995b72ecc02} executeQuery: Code: 8. DB::Exception: DEDUPLICATE BY expression must include all columns used in table's ORDER BY, PRIMARY KEY, or PARTITION BY but 'pk' is missing. Expanded DEDUPLICATE BY columns expression: ['sk', 'val']. (THERE_IS_NO_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37914) (comment: 01581_deduplicate_by_columns_local.sql) (in query: OPTIMIZE TABLE full_duplicates DEDUPLICATE BY sk, val;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001ca989cc in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:71: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca97f43 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 16. ? @ 0x00007f1a0debbac3 in ? 17. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:44.551390 [ 12918 ] {0bdaecc0-3ed9-42c5-96a7-c995b72ecc02} TCPHandler: Code: 8. DB::Exception: DEDUPLICATE BY expression must include all columns used in table's ORDER BY, PRIMARY KEY, or PARTITION BY but 'pk' is missing. Expanded DEDUPLICATE BY columns expression: ['sk', 'val']. (THERE_IS_NO_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001ca989cc in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:71: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca97f43 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 16. ? @ 0x00007f1a0debbac3 in ? 17. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:44.666567 [ 12918 ] {1acca2b5-0e57-451c-848b-14a492502445} executeQuery: Code: 51. DB::Exception: Empty list of columns queried. There are columns: pk, sk, val, partition_key, mat. (EMPTY_LIST_OF_COLUMNS_QUERIED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37914) (comment: 01581_deduplicate_by_columns_local.sql) (in query: OPTIMIZE TABLE full_duplicates DEDUPLICATE BY * EXCEPT(pk, sk, val, mat, alias, partition_key);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageSnapshot.cpp:195: DB::StorageSnapshot::check(std::vector> const&) const @ 0x000000001da00118 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:56: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca97bec in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:44.667375 [ 12918 ] {1acca2b5-0e57-451c-848b-14a492502445} TCPHandler: Code: 51. DB::Exception: Empty list of columns queried. There are columns: pk, sk, val, partition_key, mat. (EMPTY_LIST_OF_COLUMNS_QUERIED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageSnapshot.cpp:195: DB::StorageSnapshot::check(std::vector> const&) const @ 0x000000001da00118 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:56: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca97bec in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:44.674872 [ 12918 ] {a102ebc0-532d-455d-b5fa-842838533c81} executeQuery: Code: 8. DB::Exception: DEDUPLICATE BY expression must include all columns used in table's ORDER BY, PRIMARY KEY, or PARTITION BY but 'pk' is missing. Expanded DEDUPLICATE BY columns expression: ['sk', 'val', 'partition_key']. (THERE_IS_NO_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37914) (comment: 01581_deduplicate_by_columns_local.sql) (in query: OPTIMIZE TABLE full_duplicates DEDUPLICATE BY * EXCEPT(pk);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001ca989cc in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:71: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca97f43 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 16. ? @ 0x00007f1a0debbac3 in ? 17. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:44.675582 [ 12918 ] {a102ebc0-532d-455d-b5fa-842838533c81} TCPHandler: Code: 8. DB::Exception: DEDUPLICATE BY expression must include all columns used in table's ORDER BY, PRIMARY KEY, or PARTITION BY but 'pk' is missing. Expanded DEDUPLICATE BY columns expression: ['sk', 'val', 'partition_key']. (THERE_IS_NO_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001ca989cc in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:71: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca97f43 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 16. ? @ 0x00007f1a0debbac3 in ? 17. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:44.684007 [ 12918 ] {dcdc48d0-d883-48df-9ec1-7ac813275255} executeQuery: Code: 8. DB::Exception: DEDUPLICATE BY expression must include all columns used in table's ORDER BY, PRIMARY KEY, or PARTITION BY but 'sk' is missing. Expanded DEDUPLICATE BY columns expression: ['pk', 'val', 'partition_key']. (THERE_IS_NO_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37914) (comment: 01581_deduplicate_by_columns_local.sql) (in query: OPTIMIZE TABLE full_duplicates DEDUPLICATE BY * EXCEPT(sk);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001ca989cc in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:71: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca97f43 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 16. ? @ 0x00007f1a0debbac3 in ? 17. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:44.684562 [ 12918 ] {dcdc48d0-d883-48df-9ec1-7ac813275255} TCPHandler: Code: 8. DB::Exception: DEDUPLICATE BY expression must include all columns used in table's ORDER BY, PRIMARY KEY, or PARTITION BY but 'sk' is missing. Expanded DEDUPLICATE BY columns expression: ['pk', 'val', 'partition_key']. (THERE_IS_NO_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001ca989cc in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:71: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca97f43 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 16. ? @ 0x00007f1a0debbac3 in ? 17. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:44.690635 [ 12918 ] {fc977f3e-ea9e-419a-acf9-2053e49c1630} executeQuery: Code: 8. DB::Exception: DEDUPLICATE BY expression must include all columns used in table's ORDER BY, PRIMARY KEY, or PARTITION BY but 'partition_key' is missing. Expanded DEDUPLICATE BY columns expression: ['pk', 'sk', 'val']. (THERE_IS_NO_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37914) (comment: 01581_deduplicate_by_columns_local.sql) (in query: OPTIMIZE TABLE full_duplicates DEDUPLICATE BY * EXCEPT(partition_key);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001ca989cc in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:71: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca97f43 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 16. ? @ 0x00007f1a0debbac3 in ? 17. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:44.691194 [ 12918 ] {fc977f3e-ea9e-419a-acf9-2053e49c1630} TCPHandler: Code: 8. DB::Exception: DEDUPLICATE BY expression must include all columns used in table's ORDER BY, PRIMARY KEY, or PARTITION BY but 'partition_key' is missing. Expanded DEDUPLICATE BY columns expression: ['pk', 'sk', 'val']. (THERE_IS_NO_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001ca989cc in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:71: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca97f43 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 16. ? @ 0x00007f1a0debbac3 in ? 17. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:52.974505 [ 12930 ] {985b95a0-2357-4347-8177-f0ad23eb9a8e} executeQuery: Code: 549. DB::Exception: Column `key` with type AggregateFunction(max, UInt64) is not allowed in key expression, it's not comparable. (DATA_TYPE_CANNOT_BE_USED_IN_KEY) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39584) (comment: 01548_uncomparable_columns_in_keys.sql) (in query: CREATE TABLE foo (`id` UInt64, `key` AggregateFunction(max, UInt64)) ENGINE = MergeTree ORDER BY key SETTINGS index_granularity = 5762, min_bytes_for_wide_part = 1073741824, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 12622, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 1, min_merge_bytes_to_use_direct_io = 5004631399, index_granularity_bytes = 23285319, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 96793, primary_key_compress_block_size = 65407), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Storages/KeyDescription.cpp:151: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d60121d in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:546: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ca72 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 14. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:52.975382 [ 12930 ] {985b95a0-2357-4347-8177-f0ad23eb9a8e} TCPHandler: Code: 549. DB::Exception: Column `key` with type AggregateFunction(max, UInt64) is not allowed in key expression, it's not comparable. (DATA_TYPE_CANNOT_BE_USED_IN_KEY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Storages/KeyDescription.cpp:151: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d60121d in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:546: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ca72 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 14. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:53.132530 [ 12930 ] {41d88991-e6e7-4d44-9e6f-2e4e878dd097} executeQuery: Code: 549. DB::Exception: Column `key` with type AggregateFunction(max, UInt64) is not allowed in key expression, it's not comparable. (DATA_TYPE_CANNOT_BE_USED_IN_KEY) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39584) (comment: 01548_uncomparable_columns_in_keys.sql) (in query: CREATE TABLE foo (`id` UInt64, `key` AggregateFunction(max, UInt64)) ENGINE = MergeTree PARTITION BY key SETTINGS index_granularity = 5762, min_bytes_for_wide_part = 1073741824, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 12622, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 1, min_merge_bytes_to_use_direct_io = 5004631399, index_granularity_bytes = 23285319, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 96793, primary_key_compress_block_size = 65407), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Storages/KeyDescription.cpp:151: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d60121d in /usr/bin/clickhouse 7. /build/src/Storages/KeyDescription.cpp:90: DB::KeyDescription::getKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr) @ 0x000000001d60157a in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:530: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35c82a in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:53.133393 [ 12930 ] {41d88991-e6e7-4d44-9e6f-2e4e878dd097} TCPHandler: Code: 549. DB::Exception: Column `key` with type AggregateFunction(max, UInt64) is not allowed in key expression, it's not comparable. (DATA_TYPE_CANNOT_BE_USED_IN_KEY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Storages/KeyDescription.cpp:151: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d60121d in /usr/bin/clickhouse 7. /build/src/Storages/KeyDescription.cpp:90: DB::KeyDescription::getKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr) @ 0x000000001d60157a in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:530: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35c82a in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:53.145434 [ 12930 ] {3c54086d-7d4c-4ced-8d6e-adf417bbed28} executeQuery: Code: 549. DB::Exception: Column `key` with type AggregateFunction(max, UInt64) is not allowed in key expression, it's not comparable. (DATA_TYPE_CANNOT_BE_USED_IN_KEY) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39584) (comment: 01548_uncomparable_columns_in_keys.sql) (in query: CREATE TABLE foo (`id` UInt64, `key` AggregateFunction(max, UInt64)) ENGINE = MergeTree ORDER BY key SAMPLE BY key SETTINGS index_granularity = 5762, min_bytes_for_wide_part = 1073741824, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 12622, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 1, min_merge_bytes_to_use_direct_io = 5004631399, index_granularity_bytes = 23285319, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 96793, primary_key_compress_block_size = 65407), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Storages/KeyDescription.cpp:151: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d60121d in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:546: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ca72 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 14. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:53.146296 [ 12930 ] {3c54086d-7d4c-4ced-8d6e-adf417bbed28} TCPHandler: Code: 549. DB::Exception: Column `key` with type AggregateFunction(max, UInt64) is not allowed in key expression, it's not comparable. (DATA_TYPE_CANNOT_BE_USED_IN_KEY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Storages/KeyDescription.cpp:151: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d60121d in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:546: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ca72 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 14. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:53.558911 [ 12916 ] {afcebec6-244c-4772-8651-b85c9a08f892} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 300.14 MiB (attempt to allocate chunk of 5046872 bytes), maximum: 300.00 MiB.: while executing 'FUNCTION repeat(toString(number) : 3, 11 :: 1) -> repeat(toString(number), 11) String : 4'. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37736) (comment: 01600_remerge_sort_lowered_memory_bytes_ratio.sql) (in query: -- remerge_sort_lowered_memory_bytes_ratio default 2, slightly not enough -- MergeSortingTransform: Re-merging intermediate ORDER BY data (20 blocks with 819200 rows) to save memory consumption -- MergeSortingTransform: Memory usage is lowered from 186.25 MiB to 95.00 MiB -- MergeSortingTransform: Re-merging is not useful (memory usage was not lowered by remerge_sort_lowered_memory_bytes_ratio=2.0) select number k, repeat(toString(number), 11) v1, repeat(toString(number), 12) v2 from numbers(3e6) order by v1, v2 limit 400e3 format Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001387b44e in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b2045e5 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b204479 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:0: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::resize<>(unsigned long) @ 0x000000000b204266 in /usr/bin/clickhouse 14. /build/src/Functions/repeat.cpp:61: void DB::(anonymous namespace)::RepeatImpl::vectorStrConstRepeat(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&, char8_t) @ 0x00000000124a9920 in /usr/bin/clickhouse 15. /build/src/Functions/repeat.cpp:217: auto DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x00000000124a8a60 in /usr/bin/clickhouse 16. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)>(DB::IDataType const*, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)&&) @ 0x00000000124a85a7 in /usr/bin/clickhouse 17. /build/src/Functions/repeat.cpp:172: bool DB::(anonymous namespace)::FunctionRepeat::castType> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x00000000124a83bd in /usr/bin/clickhouse 18. /build/src/Functions/repeat.cpp:211: DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000124a7bfa in /usr/bin/clickhouse 19. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 25. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 26. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 27. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 2024.10.22 10:17:53.580492 [ 12916 ] {afcebec6-244c-4772-8651-b85c9a08f892} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 300.14 MiB (attempt to allocate chunk of 5046872 bytes), maximum: 300.00 MiB.: while executing 'FUNCTION repeat(toString(number) : 3, 11 :: 1) -> repeat(toString(number), 11) String : 4'. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001387b44e in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b2045e5 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b204479 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:0: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::resize<>(unsigned long) @ 0x000000000b204266 in /usr/bin/clickhouse 14. /build/src/Functions/repeat.cpp:61: void DB::(anonymous namespace)::RepeatImpl::vectorStrConstRepeat(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&, char8_t) @ 0x00000000124a9920 in /usr/bin/clickhouse 15. /build/src/Functions/repeat.cpp:217: auto DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x00000000124a8a60 in /usr/bin/clickhouse 16. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)>(DB::IDataType const*, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)&&) @ 0x00000000124a85a7 in /usr/bin/clickhouse 17. /build/src/Functions/repeat.cpp:172: bool DB::(anonymous namespace)::FunctionRepeat::castType> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x00000000124a83bd in /usr/bin/clickhouse 18. /build/src/Functions/repeat.cpp:211: DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000124a7bfa in /usr/bin/clickhouse 19. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 25. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 26. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 27. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 2024.10.22 10:17:56.175134 [ 50113 ] {d093ac48-836b-4b6e-9b2d-440727585869} executeQuery: Code: 6. DB::Exception: Cannot parse string '61f0c404-5cb3-11e7-907b-a6006ad3dba0T' as UUID: syntax error at position 36 (parsed just '61f0c404-5cb3-11e7-907b-a6006ad3dba0'): While processing toUUID('61f0c404-5cb3-11e7-907b-a6006ad3dba0T'). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39640) (comment: 01528_to_uuid_or_null_or_zero.sql) (in query: SELECT toUUID('61f0c404-5cb3-11e7-907b-a6006ad3dba0T');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b5db097 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator(), DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b5d6558 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b5c6259 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b5c5588 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b5c479e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:17:56.297610 [ 12930 ] {027a7e72-27de-400f-ba27-674d18c33e2b} executeQuery: Code: 507. DB::Exception: Sharding key is not deterministic. (UNABLE_TO_SKIP_UNUSED_SHARDS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39646) (comment: 01528_allow_nondeterministic_optimize_skip_unused_shards.sql) (in query: select * from dist_01528 where dummy = 2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [34]) @ 0x000000000b92229e in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1327: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d65b149 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d659d08 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb4db in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:56.297626 [ 50113 ] {d093ac48-836b-4b6e-9b2d-440727585869} TCPHandler: Code: 6. DB::Exception: Cannot parse string '61f0c404-5cb3-11e7-907b-a6006ad3dba0T' as UUID: syntax error at position 36 (parsed just '61f0c404-5cb3-11e7-907b-a6006ad3dba0'): While processing toUUID('61f0c404-5cb3-11e7-907b-a6006ad3dba0T'). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b5db097 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator(), DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b5d6558 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b5c6259 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b5c5588 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b5c479e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:17:56.298429 [ 12930 ] {027a7e72-27de-400f-ba27-674d18c33e2b} TCPHandler: Code: 507. DB::Exception: Sharding key is not deterministic. (UNABLE_TO_SKIP_UNUSED_SHARDS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [34]) @ 0x000000000b92229e in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1327: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d65b149 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d659d08 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb4db in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:56.541228 [ 50113 ] {5cd068d4-1cca-4e23-91a3-2f75ff3b51c7} executeQuery: Code: 6. DB::Exception: Cannot parse string '61f0c404-5cb3-11e7-907b-a6006ad3dba0T' as UUID: syntax error at position 36 (parsed just '61f0c404-5cb3-11e7-907b-a6006ad3dba0'): while executing 'FUNCTION toUUID(value :: 0) -> toUUID(value) UUID : 1'. (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39640) (comment: 01528_to_uuid_or_null_or_zero.sql) (in query: SELECT toUUID(value) FROM to_uuid_test;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b5db097 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator(), DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b5d6558 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b5c6259 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b5c5588 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b5c479e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 19. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 20. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 10:17:56.543148 [ 50113 ] {5cd068d4-1cca-4e23-91a3-2f75ff3b51c7} TCPHandler: Code: 6. DB::Exception: Cannot parse string '61f0c404-5cb3-11e7-907b-a6006ad3dba0T' as UUID: syntax error at position 36 (parsed just '61f0c404-5cb3-11e7-907b-a6006ad3dba0'): while executing 'FUNCTION toUUID(value :: 0) -> toUUID(value) UUID : 1'. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b5db097 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator(), DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b5d6558 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b5c6259 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b5c5588 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b5c479e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 19. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 20. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 10:17:56.798024 [ 50241 ] {87f0ac56-1a1c-4565-81f1-489d9475a6c4} executeQuery: Code: 47. DB::Exception: Unknown identifier 'x' in aggregate function 'sum(x)'. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39660) (comment: 01527_bad_aggregation_in_lambda.sql) (in query: SELECT arrayMap(x -> x * sum(x), range(10));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:571: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0777 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:17:56.799007 [ 50241 ] {87f0ac56-1a1c-4565-81f1-489d9475a6c4} TCPHandler: Code: 47. DB::Exception: Unknown identifier 'x' in aggregate function 'sum(x)'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:571: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0777 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:01.123731 [ 12930 ] {50d7c912-67bb-4618-913b-938a0587368b} executeQuery: Code: 36. DB::Exception: Unexpected value of maximum unit argument (second) for function formatReadableTimeDelta, the only allowed values are: 'seconds', 'minutes', 'hours', 'days', 'months', 'years'.: While processing formatReadableTimeDelta(-(((((1 + 60) + 3600) + 86400) + (30.5 * 86400)) + (365 * 86400)), 'second'). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45406) (comment: 01521_format_readable_time_delta2.sql) (in query: SELECT formatReadableTimeDelta(-(1 + 60 + 3600 + 86400 + 30.5 * 86400 + 365 * 86400), 'second');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>&, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type>, std::basic_string_view>&, String&&) @ 0x000000000e2792ac in /usr/bin/clickhouse 6. /build/src/Functions/formatReadableTimeDelta.cpp:120: DB::(anonymous namespace)::FunctionFormatReadableTimeDelta::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e27784e in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:18:01.124744 [ 12930 ] {50d7c912-67bb-4618-913b-938a0587368b} TCPHandler: Code: 36. DB::Exception: Unexpected value of maximum unit argument (second) for function formatReadableTimeDelta, the only allowed values are: 'seconds', 'minutes', 'hours', 'days', 'months', 'years'.: While processing formatReadableTimeDelta(-(((((1 + 60) + 3600) + 86400) + (30.5 * 86400)) + (365 * 86400)), 'second'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>&, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type>, std::basic_string_view>&, String&&) @ 0x000000000e2792ac in /usr/bin/clickhouse 6. /build/src/Functions/formatReadableTimeDelta.cpp:120: DB::(anonymous namespace)::FunctionFormatReadableTimeDelta::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e27784e in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:18:02.501302 [ 12925 ] {72dca0ac-d43b-4ff2-b165-92ccdfd5808a} StorageBuffer (test_dhu0p9f8.buffer_table1): Destination table test_dhu0p9f8.merge_tree_table1 has different type of column s (LowCardinality(String) != String). Data from destination table are converted. 2024.10.22 10:18:02.856441 [ 12925 ] {4743c551-e105-461c-ad03-1dd376154a53} StorageBuffer (test_dhu0p9f8.buffer_table1): Destination table test_dhu0p9f8.merge_tree_table1 has different type of column s (LowCardinality(String) != String). Data from destination table are converted. 2024.10.22 10:18:02.898608 [ 12925 ] {d9e7c28e-bfe7-4f33-b6db-b0195f748f37} StorageBuffer (test_dhu0p9f8.buffer_table1): Destination table test_dhu0p9f8.merge_tree_table1 has different type of column s (LowCardinality(String) != String). Data from destination table are converted. 2024.10.22 10:18:03.418416 [ 1674 ] {88d1ceca-990a-4e7b-8e61-92afb7e82db9} executeQuery: Code: 524. DB::Exception: Cannot alter version column version to type String because version column must be of an integer type or of type Date or DateTime. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45464) (comment: 01511_alter_version_versioned_collapsing_merge_tree.sql) (in query: ALTER TABLE table_with_version MODIFY COLUMN version String;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3087: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de98d83 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9410a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:03.419129 [ 1674 ] {88d1ceca-990a-4e7b-8e61-92afb7e82db9} TCPHandler: Code: 524. DB::Exception: Cannot alter version column version to type String because version column must be of an integer type or of type Date or DateTime. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3087: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de98d83 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9410a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:03.522675 [ 1674 ] {699720f7-2f84-4f2e-aa6b-f736289e20c9} executeQuery: Code: 524. DB::Exception: Cannot alter version column version from type UInt32 to type Int64 because new type will change sort order of version column. The only possible conversion is expansion of the number of bytes of the current type. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45464) (comment: 01511_alter_version_versioned_collapsing_merge_tree.sql) (in query: ALTER TABLE table_with_version MODIFY COLUMN version Int64;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3103: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de9909a in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9410a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:03.524127 [ 1674 ] {699720f7-2f84-4f2e-aa6b-f736289e20c9} TCPHandler: Code: 524. DB::Exception: Cannot alter version column version from type UInt32 to type Int64 because new type will change sort order of version column. The only possible conversion is expansion of the number of bytes of the current type. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3103: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de9909a in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9410a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:03.633240 [ 1674 ] {d0f6d4e2-e6f6-4d61-8573-2602ecd0bfef} executeQuery: Code: 524. DB::Exception: Cannot alter version column version from type UInt32 to type UInt16 because new type is smaller than current in the number of bytes. The only possible conversion is expansion of the number of bytes of the current type. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45464) (comment: 01511_alter_version_versioned_collapsing_merge_tree.sql) (in query: ALTER TABLE table_with_version MODIFY COLUMN version UInt16;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3112: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de99271 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9410a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:03.633979 [ 1674 ] {d0f6d4e2-e6f6-4d61-8573-2602ecd0bfef} TCPHandler: Code: 524. DB::Exception: Cannot alter version column version from type UInt32 to type UInt16 because new type is smaller than current in the number of bytes. The only possible conversion is expansion of the number of bytes of the current type. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3112: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de99271 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9410a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:03.646856 [ 1674 ] {39b8bd33-8552-4246-957e-beb906f6e21d} executeQuery: Code: 524. DB::Exception: Cannot alter version column version from type UInt32 to type Float64 because new type will change sort order of version column. The only possible conversion is expansion of the number of bytes of the current type. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45464) (comment: 01511_alter_version_versioned_collapsing_merge_tree.sql) (in query: ALTER TABLE table_with_version MODIFY COLUMN version Float64;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3103: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de9909a in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9410a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:03.647461 [ 1674 ] {39b8bd33-8552-4246-957e-beb906f6e21d} TCPHandler: Code: 524. DB::Exception: Cannot alter version column version from type UInt32 to type Float64 because new type will change sort order of version column. The only possible conversion is expansion of the number of bytes of the current type. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3103: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de9909a in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9410a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:03.663031 [ 1674 ] {9bed6546-0193-455a-8995-b0e22f4f33d1} executeQuery: Code: 524. DB::Exception: Cannot alter version column version from type UInt32 to type Date because new type will change sort order of version column. The only possible conversion is expansion of the number of bytes of the current type. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45464) (comment: 01511_alter_version_versioned_collapsing_merge_tree.sql) (in query: ALTER TABLE table_with_version MODIFY COLUMN version Date;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3103: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de9909a in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9410a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:03.663912 [ 1674 ] {9bed6546-0193-455a-8995-b0e22f4f33d1} TCPHandler: Code: 524. DB::Exception: Cannot alter version column version from type UInt32 to type Date because new type will change sort order of version column. The only possible conversion is expansion of the number of bytes of the current type. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3103: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de9909a in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9410a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:03.679281 [ 1674 ] {f92673fb-9e5d-4310-8024-d9c853d164e2} executeQuery: Code: 524. DB::Exception: Cannot alter version column version from type UInt32 to type DateTime because new type will change sort order of version column. The only possible conversion is expansion of the number of bytes of the current type. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45464) (comment: 01511_alter_version_versioned_collapsing_merge_tree.sql) (in query: ALTER TABLE table_with_version MODIFY COLUMN version DateTime;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3103: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de9909a in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9410a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:03.680439 [ 1674 ] {f92673fb-9e5d-4310-8024-d9c853d164e2} TCPHandler: Code: 524. DB::Exception: Cannot alter version column version from type UInt32 to type DateTime because new type will change sort order of version column. The only possible conversion is expansion of the number of bytes of the current type. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3103: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de9909a in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9410a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:05.607350 [ 12916 ] {a4ed3caf-80fb-4f2a-a248-64a4ac8e318e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 300.14 MiB (attempt to allocate chunk of 5046872 bytes), maximum: 300.00 MiB.: while executing 'FUNCTION repeat(toString(number) : 3, 11 :: 1) -> repeat(toString(number), 11) String : 4'. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37736) (comment: 01600_remerge_sort_lowered_memory_bytes_ratio.sql) (in query: select number k, repeat(toString(number), 11) v1, repeat(toString(number), 12) v2 from numbers(3e6) order by v1, v2 limit 400e3 settings remerge_sort_lowered_memory_bytes_ratio=2. format Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001387b44e in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b2045e5 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b204479 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:0: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::resize<>(unsigned long) @ 0x000000000b204266 in /usr/bin/clickhouse 14. /build/src/Functions/repeat.cpp:61: void DB::(anonymous namespace)::RepeatImpl::vectorStrConstRepeat(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&, char8_t) @ 0x00000000124a9920 in /usr/bin/clickhouse 15. /build/src/Functions/repeat.cpp:217: auto DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x00000000124a8a60 in /usr/bin/clickhouse 16. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)>(DB::IDataType const*, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)&&) @ 0x00000000124a85a7 in /usr/bin/clickhouse 17. /build/src/Functions/repeat.cpp:172: bool DB::(anonymous namespace)::FunctionRepeat::castType> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x00000000124a83bd in /usr/bin/clickhouse 18. /build/src/Functions/repeat.cpp:211: DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000124a7bfa in /usr/bin/clickhouse 19. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 25. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 26. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 27. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 2024.10.22 10:18:05.633681 [ 12916 ] {a4ed3caf-80fb-4f2a-a248-64a4ac8e318e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 300.14 MiB (attempt to allocate chunk of 5046872 bytes), maximum: 300.00 MiB.: while executing 'FUNCTION repeat(toString(number) : 3, 11 :: 1) -> repeat(toString(number), 11) String : 4'. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001387b44e in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b2045e5 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b204479 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:0: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::resize<>(unsigned long) @ 0x000000000b204266 in /usr/bin/clickhouse 14. /build/src/Functions/repeat.cpp:61: void DB::(anonymous namespace)::RepeatImpl::vectorStrConstRepeat(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&, char8_t) @ 0x00000000124a9920 in /usr/bin/clickhouse 15. /build/src/Functions/repeat.cpp:217: auto DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x00000000124a8a60 in /usr/bin/clickhouse 16. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)>(DB::IDataType const*, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)&&) @ 0x00000000124a85a7 in /usr/bin/clickhouse 17. /build/src/Functions/repeat.cpp:172: bool DB::(anonymous namespace)::FunctionRepeat::castType> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x00000000124a83bd in /usr/bin/clickhouse 18. /build/src/Functions/repeat.cpp:211: DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000124a7bfa in /usr/bin/clickhouse 19. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 25. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 26. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 27. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 2024.10.22 10:18:11.343835 [ 12925 ] {6db9b4d5-a47e-4fc5-b17b-cde4d0bf893a} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 3.00. (TOO_MANY_ROWS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54266) (comment: 01505_trivial_count_with_partition_predicate.sql) (in query: -- non-optimized (toDate(DateTime) is always monotonic, but we cannot relaxing the predicates to do trivial count()) select count() from test1 where p > toDateTime('2020-09-01 10:00:00');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8a5e39 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee9a1c3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1786: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8aa6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:11.344772 [ 12925 ] {6db9b4d5-a47e-4fc5-b17b-cde4d0bf893a} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 3.00. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8a5e39 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee9a1c3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1786: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8aa6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:11.472392 [ 12925 ] {735ac991-b45d-4aec-ae8a-134800639bd3} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 2.00. (TOO_MANY_ROWS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54266) (comment: 01505_trivial_count_with_partition_predicate.sql) (in query: -- non-optimized (some predicate depends on non-partition_expr columns) select count() FROM test1 where toDate(p) = '2020-09-01' and k = 2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8a5e39 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee9a1c3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1786: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8aa6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:11.473137 [ 12925 ] {735ac991-b45d-4aec-ae8a-134800639bd3} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 2.00. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8a5e39 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee9a1c3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1786: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8aa6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:11.807502 [ 12925 ] {0243712c-c726-4eec-804a-7a1ea25da6af} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 2.00. (TOO_MANY_ROWS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54266) (comment: 01505_trivial_count_with_partition_predicate.sql) (in query: -- non-optimized select count() from test_tuple array join [p,p] as c where toDate(p) = '2020-09-01';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8a5e39 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee9a1c3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1786: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8aa6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:11.808241 [ 12925 ] {0243712c-c726-4eec-804a-7a1ea25da6af} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 2.00. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8a5e39 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee9a1c3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1786: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8aa6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:11.883088 [ 12925 ] {6ab3542a-a99e-48a1-a75b-8b495c24f563} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 2.00. (TOO_MANY_ROWS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54266) (comment: 01505_trivial_count_with_partition_predicate.sql) (in query: -- non-optimized select count() from test_tuple array join [1,2,3] as c where toDate(p) = '2020-09-01';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8a5e39 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee9a1c3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1786: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8aa6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:11.883768 [ 12925 ] {6ab3542a-a99e-48a1-a75b-8b495c24f563} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 2.00. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8a5e39 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee9a1c3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1786: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8aa6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:12.112557 [ 1674 ] {27b9476f-8f12-4e6e-9d5e-f825c4c79d87} executeQuery: Code: 36. DB::Exception: StorageEmbeddedRocksDB must require one column in primary key. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54292) (comment: 01504_rocksdb.sql) (in query: CREATE TABLE 01504_test (key String, value UInt32) Engine=EmbeddedRocksDB;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc6663e in /usr/bin/clickhouse 6. /build/src/Storages/RocksDB/StorageEmbeddedRocksDB.cpp:496: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001ae077c1 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 13. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:12.112547 [ 12925 ] {ece51f96-f4ce-4508-a949-dc0da4143136} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 3.00. (TOO_MANY_ROWS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54266) (comment: 01505_trivial_count_with_partition_predicate.sql) (in query: -- non-optimized select count() from test_two_args where i = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8a5e39 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee9a1c3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1786: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8aa6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:12.113359 [ 1674 ] {27b9476f-8f12-4e6e-9d5e-f825c4c79d87} TCPHandler: Code: 36. DB::Exception: StorageEmbeddedRocksDB must require one column in primary key. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc6663e in /usr/bin/clickhouse 6. /build/src/Storages/RocksDB/StorageEmbeddedRocksDB.cpp:496: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001ae077c1 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 13. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:12.113523 [ 12925 ] {ece51f96-f4ce-4508-a949-dc0da4143136} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 3.00. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8a5e39 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee9a1c3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1786: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8aa6 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:12.281536 [ 1674 ] {ac8c2b52-af88-4495-9a38-60eb1db66116} executeQuery: Code: 47. DB::Exception: Missing columns: 'key2' while processing query: 'key2', required columns: 'key2' 'key2'. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54292) (comment: 01504_rocksdb.sql) (in query: CREATE TABLE 01504_test (key String, value UInt32) Engine=EmbeddedRocksDB PRIMARY KEY(key2);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1355: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa6838 in /usr/bin/clickhouse 8. /build/src/Storages/KeyDescription.cpp:140: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d600e20 in /usr/bin/clickhouse 9. /build/src/Storages/KeyDescription.cpp:90: DB::KeyDescription::getKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr) @ 0x000000001d60157a in /usr/bin/clickhouse 10. /build/src/Storages/RocksDB/StorageEmbeddedRocksDB.cpp:498: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001ae0792c in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 17. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:12.282476 [ 1674 ] {ac8c2b52-af88-4495-9a38-60eb1db66116} TCPHandler: Code: 47. DB::Exception: Missing columns: 'key2' while processing query: 'key2', required columns: 'key2' 'key2'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1355: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa6838 in /usr/bin/clickhouse 8. /build/src/Storages/KeyDescription.cpp:140: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d600e20 in /usr/bin/clickhouse 9. /build/src/Storages/KeyDescription.cpp:90: DB::KeyDescription::getKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr) @ 0x000000001d60157a in /usr/bin/clickhouse 10. /build/src/Storages/RocksDB/StorageEmbeddedRocksDB.cpp:498: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001ae0792c in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 17. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:12.412215 [ 1674 ] {f9a6bfe8-495c-4213-87c6-fb595df62f5a} executeQuery: Code: 36. DB::Exception: StorageEmbeddedRocksDB must require one column in primary key. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54292) (comment: 01504_rocksdb.sql) (in query: CREATE TABLE 01504_test (key String, value UInt32) Engine=EmbeddedRocksDB PRIMARY KEY(key, value);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc6663e in /usr/bin/clickhouse 6. /build/src/Storages/RocksDB/StorageEmbeddedRocksDB.cpp:502: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001ae079c7 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 13. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:12.413190 [ 1674 ] {f9a6bfe8-495c-4213-87c6-fb595df62f5a} TCPHandler: Code: 36. DB::Exception: StorageEmbeddedRocksDB must require one column in primary key. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc6663e in /usr/bin/clickhouse 6. /build/src/Storages/RocksDB/StorageEmbeddedRocksDB.cpp:502: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001ae079c7 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 13. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:12.931209 [ 12933 ] {a3f30c28-9872-47ad-b6c1-e5067d1f111a} executeQuery: Code: 48. DB::Exception: Alter of type 'ADD_COLUMN' is not supported by storage Memory. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54330) (comment: 01498_alter_column_storage_memory.sql) (in query: ALTER TABLE defaults ADD COLUMN m Int8;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af4aecc in /usr/bin/clickhouse 6. /build/src/Storages/IStorage.cpp:203: DB::IStorage::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d5f0dbc in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:12.931806 [ 12933 ] {a3f30c28-9872-47ad-b6c1-e5067d1f111a} TCPHandler: Code: 48. DB::Exception: Alter of type 'ADD_COLUMN' is not supported by storage Memory. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af4aecc in /usr/bin/clickhouse 6. /build/src/Storages/IStorage.cpp:203: DB::IStorage::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d5f0dbc in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:12.937664 [ 12933 ] {aa14cc0a-c1b6-4269-9fcc-986eb25e1af8} executeQuery: Code: 48. DB::Exception: Alter of type 'DROP_COLUMN' is not supported by storage Memory. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54330) (comment: 01498_alter_column_storage_memory.sql) (in query: ALTER TABLE defaults DROP COLUMN n;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af4aecc in /usr/bin/clickhouse 6. /build/src/Storages/IStorage.cpp:203: DB::IStorage::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d5f0dbc in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:12.938289 [ 12933 ] {aa14cc0a-c1b6-4269-9fcc-986eb25e1af8} TCPHandler: Code: 48. DB::Exception: Alter of type 'DROP_COLUMN' is not supported by storage Memory. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af4aecc in /usr/bin/clickhouse 6. /build/src/Storages/IStorage.cpp:203: DB::IStorage::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d5f0dbc in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:19.810864 [ 6967 ] {c0fbe792-b0e1-4855-a759-1bb60a58f57b} executeQuery: Code: 43. DB::Exception: Function toStartOfDay supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfDay(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41354) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toStartOfDay(toDateTime('2017-12-31 00:00:00', 'UTC'), '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateTimeOrDateTime64.h:42: DB::FunctionDateOrDateTimeToDateTimeOrDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126919bc in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:18:19.811989 [ 6967 ] {c0fbe792-b0e1-4855-a759-1bb60a58f57b} TCPHandler: Code: 43. DB::Exception: Function toStartOfDay supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfDay(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateTimeOrDateTime64.h:42: DB::FunctionDateOrDateTimeToDateTimeOrDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126919bc in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:18:20.305434 [ 6967 ] {4bbd8625-2d1f-40ae-abcb-8388bd8e1915} executeQuery: Code: 43. DB::Exception: Function toMonday supports a 2nd argument (optional) that must be a valid time zone: While processing toMonday(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41354) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toMonday(toDateTime('2017-12-31 00:00:00', 'UTC'), '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateOrDate32.h:40: DB::FunctionDateOrDateTimeToDateOrDate32::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126686ba in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:18:20.306485 [ 6967 ] {4bbd8625-2d1f-40ae-abcb-8388bd8e1915} TCPHandler: Code: 43. DB::Exception: Function toMonday supports a 2nd argument (optional) that must be a valid time zone: While processing toMonday(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateOrDate32.h:40: DB::FunctionDateOrDateTimeToDateOrDate32::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126686ba in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:18:20.443076 [ 6967 ] {5a2c0b33-9ad2-4293-ae11-4caee31b43cb} executeQuery: Code: 43. DB::Exception: Provided time zone must be non-empty and be a valid time zone: While processing toStartOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 0, ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41354) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toStartOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 0, '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc6663e in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:63: DB::extractTimeZoneFromFunctionArguments(std::vector> const&, unsigned long, unsigned long) @ 0x000000001ac0373d in /usr/bin/clickhouse 7. /build/src/Functions/CustomWeekTransforms.h:196: COW::immutable_ptr DB::CustomWeekTransformImpl::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::ToStartOfWeekImpl) @ 0x00000000126399fc in /usr/bin/clickhouse 8. /build/src/Functions/FunctionCustomWeekToDateOrDate32.h:59: DB::FunctionCustomWeekToDateOrDate32::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000012638b87 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 2024.10.22 10:18:20.444111 [ 6967 ] {5a2c0b33-9ad2-4293-ae11-4caee31b43cb} TCPHandler: Code: 43. DB::Exception: Provided time zone must be non-empty and be a valid time zone: While processing toStartOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 0, ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc6663e in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:63: DB::extractTimeZoneFromFunctionArguments(std::vector> const&, unsigned long, unsigned long) @ 0x000000001ac0373d in /usr/bin/clickhouse 7. /build/src/Functions/CustomWeekTransforms.h:196: COW::immutable_ptr DB::CustomWeekTransformImpl::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::ToStartOfWeekImpl) @ 0x00000000126399fc in /usr/bin/clickhouse 8. /build/src/Functions/FunctionCustomWeekToDateOrDate32.h:59: DB::FunctionCustomWeekToDateOrDate32::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000012638b87 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 2024.10.22 10:18:20.465956 [ 6967 ] {86222a86-2aba-4efb-8465-6aa6d10efe37} executeQuery: Code: 43. DB::Exception: Provided time zone must be non-empty and be a valid time zone: While processing toStartOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 1, ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41354) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toStartOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 1, '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc6663e in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:63: DB::extractTimeZoneFromFunctionArguments(std::vector> const&, unsigned long, unsigned long) @ 0x000000001ac0373d in /usr/bin/clickhouse 7. /build/src/Functions/CustomWeekTransforms.h:196: COW::immutable_ptr DB::CustomWeekTransformImpl::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::ToStartOfWeekImpl) @ 0x00000000126399fc in /usr/bin/clickhouse 8. /build/src/Functions/FunctionCustomWeekToDateOrDate32.h:59: DB::FunctionCustomWeekToDateOrDate32::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000012638b87 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 2024.10.22 10:18:20.466721 [ 6967 ] {86222a86-2aba-4efb-8465-6aa6d10efe37} TCPHandler: Code: 43. DB::Exception: Provided time zone must be non-empty and be a valid time zone: While processing toStartOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 1, ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc6663e in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:63: DB::extractTimeZoneFromFunctionArguments(std::vector> const&, unsigned long, unsigned long) @ 0x000000001ac0373d in /usr/bin/clickhouse 7. /build/src/Functions/CustomWeekTransforms.h:196: COW::immutable_ptr DB::CustomWeekTransformImpl::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::ToStartOfWeekImpl) @ 0x00000000126399fc in /usr/bin/clickhouse 8. /build/src/Functions/FunctionCustomWeekToDateOrDate32.h:59: DB::FunctionCustomWeekToDateOrDate32::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000012638b87 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 2024.10.22 10:18:20.599706 [ 6967 ] {bd32bca8-7bf4-473b-8149-c51e78d2cceb} executeQuery: Code: 43. DB::Exception: Provided time zone must be non-empty and be a valid time zone: While processing toLastDayOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 0, ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41354) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toLastDayOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 0, '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc6663e in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:63: DB::extractTimeZoneFromFunctionArguments(std::vector> const&, unsigned long, unsigned long) @ 0x000000001ac0373d in /usr/bin/clickhouse 7. /build/src/Functions/CustomWeekTransforms.h:196: COW::immutable_ptr DB::CustomWeekTransformImpl::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::ToLastDayOfWeekImpl) @ 0x000000001263d81c in /usr/bin/clickhouse 8. /build/src/Functions/FunctionCustomWeekToDateOrDate32.h:59: DB::FunctionCustomWeekToDateOrDate32::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001263c9a7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 2024.10.22 10:18:20.600673 [ 6967 ] {bd32bca8-7bf4-473b-8149-c51e78d2cceb} TCPHandler: Code: 43. DB::Exception: Provided time zone must be non-empty and be a valid time zone: While processing toLastDayOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 0, ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc6663e in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:63: DB::extractTimeZoneFromFunctionArguments(std::vector> const&, unsigned long, unsigned long) @ 0x000000001ac0373d in /usr/bin/clickhouse 7. /build/src/Functions/CustomWeekTransforms.h:196: COW::immutable_ptr DB::CustomWeekTransformImpl::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::ToLastDayOfWeekImpl) @ 0x000000001263d81c in /usr/bin/clickhouse 8. /build/src/Functions/FunctionCustomWeekToDateOrDate32.h:59: DB::FunctionCustomWeekToDateOrDate32::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001263c9a7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 2024.10.22 10:18:20.622081 [ 6967 ] {626722c3-0975-440a-9328-db7a7b8634df} executeQuery: Code: 43. DB::Exception: Provided time zone must be non-empty and be a valid time zone: While processing toLastDayOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 1, ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41354) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toLastDayOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 1, '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc6663e in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:63: DB::extractTimeZoneFromFunctionArguments(std::vector> const&, unsigned long, unsigned long) @ 0x000000001ac0373d in /usr/bin/clickhouse 7. /build/src/Functions/CustomWeekTransforms.h:196: COW::immutable_ptr DB::CustomWeekTransformImpl::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::ToLastDayOfWeekImpl) @ 0x000000001263d81c in /usr/bin/clickhouse 8. /build/src/Functions/FunctionCustomWeekToDateOrDate32.h:59: DB::FunctionCustomWeekToDateOrDate32::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001263c9a7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 2024.10.22 10:18:20.622820 [ 6967 ] {626722c3-0975-440a-9328-db7a7b8634df} TCPHandler: Code: 43. DB::Exception: Provided time zone must be non-empty and be a valid time zone: While processing toLastDayOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 1, ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc6663e in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:63: DB::extractTimeZoneFromFunctionArguments(std::vector> const&, unsigned long, unsigned long) @ 0x000000001ac0373d in /usr/bin/clickhouse 7. /build/src/Functions/CustomWeekTransforms.h:196: COW::immutable_ptr DB::CustomWeekTransformImpl::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::ToLastDayOfWeekImpl) @ 0x000000001263d81c in /usr/bin/clickhouse 8. /build/src/Functions/FunctionCustomWeekToDateOrDate32.h:59: DB::FunctionCustomWeekToDateOrDate32::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001263c9a7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 2024.10.22 10:18:20.757647 [ 6967 ] {477fca91-53da-4bc4-99be-9fd881aa98e2} executeQuery: Code: 43. DB::Exception: Function toStartOfMonth supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfMonth(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41354) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toStartOfMonth(toDateTime('2017-12-31 00:00:00', 'UTC'), '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateOrDate32.h:40: DB::FunctionDateOrDateTimeToDateOrDate32::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126b52fa in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:18:20.758684 [ 6967 ] {477fca91-53da-4bc4-99be-9fd881aa98e2} TCPHandler: Code: 43. DB::Exception: Function toStartOfMonth supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfMonth(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateOrDate32.h:40: DB::FunctionDateOrDateTimeToDateOrDate32::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126b52fa in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:18:20.916631 [ 6967 ] {f44f5c62-3263-4980-a2fd-0bfba380f6a5} executeQuery: Code: 43. DB::Exception: Function toStartOfQuarter supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfQuarter(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41354) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toStartOfQuarter(toDateTime('2017-12-31 00:00:00', 'UTC'), '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateOrDate32.h:40: DB::FunctionDateOrDateTimeToDateOrDate32::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126b90fa in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:18:20.917700 [ 6967 ] {f44f5c62-3263-4980-a2fd-0bfba380f6a5} TCPHandler: Code: 43. DB::Exception: Function toStartOfQuarter supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfQuarter(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateOrDate32.h:40: DB::FunctionDateOrDateTimeToDateOrDate32::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126b90fa in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:18:21.054806 [ 6967 ] {68cd7212-a890-4244-9a8d-5c2efe0a4f9a} executeQuery: Code: 43. DB::Exception: Function toStartOfYear supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfYear(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41354) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toStartOfYear(toDateTime('2017-12-31 00:00:00', 'UTC'), '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateOrDate32.h:40: DB::FunctionDateOrDateTimeToDateOrDate32::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126ce29a in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:18:21.055787 [ 6967 ] {68cd7212-a890-4244-9a8d-5c2efe0a4f9a} TCPHandler: Code: 43. DB::Exception: Function toStartOfYear supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfYear(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateOrDate32.h:40: DB::FunctionDateOrDateTimeToDateOrDate32::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126ce29a in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:18:21.230411 [ 6967 ] {c0e16ce5-cffd-4260-8ff6-81e264fc4792} executeQuery: Code: 43. DB::Exception: Function toStartOfTenMinutes supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfTenMinutes(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41354) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toStartOfTenMinutes(toDateTime('2017-12-31 00:00:00', 'UTC'), '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateTimeOrDateTime64.h:42: DB::FunctionDateOrDateTimeToDateTimeOrDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126ca1bc in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:18:21.231401 [ 6967 ] {c0e16ce5-cffd-4260-8ff6-81e264fc4792} TCPHandler: Code: 43. DB::Exception: Function toStartOfTenMinutes supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfTenMinutes(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateTimeOrDateTime64.h:42: DB::FunctionDateOrDateTimeToDateTimeOrDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126ca1bc in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:18:21.389456 [ 6967 ] {b663961a-3fb5-49d8-80ff-00ca72726adf} executeQuery: Code: 43. DB::Exception: Function toStartOfFifteenMinutes supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfFifteenMinutes(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41354) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toStartOfFifteenMinutes(toDateTime('2017-12-31 00:00:00', 'UTC'), '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateTimeOrDateTime64.h:42: DB::FunctionDateOrDateTimeToDateTimeOrDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012695b3c in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:18:21.390599 [ 6967 ] {b663961a-3fb5-49d8-80ff-00ca72726adf} TCPHandler: Code: 43. DB::Exception: Function toStartOfFifteenMinutes supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfFifteenMinutes(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateTimeOrDateTime64.h:42: DB::FunctionDateOrDateTimeToDateTimeOrDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012695b3c in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:18:21.542683 [ 6967 ] {a18e36c2-130e-48ee-b855-941a1b894cd5} executeQuery: Code: 43. DB::Exception: Function toStartOfHour supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfHour(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41354) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toStartOfHour(toDateTime('2017-12-31 00:00:00', 'UTC'), '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateTimeOrDateTime64.h:42: DB::FunctionDateOrDateTimeToDateTimeOrDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x000000001269dcbc in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:18:21.544066 [ 6967 ] {a18e36c2-130e-48ee-b855-941a1b894cd5} TCPHandler: Code: 43. DB::Exception: Function toStartOfHour supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfHour(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateTimeOrDateTime64.h:42: DB::FunctionDateOrDateTimeToDateTimeOrDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x000000001269dcbc in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:18:21.694617 [ 6967 ] {2ce97457-6687-4334-80a0-86153740c5b7} executeQuery: Code: 43. DB::Exception: Function toStartOfMinute supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfMinute(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41354) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toStartOfMinute(toDateTime('2017-12-31 00:00:00', 'UTC'), '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateTimeOrDateTime64.h:42: DB::FunctionDateOrDateTimeToDateTimeOrDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126b13fc in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:18:21.696134 [ 6967 ] {2ce97457-6687-4334-80a0-86153740c5b7} TCPHandler: Code: 43. DB::Exception: Function toStartOfMinute supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfMinute(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateTimeOrDateTime64.h:42: DB::FunctionDateOrDateTimeToDateTimeOrDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126b13fc in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:18:21.837919 [ 12933 ] {db5652e4-9bc6-4b6a-87d0-7b5440164cfe} executeQuery: Code: 69. DB::Exception: Too large parameter(s) for aggregate function 'topKWeighted' (maximum is 16777215). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41406) (comment: 01471_top_k_range_check.sql) (in query: SELECT length(topKWeighted(2, -9223372036854775808)(number, 1025)) FROM system.numbers;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionTopK.cpp:138: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionTopK(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001741977d in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:18:21.838893 [ 12933 ] {db5652e4-9bc6-4b6a-87d0-7b5440164cfe} TCPHandler: Code: 69. DB::Exception: Too large parameter(s) for aggregate function 'topKWeighted' (maximum is 16777215). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionTopK.cpp:138: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionTopK(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001741977d in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:18:22.707703 [ 12925 ] {6563ff8d-0682-4f34-9624-bbc55f2b5f08} executeQuery: Code: 69. DB::Exception: Overflow in internal computations in function groupArrayResample. Too large arguments. (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41434) (comment: 01463_resample_overflow.sql) (in query: select groupArrayResample(-9223372036854775808, 9223372036854775807, 9223372036854775807)(number, toInt64(number)) FROM numbers(7);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionResample.h:69: DB::AggregateFunctionResample::AggregateFunctionResample(std::shared_ptr, long, long, unsigned long, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017b004b6 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::AggregateFunctionResample* std::construct_at[abi:v15000], std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionResample*>(DB::AggregateFunctionResample*, std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017b00050 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>>::construct[abi:v15000], std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&, void, void>(std::allocator>&, DB::AggregateFunctionResample*, std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017affdcd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace, std::allocator>>::__shared_ptr_emplace[abi:v15000] const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&>(std::allocator>, std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017affa99 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr> std::allocate_shared[abi:v15000], std::allocator>, std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&, void>(std::allocator> const&, std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017aff8ee in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr> std::make_shared[abi:v15000], std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&, void>(std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017afcb94 in /usr/bin/clickhouse 12. /build/src/AggregateFunctions/AggregateFunctionResample.cpp:80: DB::(anonymous namespace)::AggregateFunctionCombinatorResample::transformAggregateFunction(std::shared_ptr const&, DB::AggregateFunctionProperties const&, std::vector, std::allocator>> const&, DB::Array const&) const @ 0x0000000017afc584 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:200: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac06d38 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:18:22.708921 [ 12925 ] {6563ff8d-0682-4f34-9624-bbc55f2b5f08} TCPHandler: Code: 69. DB::Exception: Overflow in internal computations in function groupArrayResample. Too large arguments. (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionResample.h:69: DB::AggregateFunctionResample::AggregateFunctionResample(std::shared_ptr, long, long, unsigned long, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017b004b6 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::AggregateFunctionResample* std::construct_at[abi:v15000], std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionResample*>(DB::AggregateFunctionResample*, std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017b00050 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>>::construct[abi:v15000], std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&, void, void>(std::allocator>&, DB::AggregateFunctionResample*, std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017affdcd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace, std::allocator>>::__shared_ptr_emplace[abi:v15000] const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&>(std::allocator>, std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017affa99 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr> std::allocate_shared[abi:v15000], std::allocator>, std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&, void>(std::allocator> const&, std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017aff8ee in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr> std::make_shared[abi:v15000], std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&, void>(std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017afcb94 in /usr/bin/clickhouse 12. /build/src/AggregateFunctions/AggregateFunctionResample.cpp:80: DB::(anonymous namespace)::AggregateFunctionCombinatorResample::transformAggregateFunction(std::shared_ptr const&, DB::AggregateFunctionProperties const&, std::vector, std::allocator>> const&, DB::Array const&) const @ 0x0000000017afc584 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:200: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac06d38 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:18:23.374886 [ 1674 ] {95b28d9d-e166-4f4b-86cf-f6212929a879} executeQuery: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 2.00, current rows: 77.00: While executing EmbeddedRocksDB. (TOO_MANY_ROWS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54292) (comment: 01504_rocksdb.sql) (in query: SELECT k, value FROM 01504_test WHERE k = 0 OR value > 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b87c2a4 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f10f1 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a6a4e0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 2024.10.22 10:18:23.442338 [ 1674 ] {95b28d9d-e166-4f4b-86cf-f6212929a879} TCPHandler: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 2.00, current rows: 77.00: While executing EmbeddedRocksDB. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b87c2a4 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f10f1 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a6a4e0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 2024.10.22 10:18:23.604300 [ 1674 ] {822d0314-7ff5-48f4-afd3-03c3ee3fdc2f} executeQuery: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 2.00, current rows: 77.00: While executing EmbeddedRocksDB. (TOO_MANY_ROWS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54292) (comment: 01504_rocksdb.sql) (in query: SELECT k, value FROM 01504_test WHERE k = 0 AND k IN (1, 3) OR k > 8;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b87c2a4 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f10f1 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a6a4e0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 2024.10.22 10:18:23.667037 [ 1674 ] {822d0314-7ff5-48f4-afd3-03c3ee3fdc2f} TCPHandler: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 2.00, current rows: 77.00: While executing EmbeddedRocksDB. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b8a5fc8 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b8a5aec in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b87c2a4 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f10f1 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a6a4e0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 2024.10.22 10:18:24.640265 [ 12925 ] {2df3196d-0609-41a9-bc75-ab3fbec2b4d3} executeQuery: Code: 44. DB::Exception: The argument of function defaultValueOfTypeName must be a constant string describing type.: While processing defaultValueOfTypeName(FQDN()). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41474) (comment: 01459_default_value_of_argument_type_nullptr_dereference.sql) (in query: SELECT defaultValueOfTypeName(FQDN());), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/defaultValueOfTypeName.cpp:51: DB::(anonymous namespace)::FunctionDefaultValueOfTypeName::getReturnTypeImpl(std::vector> const&) const @ 0x000000000da0776d in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:445: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf33b5 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:18:24.641236 [ 12925 ] {2df3196d-0609-41a9-bc75-ab3fbec2b4d3} TCPHandler: Code: 44. DB::Exception: The argument of function defaultValueOfTypeName must be a constant string describing type.: While processing defaultValueOfTypeName(FQDN()). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/defaultValueOfTypeName.cpp:51: DB::(anonymous namespace)::FunctionDefaultValueOfTypeName::getReturnTypeImpl(std::vector> const&) const @ 0x000000000da0776d in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:445: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf33b5 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:18:32.856639 [ 1139 ] {af53a067-882c-43b2-808f-f7197487bb24} executeQuery: Code: 62. DB::Exception: Syntax error: failed at position 1048577 ('-'): -. Max query size exceeded: '-'. (SYNTAX_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:54786) (in query: select 1 in (1, 1, ... (truncated 948624 characters)), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b2043aa in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:80: DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000b204355 in /usr/bin/clickhouse 6. /build/src/Parsers/parseQuery.cpp:363: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long) @ 0x000000001f483067 in /usr/bin/clickhouse 7. /build/src/Parsers/parseQuery.cpp:375: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long) @ 0x000000001f483146 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:714: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b1408 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:32.857827 [ 1139 ] {af53a067-882c-43b2-808f-f7197487bb24} DynamicQueryHandler: Code: 62. DB::Exception: Syntax error: failed at position 1048577 ('-'): -. Max query size exceeded: '-'. (SYNTAX_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b2043aa in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:80: DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000b204355 in /usr/bin/clickhouse 6. /build/src/Parsers/parseQuery.cpp:363: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long) @ 0x000000001f483067 in /usr/bin/clickhouse 7. /build/src/Parsers/parseQuery.cpp:375: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long) @ 0x000000001f483146 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:714: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b1408 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:18:33.300782 [ 12922 ] {bfdf021e-d174-42bf-9135-2a6d28c58d75} executeQuery: Code: 48. DB::Exception: Part all_2_2_0 is last inserted part with quorum in partition. Cannot drop. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48480) (comment: 01451_replicated_detach_drop_and_quorum_long.sql) (in query: ALTER TABLE replica1 DETACH PART 'all_2_2_0';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:8331: DB::StorageReplicatedMergeTree::dropPartImpl(std::shared_ptr&, String, DB::ReplicatedMergeTreeLogEntry&, bool, bool) @ 0x000000001d886aee in /usr/bin/clickhouse 7. /build/src/Storages/StorageReplicatedMergeTree.cpp:6067: DB::StorageReplicatedMergeTree::dropPart(String const&, bool, std::shared_ptr) @ 0x000000001d88887b in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:5139: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001deb16c4 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da24c in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:33.301477 [ 12922 ] {bfdf021e-d174-42bf-9135-2a6d28c58d75} TCPHandler: Code: 48. DB::Exception: Part all_2_2_0 is last inserted part with quorum in partition. Cannot drop. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:8331: DB::StorageReplicatedMergeTree::dropPartImpl(std::shared_ptr&, String, DB::ReplicatedMergeTreeLogEntry&, bool, bool) @ 0x000000001d886aee in /usr/bin/clickhouse 7. /build/src/Storages/StorageReplicatedMergeTree.cpp:6067: DB::StorageReplicatedMergeTree::dropPart(String const&, bool, std::shared_ptr) @ 0x000000001d88887b in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:5139: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001deb16c4 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da24c in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:33.856306 [ 12925 ] {ad8c2f24-e527-4271-890c-d9b43b573dae} executeQuery: Code: 232. DB::Exception: No part all_100_100_0 in committed state. (NO_SUCH_DATA_PART) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48484) (comment: 01451_replicated_detach_drop_part_long.sql) (in query: ALTER TABLE replica1 DETACH PART 'all_100_100_0';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4984: DB::MergeTreeData::checkPartCanBeDropped(String const&) @ 0x000000001deaf870 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:5138: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001deb1670 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da24c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:33.856970 [ 12925 ] {ad8c2f24-e527-4271-890c-d9b43b573dae} TCPHandler: Code: 232. DB::Exception: No part all_100_100_0 in committed state. (NO_SUCH_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4984: DB::MergeTreeData::checkPartCanBeDropped(String const&) @ 0x000000001deaf870 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:5138: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001deb1670 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da24c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:34.004099 [ 939 ] {} test_uyey2kot.replica1 (b344cea2-c547-4f9e-9525-191ec4d734c5): Part all_3_3_0 doesn't have metadata version on disk, setting it to 0. It's okay if the part was created by an old version of ClickHouse 2024.10.22 10:18:34.230344 [ 12925 ] {8e8ff02c-3141-4a56-9c2e-97d365dc6a3a} executeQuery: Code: 233. DB::Exception: Detached part "all_3_3_0" not found. (BAD_DATA_PART_NAME) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48484) (comment: 01451_replicated_detach_drop_part_long.sql) (in query: ALTER TABLE replica1 ATTACH PART 'all_3_3_0';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:7616: DB::MergeTreeData::getDiskForDetachedPart(String const&) const @ 0x000000001deb8d7c in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:5924: DB::MergeTreeData::tryLoadPartsToAttach(std::shared_ptr const&, bool, std::shared_ptr, DB::MergeTreeData::PartsTemporaryRename&) @ 0x000000001deb95fd in /usr/bin/clickhouse 8. /build/src/Storages/StorageReplicatedMergeTree.cpp:6140: DB::StorageReplicatedMergeTree::attachPartition(std::shared_ptr const&, std::shared_ptr const&, bool, std::shared_ptr) @ 0x000000001d8851c7 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:5154: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001deb1890 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da24c in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:34.231481 [ 12925 ] {8e8ff02c-3141-4a56-9c2e-97d365dc6a3a} TCPHandler: Code: 233. DB::Exception: Detached part "all_3_3_0" not found. (BAD_DATA_PART_NAME), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:7616: DB::MergeTreeData::getDiskForDetachedPart(String const&) const @ 0x000000001deb8d7c in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:5924: DB::MergeTreeData::tryLoadPartsToAttach(std::shared_ptr const&, bool, std::shared_ptr, DB::MergeTreeData::PartsTemporaryRename&) @ 0x000000001deb95fd in /usr/bin/clickhouse 8. /build/src/Storages/StorageReplicatedMergeTree.cpp:6140: DB::StorageReplicatedMergeTree::attachPartition(std::shared_ptr const&, std::shared_ptr const&, bool, std::shared_ptr) @ 0x000000001d8851c7 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:5154: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001deb1890 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da24c in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:37.731989 [ 12918 ] {283f6655-002e-472e-aead-6622656b31ed} executeQuery: Code: 57. DB::Exception: Table system.columns already exists. (TABLE_ALREADY_EXISTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41966) (comment: 01445_create_table_as_table_function.sh) (in query: CREATE TABLE system.columns AS numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x0000000018447be8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1349: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7f8915 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:37.733903 [ 12918 ] {283f6655-002e-472e-aead-6622656b31ed} TCPHandler: Code: 57. DB::Exception: Table system.columns already exists. (TABLE_ALREADY_EXISTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x0000000018447be8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1349: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7f8915 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:42.711194 [ 12922 ] {a5e1956a-2d81-41c2-9d34-7ef31af7e603} executeQuery: Code: 141. DB::Exception: Illegal SAMPLE: table doesn't support sampling. (SAMPLING_NOT_SUPPORTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42080) (comment: 01430_modify_sample_by_zookeeper_long.sql) (in query: SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM modify_sample SAMPLE 0.1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [47]) @ 0x000000000b5b9e5e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:687: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3311 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:42.712087 [ 12922 ] {a5e1956a-2d81-41c2-9d34-7ef31af7e603} TCPHandler: Code: 141. DB::Exception: Illegal SAMPLE: table doesn't support sampling. (SAMPLING_NOT_SUPPORTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [47]) @ 0x000000000b5b9e5e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:687: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3311 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:43.512511 [ 12922 ] {209768e8-1d2e-45b7-80f1-71ed2b844ab4} executeQuery: Code: 141. DB::Exception: Illegal SAMPLE: table doesn't support sampling. (SAMPLING_NOT_SUPPORTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42080) (comment: 01430_modify_sample_by_zookeeper_long.sql) (in query: SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM modify_sample_replicated SAMPLE 0.1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [47]) @ 0x000000000b5b9e5e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:687: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3311 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:43.513501 [ 12922 ] {209768e8-1d2e-45b7-80f1-71ed2b844ab4} TCPHandler: Code: 141. DB::Exception: Illegal SAMPLE: table doesn't support sampling. (SAMPLING_NOT_SUPPORTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [47]) @ 0x000000000b5b9e5e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:687: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3311 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:43.917003 [ 12922 ] {8b5374d8-5bfc-4d5f-bef4-9809ca6605f2} executeQuery: Code: 36. DB::Exception: Sampling expression must be present in the primary key. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42080) (comment: 01430_modify_sample_by_zookeeper_long.sql) (in query: ALTER TABLE modify_sample_replicated MODIFY SAMPLE BY d;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [55]) @ 0x000000000c15e1fe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:212: DB::checkSampleExpression(DB::StorageInMemoryMetadata const&, bool, bool) @ 0x000000001de66d32 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3272: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9474e in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:43.917796 [ 12922 ] {8b5374d8-5bfc-4d5f-bef4-9809ca6605f2} TCPHandler: Code: 36. DB::Exception: Sampling expression must be present in the primary key. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [55]) @ 0x000000000c15e1fe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:212: DB::checkSampleExpression(DB::StorageInMemoryMetadata const&, bool, bool) @ 0x000000001de66d32 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3272: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9474e in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:44.369478 [ 12922 ] {76d3fa9b-82de-479d-b8df-51e42a931ef0} executeQuery: Code: 36. DB::Exception: ALTER MODIFY SAMPLE BY is not supported for default-partitioned tables created with the old syntax. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42080) (comment: 01430_modify_sample_by_zookeeper_long.sql) (in query: ALTER TABLE modify_sample_old MODIFY SAMPLE BY x;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [99]) @ 0x000000001b3aff7e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3269: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9461e in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:44.370269 [ 12922 ] {76d3fa9b-82de-479d-b8df-51e42a931ef0} TCPHandler: Code: 36. DB::Exception: ALTER MODIFY SAMPLE BY is not supported for default-partitioned tables created with the old syntax. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [99]) @ 0x000000001b3aff7e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3269: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9461e in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:46.737792 [ 50241 ] {54943aba-0f5d-42a1-b43f-5b4fbd6040b1} executeQuery: Code: 36. DB::Exception: The value of 'number_of_free_entries_in_pool_to_execute_mutation' setting (100) (default values are defined in section of config.xml or the value can be specified per table in SETTINGS section of CREATE TABLE query) is greater than the value of 'background_pool_size'*'background_merges_mutations_concurrency_ratio' (32) (the value is defined in users.xml for default profile). This indicates incorrect configuration because mutations cannot work with these settings. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42202) (comment: 01419_merge_tree_settings_sanity_check.sql) (in query: CREATE TABLE mytable_local (`created` DateTime, `eventday` Date, `user_id` UInt32) ENGINE = MergeTree PARTITION BY toYYYYMM(eventday) ORDER BY (eventday, user_id) SETTINGS number_of_free_entries_in_pool_to_execute_mutation = 100, index_granularity = 31292, min_bytes_for_wide_part = 175001173, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 20809, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 65, min_merge_bytes_to_use_direct_io = 5184840306, index_granularity_bytes = 257636, allow_vertical_merges_from_compact_to_wide_parts = true, marks_compress_block_size = 10484, primary_key_compress_block_size = 26822), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception const&, unsigned long&>(int, FormatStringHelperImpl const&>::type, std::type_identity::type>, DB::SettingFieldNumber const&, unsigned long&) @ 0x000000001e1b286c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:122: DB::MergeTreeSettings::sanityCheck(unsigned long) const @ 0x000000001e15cfa0 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:367: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de64f38 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:18:46.738968 [ 50241 ] {54943aba-0f5d-42a1-b43f-5b4fbd6040b1} TCPHandler: Code: 36. DB::Exception: The value of 'number_of_free_entries_in_pool_to_execute_mutation' setting (100) (default values are defined in section of config.xml or the value can be specified per table in SETTINGS section of CREATE TABLE query) is greater than the value of 'background_pool_size'*'background_merges_mutations_concurrency_ratio' (32) (the value is defined in users.xml for default profile). This indicates incorrect configuration because mutations cannot work with these settings. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception const&, unsigned long&>(int, FormatStringHelperImpl const&>::type, std::type_identity::type>, DB::SettingFieldNumber const&, unsigned long&) @ 0x000000001e1b286c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:122: DB::MergeTreeSettings::sanityCheck(unsigned long) const @ 0x000000001e15cfa0 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:367: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de64f38 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:18:46.923204 [ 50241 ] {0049ce4c-b67e-4536-9f7e-f6143ba9d212} executeQuery: Code: 36. DB::Exception: The value of 'number_of_free_entries_in_pool_to_lower_max_size_of_merge' setting (100) (default values are defined in section of config.xml or the value can be specified per table in SETTINGS section of CREATE TABLE query) is greater than the value of 'background_pool_size'*'background_merges_mutations_concurrency_ratio' (32) (the value is defined in users.xml for default profile). This indicates incorrect configuration because the maximum size of merge will be always lowered. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42202) (comment: 01419_merge_tree_settings_sanity_check.sql) (in query: CREATE TABLE mytable_local (`created` DateTime, `eventday` Date, `user_id` UInt32) ENGINE = MergeTree PARTITION BY toYYYYMM(eventday) ORDER BY (eventday, user_id) SETTINGS number_of_free_entries_in_pool_to_lower_max_size_of_merge = 100, index_granularity = 31292, min_bytes_for_wide_part = 175001173, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 20809, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 65, min_merge_bytes_to_use_direct_io = 5184840306, index_granularity_bytes = 257636, allow_vertical_merges_from_compact_to_wide_parts = true, marks_compress_block_size = 10484, primary_key_compress_block_size = 26822), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception const&, unsigned long&>(int, FormatStringHelperImpl const&>::type, std::type_identity::type>, DB::SettingFieldNumber const&, unsigned long&) @ 0x000000001e1b286c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:134: DB::MergeTreeSettings::sanityCheck(unsigned long) const @ 0x000000001e15d065 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:367: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de64f38 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:18:46.924326 [ 50241 ] {0049ce4c-b67e-4536-9f7e-f6143ba9d212} TCPHandler: Code: 36. DB::Exception: The value of 'number_of_free_entries_in_pool_to_lower_max_size_of_merge' setting (100) (default values are defined in section of config.xml or the value can be specified per table in SETTINGS section of CREATE TABLE query) is greater than the value of 'background_pool_size'*'background_merges_mutations_concurrency_ratio' (32) (the value is defined in users.xml for default profile). This indicates incorrect configuration because the maximum size of merge will be always lowered. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception const&, unsigned long&>(int, FormatStringHelperImpl const&>::type, std::type_identity::type>, DB::SettingFieldNumber const&, unsigned long&) @ 0x000000001e1b286c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:134: DB::MergeTreeSettings::sanityCheck(unsigned long) const @ 0x000000001e15d065 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:367: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de64f38 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:18:47.119602 [ 50241 ] {4edf57a2-598c-466c-bdb1-cb919a8b799f} executeQuery: Code: 36. DB::Exception: The value of 'number_of_free_entries_in_pool_to_execute_optimize_entire_partition' setting (100) (default values are defined in section of config.xml or the value can be specified per table in SETTINGS section of CREATE TABLE query) is greater than the value of 'background_pool_size'*'background_merges_mutations_concurrency_ratio' (32) (the value is defined in users.xml for default profile). This indicates incorrect configuration because the maximum size of merge will be always lowered. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42202) (comment: 01419_merge_tree_settings_sanity_check.sql) (in query: CREATE TABLE mytable_local (`created` DateTime, `eventday` Date, `user_id` UInt32) ENGINE = MergeTree PARTITION BY toYYYYMM(eventday) ORDER BY (eventday, user_id) SETTINGS number_of_free_entries_in_pool_to_execute_optimize_entire_partition = 100, index_granularity = 31292, min_bytes_for_wide_part = 175001173, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 20809, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 65, min_merge_bytes_to_use_direct_io = 5184840306, index_granularity_bytes = 257636, allow_vertical_merges_from_compact_to_wide_parts = true, marks_compress_block_size = 10484, primary_key_compress_block_size = 26822), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception const&, unsigned long&>(int, FormatStringHelperImpl const&>::type, std::type_identity::type>, DB::SettingFieldNumber const&, unsigned long&) @ 0x000000001e1b286c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:146: DB::MergeTreeSettings::sanityCheck(unsigned long) const @ 0x000000001e15d132 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:367: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de64f38 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:18:47.121102 [ 50241 ] {4edf57a2-598c-466c-bdb1-cb919a8b799f} TCPHandler: Code: 36. DB::Exception: The value of 'number_of_free_entries_in_pool_to_execute_optimize_entire_partition' setting (100) (default values are defined in section of config.xml or the value can be specified per table in SETTINGS section of CREATE TABLE query) is greater than the value of 'background_pool_size'*'background_merges_mutations_concurrency_ratio' (32) (the value is defined in users.xml for default profile). This indicates incorrect configuration because the maximum size of merge will be always lowered. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception const&, unsigned long&>(int, FormatStringHelperImpl const&>::type, std::type_identity::type>, DB::SettingFieldNumber const&, unsigned long&) @ 0x000000001e1b286c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:146: DB::MergeTreeSettings::sanityCheck(unsigned long) const @ 0x000000001e15d132 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:367: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de64f38 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:18:47.312547 [ 50241 ] {6a8ae68a-0a4d-4283-8b5b-b5cc68bc294e} executeQuery: Code: 36. DB::Exception: The value of 'number_of_free_entries_in_pool_to_execute_mutation' setting (100) (default values are defined in section of config.xml or the value can be specified per table in SETTINGS section of CREATE TABLE query) is greater than the value of 'background_pool_size'*'background_merges_mutations_concurrency_ratio' (32) (the value is defined in users.xml for default profile). This indicates incorrect configuration because mutations cannot work with these settings. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42202) (comment: 01419_merge_tree_settings_sanity_check.sql) (in query: ALTER TABLE mytable_local MODIFY SETTING number_of_free_entries_in_pool_to_execute_mutation = 100;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception const&, unsigned long&>(int, FormatStringHelperImpl const&>::type, std::type_identity::type>, DB::SettingFieldNumber const&, unsigned long&) @ 0x000000001e1b286c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:122: DB::MergeTreeSettings::sanityCheck(unsigned long) const @ 0x000000001e15cfa0 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3587: DB::MergeTreeData::changeSettings(std::shared_ptr const&, std::unique_lock&) @ 0x000000001de9a247 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:333: DB::StorageMergeTree::alter(DB::AlterCommands const&, std::shared_ptr, std::unique_lock&) @ 0x000000001e36650c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:197: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da5e6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:47.313364 [ 50241 ] {6a8ae68a-0a4d-4283-8b5b-b5cc68bc294e} TCPHandler: Code: 36. DB::Exception: The value of 'number_of_free_entries_in_pool_to_execute_mutation' setting (100) (default values are defined in section of config.xml or the value can be specified per table in SETTINGS section of CREATE TABLE query) is greater than the value of 'background_pool_size'*'background_merges_mutations_concurrency_ratio' (32) (the value is defined in users.xml for default profile). This indicates incorrect configuration because mutations cannot work with these settings. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception const&, unsigned long&>(int, FormatStringHelperImpl const&>::type, std::type_identity::type>, DB::SettingFieldNumber const&, unsigned long&) @ 0x000000001e1b286c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:122: DB::MergeTreeSettings::sanityCheck(unsigned long) const @ 0x000000001e15cfa0 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3587: DB::MergeTreeData::changeSettings(std::shared_ptr const&, std::unique_lock&) @ 0x000000001de9a247 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:333: DB::StorageMergeTree::alter(DB::AlterCommands const&, std::shared_ptr, std::unique_lock&) @ 0x000000001e36650c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:197: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da5e6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:47.526190 [ 12918 ] {8728f44b-e6e1-4bb9-b688-208ddbf9dee0} executeQuery: Code: 524. DB::Exception: Trying to ALTER DROP key key1 column which is a part of key expression. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46258) (comment: 01416_clear_column_pk.sql) (in query: ALTER TABLE table_with_pk_clear CLEAR COLUMN key1 IN PARTITION tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3308: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de94d6b in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:47.527216 [ 12918 ] {8728f44b-e6e1-4bb9-b688-208ddbf9dee0} TCPHandler: Code: 524. DB::Exception: Trying to ALTER DROP key key1 column which is a part of key expression. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3308: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de94d6b in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:47.600695 [ 12918 ] {cf0e2874-173a-475d-8431-9d8b9c919b15} executeQuery: Code: 524. DB::Exception: Trying to ALTER DROP key key2 column which is a part of key expression. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46258) (comment: 01416_clear_column_pk.sql) (in query: ALTER TABLE table_with_pk_clear CLEAR COLUMN key2 IN PARTITION tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3308: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de94d6b in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:47.601336 [ 12918 ] {cf0e2874-173a-475d-8431-9d8b9c919b15} TCPHandler: Code: 524. DB::Exception: Trying to ALTER DROP key key2 column which is a part of key expression. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3308: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de94d6b in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:18:51.923647 [ 50241 ] {88f357dd-6acd-4c6a-a1b5-b278b6c1c8fc} executeQuery: Code: 36. DB::Exception: Parameter for aggregate function groupArrayMovingSum should be positive integer. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46388) (comment: 01412_group_array_moving_shard.sql) (in query: SELECT groupArrayMovingSum(0)(1) FROM numbers(100);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:274: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMoving(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001777d967 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:18:51.924680 [ 50241 ] {88f357dd-6acd-4c6a-a1b5-b278b6c1c8fc} TCPHandler: Code: 36. DB::Exception: Parameter for aggregate function groupArrayMovingSum should be positive integer. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:274: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMoving(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001777d967 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:18:52.057816 [ 50241 ] {fe8828e0-5bf2-466f-b82d-d06a84e38629} executeQuery: Code: 36. DB::Exception: Parameter for aggregate function groupArrayMovingSum should be positive integer. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46388) (comment: 01412_group_array_moving_shard.sql) (in query: SELECT groupArrayMovingSum(0.)(1) FROM numbers(100);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:270: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMoving(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001777d870 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:18:52.058818 [ 50241 ] {fe8828e0-5bf2-466f-b82d-d06a84e38629} TCPHandler: Code: 36. DB::Exception: Parameter for aggregate function groupArrayMovingSum should be positive integer. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:270: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMoving(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001777d870 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:18:52.069571 [ 50241 ] {59fbb55c-bc17-4f94-bef7-292937378373} executeQuery: Code: 36. DB::Exception: Parameter for aggregate function groupArrayMovingSum should be positive integer. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46388) (comment: 01412_group_array_moving_shard.sql) (in query: SELECT groupArrayMovingSum(0.1)(1) FROM numbers(100);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:270: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMoving(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001777d870 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:18:52.070820 [ 50241 ] {59fbb55c-bc17-4f94-bef7-292937378373} TCPHandler: Code: 36. DB::Exception: Parameter for aggregate function groupArrayMovingSum should be positive integer. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:270: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMoving(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001777d870 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:18:52.083764 [ 50241 ] {108f2672-2323-4601-a795-ddfca64e46ef} executeQuery: Code: 36. DB::Exception: Parameter for aggregate function groupArrayMovingSum should be positive integer. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46388) (comment: 01412_group_array_moving_shard.sql) (in query: SELECT groupArrayMovingSum(0.1)(1) FROM remote('127.0.0.{1,2}', numbers(100));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:270: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMoving(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001777d870 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:18:52.084934 [ 50241 ] {108f2672-2323-4601-a795-ddfca64e46ef} TCPHandler: Code: 36. DB::Exception: Parameter for aggregate function groupArrayMovingSum should be positive integer. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:270: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMoving(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001777d870 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:18:52.528080 [ 50241 ] {dfa026ee-a680-40db-a487-6247da5f2c9b} executeQuery: Code: 407. DB::Exception: Decimal convert overflow: 10000000000 is not in range (-2147483648, 2147483647): While processing toDecimal32(1000000000, 1). (DECIMAL_OVERFLOW) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46388) (comment: 01412_group_array_moving_shard.sql) (in query: SELECT groupArrayMovingSum(256)(toDecimal32(1000000000, 1)) FROM numbers(300);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&, String&&) @ 0x000000000b245da4 in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypesDecimal.h:142: void DB::convertDecimalsImpl>, DB::DataTypeDecimal>, void>(DB::DataTypeDecimal>::FieldType const&, unsigned int, unsigned int, DB::DataTypeDecimal>::FieldType&) @ 0x000000000b4d3994 in /usr/bin/clickhouse 7. /build/src/DataTypes/DataTypesDecimal.h:244: void DB::convertToDecimalImpl, DB::DataTypeDecimal>, void>(DB::DataTypeNumber::FieldType const&, unsigned int, DB::DataTypeDecimal>::FieldType&) @ 0x000000000b4d59dc in /usr/bin/clickhouse 8. /build/src/DataTypes/DataTypesDecimal.h:254: DB::DataTypeDecimal>::FieldType DB::convertToDecimal, DB::DataTypeDecimal>>(DB::DataTypeNumber::FieldType const&, unsigned int) @ 0x000000000b4d597f in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:270: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeDecimal>, DB::NameToDecimal32, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba52577 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba4ee76 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:179: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3ca0b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 2024.10.22 10:18:52.529189 [ 50241 ] {dfa026ee-a680-40db-a487-6247da5f2c9b} TCPHandler: Code: 407. DB::Exception: Decimal convert overflow: 10000000000 is not in range (-2147483648, 2147483647): While processing toDecimal32(1000000000, 1). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&, String&&) @ 0x000000000b245da4 in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypesDecimal.h:142: void DB::convertDecimalsImpl>, DB::DataTypeDecimal>, void>(DB::DataTypeDecimal>::FieldType const&, unsigned int, unsigned int, DB::DataTypeDecimal>::FieldType&) @ 0x000000000b4d3994 in /usr/bin/clickhouse 7. /build/src/DataTypes/DataTypesDecimal.h:244: void DB::convertToDecimalImpl, DB::DataTypeDecimal>, void>(DB::DataTypeNumber::FieldType const&, unsigned int, DB::DataTypeDecimal>::FieldType&) @ 0x000000000b4d59dc in /usr/bin/clickhouse 8. /build/src/DataTypes/DataTypesDecimal.h:254: DB::DataTypeDecimal>::FieldType DB::convertToDecimal, DB::DataTypeDecimal>>(DB::DataTypeNumber::FieldType const&, unsigned int) @ 0x000000000b4d597f in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:270: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeDecimal>, DB::NameToDecimal32, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba52577 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba4ee76 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:179: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3ca0b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 2024.10.22 10:18:53.155871 [ 50113 ] {c178d919-9d19-4292-8732-46d529cbfd2e} executeQuery: Code: 131. DB::Exception: Too large string size (1095207661) in function repeat, maximum is: 1073741824: while executing 'FUNCTION repeat('0.0001048576' :: 1, multiply(number, multiply(number, multiply(number, 255))) :: 3) -> repeat('0.0001048576', multiply(number, multiply(number, multiply(number, 255)))) String : 2'. (TOO_LARGE_STRING_SIZE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46440) (comment: 01404_roundUpToPowerOfTwoOrZero_safety.sql) (in query: -- repeat() with this length and this number of rows will allocation huge enough region (MSB set), -- which will cause roundUpToPowerOfTwoOrZero() returns 0 for such allocation (before the fix), -- and later repeat() will try to use this memory and will got SIGSEGV. SELECT repeat('0.0001048576', number * (number * (number * 255))) FROM numbers(65535);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long const&) @ 0x000000000c4b5e8c in /usr/bin/clickhouse 6. /build/src/Functions/repeat.cpp:36: DB::(anonymous namespace)::RepeatImpl::checkStringSize(unsigned long) @ 0x00000000124a9018 in /usr/bin/clickhouse 7. /build/src/Functions/repeat.cpp:111: void DB::(anonymous namespace)::RepeatImpl::constStrVectorRepeat(std::basic_string_view>, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul> const&) @ 0x00000000124adb0c in /usr/bin/clickhouse 8. /build/src/Functions/repeat.cpp:247: auto DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda1'(auto const&)::operator()>(auto const&) const @ 0x00000000124acbbe in /usr/bin/clickhouse 9. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda1'(auto const&)>(DB::IDataType const*, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda1'(auto const&)&&) @ 0x00000000124ac2f8 in /usr/bin/clickhouse 10. /build/src/Functions/repeat.cpp:172: bool DB::(anonymous namespace)::FunctionRepeat::castType> const&, std::shared_ptr const&, unsigned long) const::'lambda1'(auto const&)>(DB::IDataType const*, auto&&) @ 0x00000000124a843d in /usr/bin/clickhouse 11. /build/src/Functions/repeat.cpp:241: DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000124a7e0e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 19. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 20. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 2024.10.22 10:18:53.157108 [ 50113 ] {c178d919-9d19-4292-8732-46d529cbfd2e} TCPHandler: Code: 131. DB::Exception: Too large string size (1095207661) in function repeat, maximum is: 1073741824: while executing 'FUNCTION repeat('0.0001048576' :: 1, multiply(number, multiply(number, multiply(number, 255))) :: 3) -> repeat('0.0001048576', multiply(number, multiply(number, multiply(number, 255)))) String : 2'. (TOO_LARGE_STRING_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long const&) @ 0x000000000c4b5e8c in /usr/bin/clickhouse 6. /build/src/Functions/repeat.cpp:36: DB::(anonymous namespace)::RepeatImpl::checkStringSize(unsigned long) @ 0x00000000124a9018 in /usr/bin/clickhouse 7. /build/src/Functions/repeat.cpp:111: void DB::(anonymous namespace)::RepeatImpl::constStrVectorRepeat(std::basic_string_view>, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul> const&) @ 0x00000000124adb0c in /usr/bin/clickhouse 8. /build/src/Functions/repeat.cpp:247: auto DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda1'(auto const&)::operator()>(auto const&) const @ 0x00000000124acbbe in /usr/bin/clickhouse 9. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda1'(auto const&)>(DB::IDataType const*, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda1'(auto const&)&&) @ 0x00000000124ac2f8 in /usr/bin/clickhouse 10. /build/src/Functions/repeat.cpp:172: bool DB::(anonymous namespace)::FunctionRepeat::castType> const&, std::shared_ptr const&, unsigned long) const::'lambda1'(auto const&)>(DB::IDataType const*, auto&&) @ 0x00000000124a843d in /usr/bin/clickhouse 11. /build/src/Functions/repeat.cpp:241: DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000124a7e0e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 19. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 20. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 2024.10.22 10:19:00.665260 [ 672 ] {faf6edfd-b66e-4c5f-a596-29b4ba6cb973} executeQuery: Code: 469. DB::Exception: Constraint `bogus` for table _temporary_and_external_tables.`_tmp_44a763d4-69af-41ac-80df-9df99c31cc1a` (44a763d4-69af-41ac-80df-9df99c31cc1a) is violated at row 1. Expression: (0). Column values: . (VIOLATED_CONSTRAINT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:44310) (comment: 01358_constexpr_constraint.sql) (in query: INSERT INTO constrained VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eba135a in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eba0fa0 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:00.666257 [ 672 ] {faf6edfd-b66e-4c5f-a596-29b4ba6cb973} TCPHandler: Code: 469. DB::Exception: Constraint `bogus` for table _temporary_and_external_tables.`_tmp_44a763d4-69af-41ac-80df-9df99c31cc1a` (44a763d4-69af-41ac-80df-9df99c31cc1a) is violated at row 1. Expression: (0). Column values: . (VIOLATED_CONSTRAINT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eba135a in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eba0fa0 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:03.571350 [ 12925 ] {34b6842c-7f05-451e-911f-abafa94c205b} executeQuery: Code: 524. DB::Exception: ALTER of partition key column x from type Enum8('hello' = 1, 'world' = 2, 'goodbye' = 3) to type Enum8('hello' = 1, 'world' = 2) is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:44374) (comment: 01346_alter_enum_partition_key_replicated_zookeeper_long.sql) (in query: ALTER TABLE test MODIFY COLUMN x Enum('hello' = 1, 'world' = 2);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de95a88 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:03.572042 [ 12925 ] {34b6842c-7f05-451e-911f-abafa94c205b} TCPHandler: Code: 524. DB::Exception: ALTER of partition key column x from type Enum8('hello' = 1, 'world' = 2, 'goodbye' = 3) to type Enum8('hello' = 1, 'world' = 2) is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de95a88 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:03.657458 [ 12925 ] {29eb0791-cd19-4bc9-8a0c-d06fd6bf483c} executeQuery: Code: 524. DB::Exception: ALTER of partition key column x from type Enum8('hello' = 1, 'world' = 2, 'test' = 3) to type Enum8('hello' = 1, 'world' = 2, 'goodbye' = 4) is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:44374) (comment: 01346_alter_enum_partition_key_replicated_zookeeper_long.sql) (in query: ALTER TABLE test MODIFY COLUMN x Enum('hello' = 1, 'world' = 2, 'goodbye' = 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de95a88 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:03.658058 [ 12925 ] {29eb0791-cd19-4bc9-8a0c-d06fd6bf483c} TCPHandler: Code: 524. DB::Exception: ALTER of partition key column x from type Enum8('hello' = 1, 'world' = 2, 'test' = 3) to type Enum8('hello' = 1, 'world' = 2, 'goodbye' = 4) is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de95a88 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:04.080233 [ 12925 ] {790b4ad5-3d0b-43ed-a767-01fdbbb4e891} executeQuery: Code: 524. DB::Exception: ALTER of partition key column x from type Int8 to type Enum8('' = 1) is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:44374) (comment: 01346_alter_enum_partition_key_replicated_zookeeper_long.sql) (in query: ALTER TABLE test MODIFY COLUMN x Enum8('' = 1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de95a88 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:04.081161 [ 12925 ] {790b4ad5-3d0b-43ed-a767-01fdbbb4e891} TCPHandler: Code: 524. DB::Exception: ALTER of partition key column x from type Int8 to type Enum8('' = 1) is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de95a88 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:04.110611 [ 12925 ] {30901965-aa14-460e-9efc-7d0a2963db3f} executeQuery: Code: 524. DB::Exception: ALTER of partition key column x from type Int8 to type Enum16('' = 1) is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:44374) (comment: 01346_alter_enum_partition_key_replicated_zookeeper_long.sql) (in query: ALTER TABLE test MODIFY COLUMN x Enum16('' = 1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de95a88 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:04.111494 [ 12925 ] {30901965-aa14-460e-9efc-7d0a2963db3f} TCPHandler: Code: 524. DB::Exception: ALTER of partition key column x from type Int8 to type Enum16('' = 1) is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de95a88 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:04.140502 [ 12925 ] {1cec9243-e1fe-4f11-8924-8998de090262} executeQuery: Code: 524. DB::Exception: ALTER of partition key column x from type Int8 to type UInt64 is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:44374) (comment: 01346_alter_enum_partition_key_replicated_zookeeper_long.sql) (in query: ALTER TABLE test MODIFY COLUMN x UInt64;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de95a88 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:04.141439 [ 12925 ] {1cec9243-e1fe-4f11-8924-8998de090262} TCPHandler: Code: 524. DB::Exception: ALTER of partition key column x from type Int8 to type UInt64 is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de95a88 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:04.170804 [ 12925 ] {baa8cbbd-7f7c-4221-acbc-37d21b385f8e} executeQuery: Code: 524. DB::Exception: ALTER of partition key column x from type Int8 to type String is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:44374) (comment: 01346_alter_enum_partition_key_replicated_zookeeper_long.sql) (in query: ALTER TABLE test MODIFY COLUMN x String;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de95a88 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:04.171790 [ 12925 ] {baa8cbbd-7f7c-4221-acbc-37d21b385f8e} TCPHandler: Code: 524. DB::Exception: ALTER of partition key column x from type Int8 to type String is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de95a88 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:04.203164 [ 12925 ] {78c98769-d8ff-4d1b-ba16-054cdace60c7} executeQuery: Code: 524. DB::Exception: ALTER of partition key column x from type Int8 to type Nullable(Int64) is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:44374) (comment: 01346_alter_enum_partition_key_replicated_zookeeper_long.sql) (in query: ALTER TABLE test MODIFY COLUMN x Nullable(Int64);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de95a88 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:04.204149 [ 12925 ] {78c98769-d8ff-4d1b-ba16-054cdace60c7} TCPHandler: Code: 524. DB::Exception: ALTER of partition key column x from type Int8 to type Nullable(Int64) is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de95a88 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:04.365415 [ 12925 ] {8005e99b-3bb4-4e76-86eb-70a150f3177c} executeQuery: Code: 524. DB::Exception: Trying to ALTER RENAME key x column which is a part of key expression. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:44374) (comment: 01346_alter_enum_partition_key_replicated_zookeeper_long.sql) (in query: ALTER TABLE test RENAME COLUMN x TO z;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3288: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de949f6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:04.366469 [ 12925 ] {8005e99b-3bb4-4e76-86eb-70a150f3177c} TCPHandler: Code: 524. DB::Exception: Trying to ALTER RENAME key x column which is a part of key expression. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3288: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de949f6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:04.384382 [ 12925 ] {2aa4e158-4df6-4eb0-a47c-521ce1196f43} executeQuery: Code: 524. DB::Exception: Trying to ALTER RENAME key y column which is a part of key expression. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:44374) (comment: 01346_alter_enum_partition_key_replicated_zookeeper_long.sql) (in query: ALTER TABLE test RENAME COLUMN y TO z;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3288: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de949f6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:04.385252 [ 12925 ] {2aa4e158-4df6-4eb0-a47c-521ce1196f43} TCPHandler: Code: 524. DB::Exception: Trying to ALTER RENAME key y column which is a part of key expression. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3288: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de949f6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:04.536705 [ 12925 ] {da32a44f-7563-4be9-980a-33bd05fb2c16} executeQuery: Code: 47. DB::Exception: Missing columns: 'x' while processing query: 'x', required columns: 'x' 'x'. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:44374) (comment: 01346_alter_enum_partition_key_replicated_zookeeper_long.sql) (in query: ALTER TABLE test DROP COLUMN x;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1355: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa6838 in /usr/bin/clickhouse 8. /build/src/Storages/KeyDescription.cpp:140: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d600e20 in /usr/bin/clickhouse 9. /build/src/Storages/KeyDescription.cpp:75: DB::KeyDescription::recalculateWithNewAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr) @ 0x000000001d600a06 in /usr/bin/clickhouse 10. /build/src/Storages/AlterCommands.cpp:946: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d590a4f in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9310c in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:04.537629 [ 12925 ] {da32a44f-7563-4be9-980a-33bd05fb2c16} TCPHandler: Code: 47. DB::Exception: Missing columns: 'x' while processing query: 'x', required columns: 'x' 'x'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1355: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa6838 in /usr/bin/clickhouse 8. /build/src/Storages/KeyDescription.cpp:140: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d600e20 in /usr/bin/clickhouse 9. /build/src/Storages/KeyDescription.cpp:75: DB::KeyDescription::recalculateWithNewAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr) @ 0x000000001d600a06 in /usr/bin/clickhouse 10. /build/src/Storages/AlterCommands.cpp:946: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d590a4f in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9310c in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:04.675113 [ 12925 ] {d36ff56e-d5c4-4781-9be1-16f3132805a5} executeQuery: Code: 47. DB::Exception: Missing columns: 'y' while processing query: 'y', required columns: 'y' 'y'. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:44374) (comment: 01346_alter_enum_partition_key_replicated_zookeeper_long.sql) (in query: ALTER TABLE test DROP COLUMN y;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1355: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa6838 in /usr/bin/clickhouse 8. /build/src/Storages/KeyDescription.cpp:140: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d600e20 in /usr/bin/clickhouse 9. /build/src/Storages/KeyDescription.cpp:75: DB::KeyDescription::recalculateWithNewAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr) @ 0x000000001d600a06 in /usr/bin/clickhouse 10. /build/src/Storages/AlterCommands.cpp:932: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d59089d in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9310c in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:04.675953 [ 12925 ] {d36ff56e-d5c4-4781-9be1-16f3132805a5} TCPHandler: Code: 47. DB::Exception: Missing columns: 'y' while processing query: 'y', required columns: 'y' 'y'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1355: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa6838 in /usr/bin/clickhouse 8. /build/src/Storages/KeyDescription.cpp:140: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d600e20 in /usr/bin/clickhouse 9. /build/src/Storages/KeyDescription.cpp:75: DB::KeyDescription::recalculateWithNewAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr) @ 0x000000001d600a06 in /usr/bin/clickhouse 10. /build/src/Storages/AlterCommands.cpp:932: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d59089d in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9310c in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:05.070229 [ 672 ] {85c59abe-67ae-42a7-88da-faf6a8b9cc41} executeQuery: Code: 47. DB::Exception: Unknown qualified identifier: abc: While processing abc.*. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:44404) (comment: 01333_select_abc_asterisk.sql) (in query: --error: should be failed for abc.*; select abc.*;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:170: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTQualifiedAsterisk const&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d024af9 in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:225: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d0238ce in /usr/bin/clickhouse 8. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:112: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d023059 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cfb21c0 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23a1 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cfb2005 in /usr/bin/clickhouse 16. /build/src/Interpreters/TreeRewriter.cpp:310: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cfa2d4c in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1246 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:19:05.071314 [ 672 ] {85c59abe-67ae-42a7-88da-faf6a8b9cc41} TCPHandler: Code: 47. DB::Exception: Unknown qualified identifier: abc: While processing abc.*. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:170: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTQualifiedAsterisk const&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d024af9 in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:225: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d0238ce in /usr/bin/clickhouse 8. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:112: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d023059 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cfb21c0 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23a1 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cfb2005 in /usr/bin/clickhouse 16. /build/src/Interpreters/TreeRewriter.cpp:310: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cfa2d4c in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1246 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:19:05.078271 [ 672 ] {a38f2005-1345-4e83-ad35-6f0bf212898e} executeQuery: Code: 47. DB::Exception: Unknown qualified identifier: abc: While processing *, abc.*. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:44404) (comment: 01333_select_abc_asterisk.sql) (in query: select *, abc.*;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:170: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTQualifiedAsterisk const&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d024af9 in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:225: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d0238ce in /usr/bin/clickhouse 8. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:112: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d023059 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cfb21c0 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23a1 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cfb2005 in /usr/bin/clickhouse 16. /build/src/Interpreters/TreeRewriter.cpp:310: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cfa2d4c in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1246 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:19:05.079338 [ 672 ] {a38f2005-1345-4e83-ad35-6f0bf212898e} TCPHandler: Code: 47. DB::Exception: Unknown qualified identifier: abc: While processing *, abc.*. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:170: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTQualifiedAsterisk const&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d024af9 in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:225: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d0238ce in /usr/bin/clickhouse 8. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:112: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d023059 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cfb21c0 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23a1 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cfb2005 in /usr/bin/clickhouse 16. /build/src/Interpreters/TreeRewriter.cpp:310: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cfa2d4c in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1246 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:19:05.085899 [ 672 ] {7578f0ad-d3cc-4275-8265-08ac90a48791} executeQuery: Code: 47. DB::Exception: Unknown qualified identifier: abc: While processing abc.*, *. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:44404) (comment: 01333_select_abc_asterisk.sql) (in query: select abc.*, *;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:170: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTQualifiedAsterisk const&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d024af9 in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:225: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d0238ce in /usr/bin/clickhouse 8. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:112: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d023059 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cfb21c0 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23a1 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cfb2005 in /usr/bin/clickhouse 16. /build/src/Interpreters/TreeRewriter.cpp:310: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cfa2d4c in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1246 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:19:05.086762 [ 672 ] {7578f0ad-d3cc-4275-8265-08ac90a48791} TCPHandler: Code: 47. DB::Exception: Unknown qualified identifier: abc: While processing abc.*, *. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:170: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTQualifiedAsterisk const&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d024af9 in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:225: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d0238ce in /usr/bin/clickhouse 8. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:112: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d023059 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cfb21c0 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23a1 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cfb2005 in /usr/bin/clickhouse 16. /build/src/Interpreters/TreeRewriter.cpp:310: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cfa2d4c in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1246 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:19:08.628653 [ 50237 ] {6e1884be-42c0-449e-83e2-df6f7f8240ae} executeQuery: Code: 42. DB::Exception: Incorrect number of arguments for function aes_encrypt_mysql provided 0, expected 3 to 4 ('mode' : encryption mode string, 'input' : plaintext, 'key' : encryption key binary string, ['IV' : Initialization vector binary string]): While processing aes_encrypt_mysql(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: --- aes_encrypt_mysql(string, key, block_mode[, init_vector, AAD]) -- The MySQL-compatitable encryption, only ecb, cbc and ofb modes are supported, -- just like for MySQL -- https://dev.mysql.com/doc/refman/8.0/en/encryption-functions.html#function_aes-encrypt -- https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_block_encryption_mode -- Please note that for keys that exceed mode-specific length, keys are folded in a MySQL-specific way, -- meaning that whole key is used, but effective key length is still determined by mode. -- when key doesn't exceed the default mode length, ecryption result equals with AES_encypt() ----------------------------------------------------------------------------------------- -- error cases ----------------------------------------------------------------------------------------- SELECT aes_encrypt_mysql();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001ac0141d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff365 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4b79fd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:19:08.631169 [ 50237 ] {6e1884be-42c0-449e-83e2-df6f7f8240ae} TCPHandler: Code: 42. DB::Exception: Incorrect number of arguments for function aes_encrypt_mysql provided 0, expected 3 to 4 ('mode' : encryption mode string, 'input' : plaintext, 'key' : encryption key binary string, ['IV' : Initialization vector binary string]): While processing aes_encrypt_mysql(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001ac0141d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff365 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4b79fd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:19:08.640202 [ 50237 ] {db29353c-70ae-4e28-9e92-a9477eb882ed} executeQuery: Code: 42. DB::Exception: Incorrect number of arguments for function aes_encrypt_mysql provided 1 (String), expected 3 to 4 ('mode' : encryption mode string, 'input' : plaintext, 'key' : encryption key binary string, ['IV' : Initialization vector binary string]): While processing aes_encrypt_mysql('aes-128-ecb'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: SELECT aes_encrypt_mysql('aes-128-ecb');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001ac0141d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff365 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4b79fd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:19:08.640980 [ 50237 ] {db29353c-70ae-4e28-9e92-a9477eb882ed} TCPHandler: Code: 42. DB::Exception: Incorrect number of arguments for function aes_encrypt_mysql provided 1 (String), expected 3 to 4 ('mode' : encryption mode string, 'input' : plaintext, 'key' : encryption key binary string, ['IV' : Initialization vector binary string]): While processing aes_encrypt_mysql('aes-128-ecb'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001ac0141d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff365 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4b79fd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:19:08.649042 [ 50237 ] {d4f35062-bb1b-4abc-976a-ef6ce4597c89} executeQuery: Code: 42. DB::Exception: Incorrect number of arguments for function aes_encrypt_mysql provided 2 (String, String), expected 3 to 4 ('mode' : encryption mode string, 'input' : plaintext, 'key' : encryption key binary string, ['IV' : Initialization vector binary string]): While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: SELECT aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001ac0141d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff365 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4b79fd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:19:08.649860 [ 50237 ] {d4f35062-bb1b-4abc-976a-ef6ce4597c89} TCPHandler: Code: 42. DB::Exception: Incorrect number of arguments for function aes_encrypt_mysql provided 2 (String, String), expected 3 to 4 ('mode' : encryption mode string, 'input' : plaintext, 'key' : encryption key binary string, ['IV' : Initialization vector binary string]): While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001ac0141d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff365 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4b79fd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:19:08.780608 [ 50237 ] {6b935344-9891-4e8e-b395-ae11c5756387} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'mode' of function aes_encrypt_mysql, expected encryption mode string, got UInt16: While processing aes_encrypt_mysql(789, '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: SELECT aes_encrypt_mysql(789, '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4b79fd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:08.781650 [ 50237 ] {6b935344-9891-4e8e-b395-ae11c5756387} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'mode' of function aes_encrypt_mysql, expected encryption mode string, got UInt16: While processing aes_encrypt_mysql(789, '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4b79fd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:08.911112 [ 1674 ] {e382a8b8-0b4b-4074-8ebe-12bb57d92cb6} executeQuery: Code: 43. DB::Exception: Function mapPopulateSeries key argument should be of signed or unsigned integer type. Actual type String: While processing mapPopulateSeries(['1', '2'], [1, 1]) AS res, toTypeName(res). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39738) (comment: 01318_map_populate_series.sql) (in query: select mapPopulateSeries(['1', '2'], [1, 1]) as res, toTypeName(res);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/array/mapPopulateSeries.cpp:52: DB::FunctionMapPopulateSeries::checkTypes(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000138310f4 in /usr/bin/clickhouse 7. /build/src/Functions/array/mapPopulateSeries.cpp:142: DB::FunctionMapPopulateSeries::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000135b7798 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:09.027895 [ 50237 ] {aa606e1f-2e9f-4a93-a706-d9061aeafe10} executeQuery: Code: 36. DB::Exception: Invalid mode: blah blah blah: While processing aes_encrypt_mysql('blah blah blah', '[HIDDEN]'). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: SELECT aes_encrypt_mysql('blah blah blah', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:187: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c4b702d in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:19:09.027945 [ 1674 ] {e382a8b8-0b4b-4074-8ebe-12bb57d92cb6} TCPHandler: Code: 43. DB::Exception: Function mapPopulateSeries key argument should be of signed or unsigned integer type. Actual type String: While processing mapPopulateSeries(['1', '2'], [1, 1]) AS res, toTypeName(res). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/array/mapPopulateSeries.cpp:52: DB::FunctionMapPopulateSeries::checkTypes(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000138310f4 in /usr/bin/clickhouse 7. /build/src/Functions/array/mapPopulateSeries.cpp:142: DB::FunctionMapPopulateSeries::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000135b7798 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:09.028897 [ 50237 ] {aa606e1f-2e9f-4a93-a706-d9061aeafe10} TCPHandler: Code: 36. DB::Exception: Invalid mode: blah blah blah: While processing aes_encrypt_mysql('blah blah blah', '[HIDDEN]'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:187: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c4b702d in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:19:09.037778 [ 50237 ] {7e48b96b-ec42-4b96-842f-39c98110b9cd} executeQuery: Code: 36. DB::Exception: Invalid mode: des-ede3-ecb: While processing aes_encrypt_mysql('des-ede3-ecb', '[HIDDEN]'). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: SELECT aes_encrypt_mysql('des-ede3-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:187: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c4b702d in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:19:09.038712 [ 50237 ] {7e48b96b-ec42-4b96-842f-39c98110b9cd} TCPHandler: Code: 36. DB::Exception: Invalid mode: des-ede3-ecb: While processing aes_encrypt_mysql('des-ede3-ecb', '[HIDDEN]'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:187: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c4b702d in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:19:09.169787 [ 1674 ] {c27a1c1a-dfea-48c4-ae4d-f9cc60db4170} executeQuery: Code: 36. DB::Exception: Function mapPopulateSeries key and value array should have same amount of elements: While processing mapPopulateSeries([1, 2, 3], [1, 1]) AS res, toTypeName(res). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39738) (comment: 01318_map_populate_series.sql) (in query: select mapPopulateSeries([1, 2, 3], [1, 1]) as res, toTypeName(res);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/array/mapPopulateSeries.cpp:342: DB::FunctionMapPopulateSeries::extractKeyAndValueInput(std::vector> const&) const @ 0x00000000135b7f56 in /usr/bin/clickhouse 7. /build/src/Functions/array/mapPopulateSeries.cpp:450: DB::FunctionMapPopulateSeries::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000135b6d48 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:19:09.299627 [ 1674 ] {c27a1c1a-dfea-48c4-ae4d-f9cc60db4170} TCPHandler: Code: 36. DB::Exception: Function mapPopulateSeries key and value array should have same amount of elements: While processing mapPopulateSeries([1, 2, 3], [1, 1]) AS res, toTypeName(res). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/array/mapPopulateSeries.cpp:342: DB::FunctionMapPopulateSeries::extractKeyAndValueInput(std::vector> const&) const @ 0x00000000135b7f56 in /usr/bin/clickhouse 7. /build/src/Functions/array/mapPopulateSeries.cpp:450: DB::FunctionMapPopulateSeries::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000135b6d48 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:19:09.299723 [ 50237 ] {0eb85223-2520-4f1d-9910-6721baa22d39} executeQuery: Code: 36. DB::Exception: Unsupported cipher mode: While processing aes_encrypt_mysql('aes-128-gcm', '[HIDDEN]'). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: SELECT aes_encrypt_mysql('aes-128-gcm', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [24]) @ 0x000000000c4b567e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:121: void OpenSSLDetails::validateCipherMode<(OpenSSLDetails::CompatibilityMode)0>(evp_cipher_st const*) @ 0x000000000c4b555e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:198: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c4b7263 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:19:09.301088 [ 50237 ] {0eb85223-2520-4f1d-9910-6721baa22d39} TCPHandler: Code: 36. DB::Exception: Unsupported cipher mode: While processing aes_encrypt_mysql('aes-128-gcm', '[HIDDEN]'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [24]) @ 0x000000000c4b567e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:121: void OpenSSLDetails::validateCipherMode<(OpenSSLDetails::CompatibilityMode)0>(evp_cipher_st const*) @ 0x000000000c4b555e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:198: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c4b7263 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:19:09.470750 [ 50237 ] {7ae5fcdc-7ce1-4a2b-9e44-1b1faed29e19} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'mode' of function encrypt, expected encryption mode string, got UInt16: While processing encrypt(789, '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: SELECT encrypt(789, '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddbb7fd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:09.470753 [ 1674 ] {f455061b-4f36-44c4-a11a-cf6c9fd5cf31} executeQuery: Code: 36. DB::Exception: Function mapPopulateSeries key and value array should have same amount of elements: While processing mapPopulateSeries([1, 2], [1, 1, 1]) AS res, toTypeName(res). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39738) (comment: 01318_map_populate_series.sql) (in query: select mapPopulateSeries([1, 2], [1, 1, 1]) as res, toTypeName(res);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/array/mapPopulateSeries.cpp:342: DB::FunctionMapPopulateSeries::extractKeyAndValueInput(std::vector> const&) const @ 0x00000000135b7f56 in /usr/bin/clickhouse 7. /build/src/Functions/array/mapPopulateSeries.cpp:450: DB::FunctionMapPopulateSeries::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000135b6d48 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:19:09.471960 [ 1674 ] {f455061b-4f36-44c4-a11a-cf6c9fd5cf31} TCPHandler: Code: 36. DB::Exception: Function mapPopulateSeries key and value array should have same amount of elements: While processing mapPopulateSeries([1, 2], [1, 1, 1]) AS res, toTypeName(res). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/array/mapPopulateSeries.cpp:342: DB::FunctionMapPopulateSeries::extractKeyAndValueInput(std::vector> const&) const @ 0x00000000135b7f56 in /usr/bin/clickhouse 7. /build/src/Functions/array/mapPopulateSeries.cpp:450: DB::FunctionMapPopulateSeries::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000135b6d48 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:19:09.472165 [ 50237 ] {7ae5fcdc-7ce1-4a2b-9e44-1b1faed29e19} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'mode' of function encrypt, expected encryption mode string, got UInt16: While processing encrypt(789, '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddbb7fd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:09.653346 [ 50237 ] {60efb5b6-24c4-4f63-b7c9-e77fb2e3535e} executeQuery: Code: 36. DB::Exception: Invalid mode: blah blah blah: While processing encrypt('blah blah blah', '[HIDDEN]'). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: SELECT encrypt('blah blah blah', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:187: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddbac6d in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:19:09.654654 [ 50237 ] {60efb5b6-24c4-4f63-b7c9-e77fb2e3535e} TCPHandler: Code: 36. DB::Exception: Invalid mode: blah blah blah: While processing encrypt('blah blah blah', '[HIDDEN]'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:187: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddbac6d in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:19:09.665646 [ 50237 ] {5da85aff-22f0-49c0-a289-412115a9b589} executeQuery: Code: 36. DB::Exception: Invalid mode: des-ede3-ecb: While processing encrypt('des-ede3-ecb', '[HIDDEN]'). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: SELECT encrypt('des-ede3-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:187: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddbac6d in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:19:09.666791 [ 50237 ] {5da85aff-22f0-49c0-a289-412115a9b589} TCPHandler: Code: 36. DB::Exception: Invalid mode: des-ede3-ecb: While processing encrypt('des-ede3-ecb', '[HIDDEN]'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:187: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddbac6d in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:19:09.676787 [ 50237 ] {95ff34b0-8990-4989-a0cf-f2272807b749} executeQuery: Code: 43. DB::Exception: Illegal type of argument #3 'key' of function aes_encrypt_mysql, expected encryption key binary string, got UInt16: While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: SELECT aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4b79fd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:09.677944 [ 50237 ] {95ff34b0-8990-4989-a0cf-f2272807b749} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #3 'key' of function aes_encrypt_mysql, expected encryption key binary string, got UInt16: While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4b79fd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:09.831010 [ 50237 ] {e2ae732c-db66-40b2-a074-e52125d07cf9} executeQuery: Code: 36. DB::Exception: Invalid key size: 3 expected 16: While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: SELECT aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&) @ 0x000000000c4b5c8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:75: OpenSSLDetails::KeyHolder<(OpenSSLDetails::CipherMode)0>::setKey(unsigned long, StringRef) @ 0x000000000c4b586c in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:298: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)0>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000c4b808f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:236: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000c4b7d6c in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:202: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c4b730d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:19:09.832206 [ 50237 ] {e2ae732c-db66-40b2-a074-e52125d07cf9} TCPHandler: Code: 36. DB::Exception: Invalid key size: 3 expected 16: While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&) @ 0x000000000c4b5c8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:75: OpenSSLDetails::KeyHolder<(OpenSSLDetails::CipherMode)0>::setKey(unsigned long, StringRef) @ 0x000000000c4b586c in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:298: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)0>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000c4b808f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:236: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000c4b7d6c in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:202: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c4b730d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:19:10.004587 [ 50237 ] {c4e6f9c7-9d22-4905-be38-c82fff9ead60} executeQuery: Code: 42. DB::Exception: Incorrect number of arguments for function encrypt provided 2 (String, String), expected 3 to 5 ('mode' : encryption mode string, 'input' : plaintext, 'key' : encryption key binary string, ['IV' : Initialization vector binary string, 'AAD' : Additional authenticated data binary string for GCM mode]): While processing encrypt('aes-128-ecb', '[HIDDEN]'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: SELECT encrypt('aes-128-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001ac0141d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff365 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddbb7fd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:19:10.006125 [ 50237 ] {c4e6f9c7-9d22-4905-be38-c82fff9ead60} TCPHandler: Code: 42. DB::Exception: Incorrect number of arguments for function encrypt provided 2 (String, String), expected 3 to 5 ('mode' : encryption mode string, 'input' : plaintext, 'key' : encryption key binary string, ['IV' : Initialization vector binary string, 'AAD' : Additional authenticated data binary string for GCM mode]): While processing encrypt('aes-128-ecb', '[HIDDEN]'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001ac0141d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff365 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddbb7fd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:19:10.016850 [ 50237 ] {d83c087e-79bc-451f-8858-4a7a4e147792} executeQuery: Code: 43. DB::Exception: Illegal type of argument #3 'key' of function encrypt, expected encryption key binary string, got UInt16: While processing encrypt('aes-128-ecb', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: SELECT encrypt('aes-128-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddbb7fd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:10.017770 [ 50237 ] {d83c087e-79bc-451f-8858-4a7a4e147792} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #3 'key' of function encrypt, expected encryption key binary string, got UInt16: While processing encrypt('aes-128-ecb', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddbb7fd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:10.165658 [ 50237 ] {41f8ea0f-c172-4bf4-956d-fcc866773b62} executeQuery: Code: 36. DB::Exception: Invalid key size: 3 expected 16: While processing encrypt('aes-128-ecb', '[HIDDEN]'). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: SELECT encrypt('aes-128-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&) @ 0x000000000c4b5c8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:63: OpenSSLDetails::KeyHolder<(OpenSSLDetails::CipherMode)1>::setKey(unsigned long, StringRef) const @ 0x000000000da05405 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:298: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)1>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddbcb07 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:0: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddbbbf8 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:202: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddbaf4d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:19:10.166675 [ 50237 ] {41f8ea0f-c172-4bf4-956d-fcc866773b62} TCPHandler: Code: 36. DB::Exception: Invalid key size: 3 expected 16: While processing encrypt('aes-128-ecb', '[HIDDEN]'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&) @ 0x000000000c4b5c8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:63: OpenSSLDetails::KeyHolder<(OpenSSLDetails::CipherMode)1>::setKey(unsigned long, StringRef) const @ 0x000000000da05405 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:298: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)1>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddbcb07 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:0: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddbbbf8 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:202: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddbaf4d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:19:10.177586 [ 50237 ] {e836b958-d068-4e3c-9c7f-ec7c8958adfc} executeQuery: Code: 36. DB::Exception: Invalid key size: 36 expected 16: While processing encrypt('aes-128-ecb', '[HIDDEN]'). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: SELECT encrypt('aes-128-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&) @ 0x000000000c4b5c8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:63: OpenSSLDetails::KeyHolder<(OpenSSLDetails::CipherMode)1>::setKey(unsigned long, StringRef) const @ 0x000000000da05405 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:298: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)1>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddbcb07 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:0: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddbbbf8 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:202: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddbaf4d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:19:10.178756 [ 50237 ] {e836b958-d068-4e3c-9c7f-ec7c8958adfc} TCPHandler: Code: 36. DB::Exception: Invalid key size: 36 expected 16: While processing encrypt('aes-128-ecb', '[HIDDEN]'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&) @ 0x000000000c4b5c8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:63: OpenSSLDetails::KeyHolder<(OpenSSLDetails::CipherMode)1>::setKey(unsigned long, StringRef) const @ 0x000000000da05405 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:298: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)1>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddbcb07 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:0: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddbbbf8 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:202: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddbaf4d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:19:10.340639 [ 50237 ] {1057db05-aaf2-40e5-8cbf-44685bcd3fb7} executeQuery: Code: 43. DB::Exception: Illegal type of argument #4 'IV' of function aes_encrypt_mysql, expected Initialization vector binary string, got UInt16: While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: SELECT aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:195: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff64a in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4b79fd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:10.341889 [ 50237 ] {1057db05-aaf2-40e5-8cbf-44685bcd3fb7} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #4 'IV' of function aes_encrypt_mysql, expected Initialization vector binary string, got UInt16: While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:195: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff64a in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4b79fd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:10.477273 [ 50237 ] {0116a45e-250f-435b-90a8-003fc640d476} executeQuery: Code: 36. DB::Exception: Invalid key size: 3 expected 16: While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: SELECT aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&) @ 0x000000000c4b5c8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:75: OpenSSLDetails::KeyHolder<(OpenSSLDetails::CipherMode)0>::setKey(unsigned long, StringRef) @ 0x000000000c4b586c in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:298: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)0>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000c4b808f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:236: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000c4b7d6c in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:211: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c4b7478 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:19:10.478335 [ 50237 ] {0116a45e-250f-435b-90a8-003fc640d476} TCPHandler: Code: 36. DB::Exception: Invalid key size: 3 expected 16: While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&) @ 0x000000000c4b5c8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:75: OpenSSLDetails::KeyHolder<(OpenSSLDetails::CipherMode)0>::setKey(unsigned long, StringRef) @ 0x000000000c4b586c in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:298: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)0>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000c4b808f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:236: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000c4b7d6c in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:211: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c4b7478 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:19:10.666446 [ 50237 ] {02bbb69b-a729-4280-8271-dfe2ad727a5b} executeQuery: Code: 43. DB::Exception: Illegal type of argument #4 'IV' of function encrypt, expected Initialization vector binary string, got UInt16: While processing encrypt('aes-128-cbc', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: SELECT encrypt('aes-128-cbc', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:195: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff64a in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddbb7fd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:10.667631 [ 50237 ] {02bbb69b-a729-4280-8271-dfe2ad727a5b} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #4 'IV' of function encrypt, expected Initialization vector binary string, got UInt16: While processing encrypt('aes-128-cbc', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:195: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff64a in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddbb7fd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:10.823308 [ 50237 ] {6ab3db57-ef0f-469c-b2ea-702f6f9e40f8} executeQuery: Code: 36. DB::Exception: Invalid IV size: 42 expected 16: While processing encrypt('aes-128-cbc', '[HIDDEN]'). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: SELECT encrypt('aes-128-cbc', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long const&) @ 0x000000000c4b5e8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:130: void OpenSSLDetails::validateIV<(OpenSSLDetails::CipherMode)1>(StringRef, unsigned long) @ 0x000000000da054e8 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:356: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)1>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddbcd44 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:0: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddbbbf8 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:211: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddbb21a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:19:10.824517 [ 50237 ] {6ab3db57-ef0f-469c-b2ea-702f6f9e40f8} TCPHandler: Code: 36. DB::Exception: Invalid IV size: 42 expected 16: While processing encrypt('aes-128-cbc', '[HIDDEN]'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long const&) @ 0x000000000c4b5e8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:130: void OpenSSLDetails::validateIV<(OpenSSLDetails::CipherMode)1>(StringRef, unsigned long) @ 0x000000000da054e8 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:356: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)1>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddbcd44 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:0: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddbbbf8 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:211: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddbb21a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:19:10.835269 [ 50237 ] {a6282d7a-94c6-4bea-bd1f-9d9ff9070a86} executeQuery: Code: 36. DB::Exception: Invalid IV size: 2 expected 16: While processing encrypt('aes-128-cbc', '[HIDDEN]'). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: SELECT encrypt('aes-128-cbc', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long const&) @ 0x000000000c4b5e8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:130: void OpenSSLDetails::validateIV<(OpenSSLDetails::CipherMode)1>(StringRef, unsigned long) @ 0x000000000da054e8 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:356: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)1>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddbcd44 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:0: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddbbbf8 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:211: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddbb21a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:19:10.836328 [ 50237 ] {a6282d7a-94c6-4bea-bd1f-9d9ff9070a86} TCPHandler: Code: 36. DB::Exception: Invalid IV size: 2 expected 16: While processing encrypt('aes-128-cbc', '[HIDDEN]'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long const&) @ 0x000000000c4b5e8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:130: void OpenSSLDetails::validateIV<(OpenSSLDetails::CipherMode)1>(StringRef, unsigned long) @ 0x000000000da054e8 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:356: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)1>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddbcd44 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:0: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddbbbf8 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:211: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddbb21a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:19:10.846303 [ 50237 ] {bfe2b389-9a0a-4e86-89ed-739268a7dd0e} executeQuery: Code: 42. DB::Exception: Incorrect number of arguments for function aes_encrypt_mysql provided 5 (String, String, String, String, UInt16), expected 3 to 4 ('mode' : encryption mode string, 'input' : plaintext, 'key' : encryption key binary string, ['IV' : Initialization vector binary string]): While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: SELECT aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001ac0141d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff365 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4b79fd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:19:10.847334 [ 50237 ] {bfe2b389-9a0a-4e86-89ed-739268a7dd0e} TCPHandler: Code: 42. DB::Exception: Incorrect number of arguments for function aes_encrypt_mysql provided 5 (String, String, String, String, UInt16), expected 3 to 4 ('mode' : encryption mode string, 'input' : plaintext, 'key' : encryption key binary string, ['IV' : Initialization vector binary string]): While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001ac0141d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff365 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4b79fd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:19:10.857475 [ 50237 ] {0eb7d8c8-5f3e-4830-bfca-51d897b5478f} executeQuery: Code: 43. DB::Exception: Illegal type of argument #5 'AAD' of function encrypt, expected Additional authenticated data binary string for GCM mode, got UInt16: While processing encrypt('aes-128-ecb', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: SELECT encrypt('aes-128-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:195: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff64a in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddbb7fd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:10.858541 [ 50237 ] {0eb7d8c8-5f3e-4830-bfca-51d897b5478f} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #5 'AAD' of function encrypt, expected Additional authenticated data binary string for GCM mode, got UInt16: While processing encrypt('aes-128-ecb', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:195: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff64a in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddbb7fd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:10.867940 [ 50237 ] {6cad73b0-78a1-464f-838d-40df74a653e0} executeQuery: Code: 43. DB::Exception: Illegal type of argument #5 'AAD' of function encrypt, expected Additional authenticated data binary string for GCM mode, got UInt16: While processing encrypt('aes-128-gcm', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39760) (comment: 01318_encrypt.sql) (in query: SELECT encrypt('aes-128-gcm', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:195: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff64a in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddbb7fd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:10.869015 [ 50237 ] {6cad73b0-78a1-464f-838d-40df74a653e0} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #5 'AAD' of function encrypt, expected Additional authenticated data binary string for GCM mode, got UInt16: While processing encrypt('aes-128-gcm', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:195: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff64a in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddbb7fd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:11.674627 [ 1674 ] {fe4f3e71-c640-4bfe-8b32-bda91d03dc41} executeQuery: Code: 43. DB::Exception: Point's component must not be NaN: While processing arrayMap(a -> arrayMap(b -> arrayMap(c -> (round(c.1, 6), round(c.2, 6)), b), a), polygonsUnionCartesian([[[(2., 100.0000991821289), (0., 3.), (1., 2.9), (2., 2.6), (2.6, 2.), (2.9, 1), (3., 0.), (100.0000991821289, 2.)]]], [[[(1., 1.), (1000.0001220703125, nan), (4., 4.), (4., 1.), (1., 1.)]]])). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39800) (comment: 01305_polygons_union.sql) (in query: SELECT arrayMap(a -> arrayMap(b -> arrayMap(c -> (round(c.1, 6), round(c.2, 6)), b), a), polygonsUnionCartesian([[[(2., 100.0000991821289), (0., 3.), (1., 2.9), (2., 2.6), (2.6, 2.), (2.9, 1), (3., 0.), (100.0000991821289, 2.)]]], [[[(1., 1.), (1000.0001220703125, nan), (4., 4.), (4., 1.), (1., 1.)]]]));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [34]) @ 0x000000000b92229e in /usr/bin/clickhouse 6. /build/src/Functions/geometryConverters.h:76: DB::ColumnToPointsConverter>::convert(COW::immutable_ptr) @ 0x0000000011e1c0b1 in /usr/bin/clickhouse 7. /build/src/Functions/geometryConverters.h:100: DB::ColumnToRingsConverter>::convert(COW::immutable_ptr) @ 0x0000000011e1ba67 in /usr/bin/clickhouse 8. /build/src/Functions/geometryConverters.h:120: DB::ColumnToPolygonsConverter>::convert(COW::immutable_ptr) @ 0x0000000011e1ec8a in /usr/bin/clickhouse 9. /build/src/Functions/geometryConverters.h:155: DB::ColumnToMultiPolygonsConverter>::convert(COW::immutable_ptr) @ 0x0000000011e219ac in /usr/bin/clickhouse 10. /build/src/Functions/polygonsUnion.cpp:81: auto DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConverterType>>>(auto const&, auto const&) const @ 0x0000000012283952 in /usr/bin/clickhouse 11. /build/src/Functions/geometryConverters.h:368: auto auto void DB::callOnTwoGeometryDataTypes, DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)>(std::shared_ptr, std::shared_ptr, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x0000000012241864 in /usr/bin/clickhouse 12. /build/src/Functions/geometryConverters.h:352: void DB::callOnGeometryDataType, auto void DB::callOnTwoGeometryDataTypes, DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)>(std::shared_ptr, std::shared_ptr, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(std::shared_ptr, auto&&) @ 0x00000000122415d5 in /usr/bin/clickhouse 13. /build/src/Functions/geometryConverters.h:364: auto void DB::callOnTwoGeometryDataTypes, DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)>(std::shared_ptr, std::shared_ptr, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000001223dfc1 in /usr/bin/clickhouse 14. /build/src/Functions/geometryConverters.h:352: void DB::callOnGeometryDataType, void DB::callOnTwoGeometryDataTypes, DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)>(std::shared_ptr, std::shared_ptr, auto&&)::'lambda'(auto const&)>(std::shared_ptr, auto&&) @ 0x000000001223dcb5 in /usr/bin/clickhouse 15. /build/src/Functions/geometryConverters.h:360: void DB::callOnTwoGeometryDataTypes, DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)>(std::shared_ptr, std::shared_ptr, auto&&) @ 0x000000001223d7ea in /usr/bin/clickhouse 16. /build/src/Functions/polygonsUnion.cpp:68: DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000122470a3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 18. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:19:11.676400 [ 1674 ] {fe4f3e71-c640-4bfe-8b32-bda91d03dc41} TCPHandler: Code: 43. DB::Exception: Point's component must not be NaN: While processing arrayMap(a -> arrayMap(b -> arrayMap(c -> (round(c.1, 6), round(c.2, 6)), b), a), polygonsUnionCartesian([[[(2., 100.0000991821289), (0., 3.), (1., 2.9), (2., 2.6), (2.6, 2.), (2.9, 1), (3., 0.), (100.0000991821289, 2.)]]], [[[(1., 1.), (1000.0001220703125, nan), (4., 4.), (4., 1.), (1., 1.)]]])). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [34]) @ 0x000000000b92229e in /usr/bin/clickhouse 6. /build/src/Functions/geometryConverters.h:76: DB::ColumnToPointsConverter>::convert(COW::immutable_ptr) @ 0x0000000011e1c0b1 in /usr/bin/clickhouse 7. /build/src/Functions/geometryConverters.h:100: DB::ColumnToRingsConverter>::convert(COW::immutable_ptr) @ 0x0000000011e1ba67 in /usr/bin/clickhouse 8. /build/src/Functions/geometryConverters.h:120: DB::ColumnToPolygonsConverter>::convert(COW::immutable_ptr) @ 0x0000000011e1ec8a in /usr/bin/clickhouse 9. /build/src/Functions/geometryConverters.h:155: DB::ColumnToMultiPolygonsConverter>::convert(COW::immutable_ptr) @ 0x0000000011e219ac in /usr/bin/clickhouse 10. /build/src/Functions/polygonsUnion.cpp:81: auto DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConverterType>>>(auto const&, auto const&) const @ 0x0000000012283952 in /usr/bin/clickhouse 11. /build/src/Functions/geometryConverters.h:368: auto auto void DB::callOnTwoGeometryDataTypes, DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)>(std::shared_ptr, std::shared_ptr, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x0000000012241864 in /usr/bin/clickhouse 12. /build/src/Functions/geometryConverters.h:352: void DB::callOnGeometryDataType, auto void DB::callOnTwoGeometryDataTypes, DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)>(std::shared_ptr, std::shared_ptr, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(std::shared_ptr, auto&&) @ 0x00000000122415d5 in /usr/bin/clickhouse 13. /build/src/Functions/geometryConverters.h:364: auto void DB::callOnTwoGeometryDataTypes, DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)>(std::shared_ptr, std::shared_ptr, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000001223dfc1 in /usr/bin/clickhouse 14. /build/src/Functions/geometryConverters.h:352: void DB::callOnGeometryDataType, void DB::callOnTwoGeometryDataTypes, DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)>(std::shared_ptr, std::shared_ptr, auto&&)::'lambda'(auto const&)>(std::shared_ptr, auto&&) @ 0x000000001223dcb5 in /usr/bin/clickhouse 15. /build/src/Functions/geometryConverters.h:360: void DB::callOnTwoGeometryDataTypes, DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)>(std::shared_ptr, std::shared_ptr, auto&&) @ 0x000000001223d7ea in /usr/bin/clickhouse 16. /build/src/Functions/polygonsUnion.cpp:68: DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000122470a3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 18. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 2024.10.22 10:19:14.553105 [ 50154 ] {238c817f-1cf2-451c-bc25-26bb6913171c} executeQuery: Code: 427. DB::Exception: OptimizedRegularExpression: cannot compile re2: \He\l\l\o, error: invalid escape sequence: \H. Look at https://github.com/google/re2/wiki/Syntax for reference. Please note that if you specify regex as an SQL string literal, the slashes have to be additionally escaped. For example, to match an opening brace, write '\(' -- the first slash is for SQL and the second one is for regex: While processing match('Hello', '\\He\\l\\l\\o'). (CANNOT_COMPILE_REGEXP) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39870) (comment: 01284_escape_sequences_php_mysql_style.sql) (in query: SELECT match('Hello', '\He\l\l\o');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String const&) @ 0x000000000ba212ac in /usr/bin/clickhouse 6. /build/src/Common/OptimizedRegularExpression.cpp:503: OptimizedRegularExpressionImpl::OptimizedRegularExpressionImpl(String const&, int) @ 0x000000001390c444 in /usr/bin/clickhouse 7. /build/src/Functions/Regexps.h:57: OptimizedRegularExpressionImpl DB::Regexps::createRegexp(String const&) @ 0x000000000d9424d3 in /usr/bin/clickhouse 8. /build/src/Functions/Regexps.h:77: std::shared_ptr> DB::Regexps::LocalCacheTable::getOrSet(String const&) @ 0x000000001032c903 in /usr/bin/clickhouse 9. /build/src/Functions/MatchImpl.h:516: DB::MatchImpl::vectorVector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, COW::immutable_ptr const&, DB::PODArray, 63ul, 64ul>&, DB::ColumnVector*) @ 0x000000001032a400 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsStringSearch.h:202: DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001032941e in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 2024.10.22 10:19:14.554090 [ 50154 ] {238c817f-1cf2-451c-bc25-26bb6913171c} TCPHandler: Code: 427. DB::Exception: OptimizedRegularExpression: cannot compile re2: \He\l\l\o, error: invalid escape sequence: \H. Look at https://github.com/google/re2/wiki/Syntax for reference. Please note that if you specify regex as an SQL string literal, the slashes have to be additionally escaped. For example, to match an opening brace, write '\(' -- the first slash is for SQL and the second one is for regex: While processing match('Hello', '\\He\\l\\l\\o'). (CANNOT_COMPILE_REGEXP), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String const&) @ 0x000000000ba212ac in /usr/bin/clickhouse 6. /build/src/Common/OptimizedRegularExpression.cpp:503: OptimizedRegularExpressionImpl::OptimizedRegularExpressionImpl(String const&, int) @ 0x000000001390c444 in /usr/bin/clickhouse 7. /build/src/Functions/Regexps.h:57: OptimizedRegularExpressionImpl DB::Regexps::createRegexp(String const&) @ 0x000000000d9424d3 in /usr/bin/clickhouse 8. /build/src/Functions/Regexps.h:77: std::shared_ptr> DB::Regexps::LocalCacheTable::getOrSet(String const&) @ 0x000000001032c903 in /usr/bin/clickhouse 9. /build/src/Functions/MatchImpl.h:516: DB::MatchImpl::vectorVector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, COW::immutable_ptr const&, DB::PODArray, 63ul, 64ul>&, DB::ColumnVector*) @ 0x000000001032a400 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsStringSearch.h:202: DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001032941e in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 2024.10.22 10:19:14.562023 [ 50154 ] {063e3783-90b1-49cf-9747-a27d5c66d702} executeQuery: Code: 427. DB::Exception: OptimizedRegularExpression: cannot compile re2: \H\l\l\o, error: invalid escape sequence: \H. Look at https://github.com/google/re2/wiki/Syntax for reference. Please note that if you specify regex as an SQL string literal, the slashes have to be additionally escaped. For example, to match an opening brace, write '\(' -- the first slash is for SQL and the second one is for regex: While processing match('Hello', '\\H\\l\\l\\o'). (CANNOT_COMPILE_REGEXP) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39870) (comment: 01284_escape_sequences_php_mysql_style.sql) (in query: SELECT match('Hello', '\H\e\l\l\o');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String const&) @ 0x000000000ba212ac in /usr/bin/clickhouse 6. /build/src/Common/OptimizedRegularExpression.cpp:503: OptimizedRegularExpressionImpl::OptimizedRegularExpressionImpl(String const&, int) @ 0x000000001390c444 in /usr/bin/clickhouse 7. /build/src/Functions/Regexps.h:57: OptimizedRegularExpressionImpl DB::Regexps::createRegexp(String const&) @ 0x000000000d9424d3 in /usr/bin/clickhouse 8. /build/src/Functions/Regexps.h:77: std::shared_ptr> DB::Regexps::LocalCacheTable::getOrSet(String const&) @ 0x000000001032c903 in /usr/bin/clickhouse 9. /build/src/Functions/MatchImpl.h:516: DB::MatchImpl::vectorVector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, COW::immutable_ptr const&, DB::PODArray, 63ul, 64ul>&, DB::ColumnVector*) @ 0x000000001032a400 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsStringSearch.h:202: DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001032941e in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 2024.10.22 10:19:14.562818 [ 50154 ] {063e3783-90b1-49cf-9747-a27d5c66d702} TCPHandler: Code: 427. DB::Exception: OptimizedRegularExpression: cannot compile re2: \H\l\l\o, error: invalid escape sequence: \H. Look at https://github.com/google/re2/wiki/Syntax for reference. Please note that if you specify regex as an SQL string literal, the slashes have to be additionally escaped. For example, to match an opening brace, write '\(' -- the first slash is for SQL and the second one is for regex: While processing match('Hello', '\\H\\l\\l\\o'). (CANNOT_COMPILE_REGEXP), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String const&) @ 0x000000000ba212ac in /usr/bin/clickhouse 6. /build/src/Common/OptimizedRegularExpression.cpp:503: OptimizedRegularExpressionImpl::OptimizedRegularExpressionImpl(String const&, int) @ 0x000000001390c444 in /usr/bin/clickhouse 7. /build/src/Functions/Regexps.h:57: OptimizedRegularExpressionImpl DB::Regexps::createRegexp(String const&) @ 0x000000000d9424d3 in /usr/bin/clickhouse 8. /build/src/Functions/Regexps.h:77: std::shared_ptr> DB::Regexps::LocalCacheTable::getOrSet(String const&) @ 0x000000001032c903 in /usr/bin/clickhouse 9. /build/src/Functions/MatchImpl.h:516: DB::MatchImpl::vectorVector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, COW::immutable_ptr const&, DB::PODArray, 63ul, 64ul>&, DB::ColumnVector*) @ 0x000000001032a400 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsStringSearch.h:202: DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001032941e in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 2024.10.22 10:19:22.386555 [ 12929 ] {f7873b7e-9111-4621-947e-6977358ad1f7} executeQuery: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_cc4v0x29.testXB (e1451580-72d6-4225-bba4-da7dd0aa85b6). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42884) (comment: 01275_parallel_mv.gen.sql) (in query: insert into testX select number from numbers(10) settings log_queries=1, parallel_view_processing=0, optimize_trivial_insert_select=0, max_insert_threads=0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x0000000012606806 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126055bd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ece9303 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001ebcda01 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9d5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9b5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd995 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd95d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001ebccba2 in /usr/bin/clickhouse 2024.10.22 10:19:22.391162 [ 12929 ] {f7873b7e-9111-4621-947e-6977358ad1f7} TCPHandler: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_cc4v0x29.testXB (e1451580-72d6-4225-bba4-da7dd0aa85b6). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x0000000012606806 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126055bd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ece9303 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001ebcda01 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9d5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9b5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd995 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd95d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001ebccba2 in /usr/bin/clickhouse 2024.10.22 10:19:26.843084 [ 12929 ] {7d7ccd15-4ef8-4627-874e-46a1fbe84841} executeQuery: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_cc4v0x29.testXB (e1451580-72d6-4225-bba4-da7dd0aa85b6). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42884) (comment: 01275_parallel_mv.gen.sql) (in query: insert into testX select number from numbers(10) settings log_queries=1, parallel_view_processing=0, optimize_trivial_insert_select=0, max_insert_threads=16;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x0000000012606806 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126055bd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ece9303 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001ebcda01 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9d5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9b5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd995 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd95d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001ebccba2 in /usr/bin/clickhouse 2024.10.22 10:19:26.848692 [ 12929 ] {7d7ccd15-4ef8-4627-874e-46a1fbe84841} TCPHandler: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_cc4v0x29.testXB (e1451580-72d6-4225-bba4-da7dd0aa85b6). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x0000000012606806 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126055bd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ece9303 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001ebcda01 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9d5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9b5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd995 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd95d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001ebccba2 in /usr/bin/clickhouse 2024.10.22 10:19:31.091180 [ 12929 ] {316d23b2-8727-4859-bb37-7134e4ab8189} executeQuery: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_cc4v0x29.testXB (e1451580-72d6-4225-bba4-da7dd0aa85b6). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42884) (comment: 01275_parallel_mv.gen.sql) (in query: insert into testX select number from numbers(10) settings log_queries=1, parallel_view_processing=0, optimize_trivial_insert_select=1, max_insert_threads=0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x0000000012606806 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126055bd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ece9303 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001ebcda01 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9d5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9b5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd995 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd95d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001ebccba2 in /usr/bin/clickhouse 2024.10.22 10:19:31.095183 [ 12929 ] {316d23b2-8727-4859-bb37-7134e4ab8189} TCPHandler: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_cc4v0x29.testXB (e1451580-72d6-4225-bba4-da7dd0aa85b6). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x0000000012606806 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126055bd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ece9303 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001ebcda01 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9d5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9b5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd995 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd95d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001ebccba2 in /usr/bin/clickhouse 2024.10.22 10:19:34.742360 [ 12929 ] {5757867e-9554-4f54-924b-dce7d6716a5d} executeQuery: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_cc4v0x29.testXB (e1451580-72d6-4225-bba4-da7dd0aa85b6). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42884) (comment: 01275_parallel_mv.gen.sql) (in query: insert into testX select number from numbers(10) settings log_queries=1, parallel_view_processing=0, optimize_trivial_insert_select=1, max_insert_threads=16;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x0000000012606806 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126055bd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ece9303 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001ebcda01 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9d5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9b5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd995 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd95d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001ebccba2 in /usr/bin/clickhouse 2024.10.22 10:19:34.747533 [ 12929 ] {5757867e-9554-4f54-924b-dce7d6716a5d} TCPHandler: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_cc4v0x29.testXB (e1451580-72d6-4225-bba4-da7dd0aa85b6). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x0000000012606806 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126055bd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ece9303 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001ebcda01 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9d5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9b5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd995 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd95d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001ebccba2 in /usr/bin/clickhouse 2024.10.22 10:19:38.437167 [ 12929 ] {e4d98872-af44-4682-a723-46cf5c6efbb8} executeQuery: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_cc4v0x29.testXB (e1451580-72d6-4225-bba4-da7dd0aa85b6). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42884) (comment: 01275_parallel_mv.gen.sql) (in query: insert into testX select number from numbers(10) settings log_queries=1, parallel_view_processing=1, optimize_trivial_insert_select=0, max_insert_threads=0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x0000000012606806 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126055bd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ece9303 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001ebcda01 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9d5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9b5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd995 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd95d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001ebccba2 in /usr/bin/clickhouse 2024.10.22 10:19:38.441406 [ 12929 ] {e4d98872-af44-4682-a723-46cf5c6efbb8} TCPHandler: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_cc4v0x29.testXB (e1451580-72d6-4225-bba4-da7dd0aa85b6). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x0000000012606806 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126055bd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ece9303 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001ebcda01 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9d5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9b5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd995 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd95d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001ebccba2 in /usr/bin/clickhouse 2024.10.22 10:19:41.982511 [ 12929 ] {c6396466-0226-4948-88ff-3f8dab201938} executeQuery: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_cc4v0x29.testXB (e1451580-72d6-4225-bba4-da7dd0aa85b6). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42884) (comment: 01275_parallel_mv.gen.sql) (in query: insert into testX select number from numbers(10) settings log_queries=1, parallel_view_processing=1, optimize_trivial_insert_select=0, max_insert_threads=16;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x0000000012606806 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126055bd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ece9303 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001ebcda01 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9d5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9b5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd995 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd95d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001ebccba2 in /usr/bin/clickhouse 2024.10.22 10:19:41.986240 [ 12929 ] {c6396466-0226-4948-88ff-3f8dab201938} TCPHandler: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_cc4v0x29.testXB (e1451580-72d6-4225-bba4-da7dd0aa85b6). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x0000000012606806 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126055bd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ece9303 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001ebcda01 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9d5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9b5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd995 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd95d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001ebccba2 in /usr/bin/clickhouse 2024.10.22 10:19:42.248086 [ 1139 ] {ad6836cb-aaec-492a-8fde-5d4c37eab900} executeQuery: Code: 69. DB::Exception: Scale 10 is too large for DateTime64. Maximum is up to nanoseconds (9).: While processing now64(10). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50766) (comment: 01259_datetime64_ubsan.sql) (in query: select now64(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeDateTime64.cpp:25: DB::DataTypeDateTime64::DataTypeDateTime64(unsigned int, String const&) @ 0x000000001b8b453d in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::DataTypeDateTime64* std::construct_at[abi:v15000](DB::DataTypeDateTime64*, unsigned int&, String&) @ 0x00000000118eda0c in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::DataTypeDateTime64*, unsigned int&, String&) @ 0x00000000118ed989 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, unsigned int&, String&) @ 0x00000000118ed90f in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], unsigned int&, String&, void>(std::allocator const&, unsigned int&, String&) @ 0x00000000118ed822 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](unsigned int&, String&) @ 0x00000000118ed7ae in /usr/bin/clickhouse 12. /build/src/Functions/now64.cpp:147: DB::(anonymous namespace)::Now64OverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118eb4e1 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:19:42.249162 [ 1139 ] {ad6836cb-aaec-492a-8fde-5d4c37eab900} TCPHandler: Code: 69. DB::Exception: Scale 10 is too large for DateTime64. Maximum is up to nanoseconds (9).: While processing now64(10). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeDateTime64.cpp:25: DB::DataTypeDateTime64::DataTypeDateTime64(unsigned int, String const&) @ 0x000000001b8b453d in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::DataTypeDateTime64* std::construct_at[abi:v15000](DB::DataTypeDateTime64*, unsigned int&, String&) @ 0x00000000118eda0c in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::DataTypeDateTime64*, unsigned int&, String&) @ 0x00000000118ed989 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, unsigned int&, String&) @ 0x00000000118ed90f in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], unsigned int&, String&, void>(std::allocator const&, unsigned int&, String&) @ 0x00000000118ed822 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](unsigned int&, String&) @ 0x00000000118ed7ae in /usr/bin/clickhouse 12. /build/src/Functions/now64.cpp:147: DB::(anonymous namespace)::Now64OverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118eb4e1 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:19:42.755427 [ 50241 ] {37d90c02-f4aa-4226-a1a1-9e8291a3b48c} executeQuery: Code: 137. DB::Exception: Unknown dictionary layout type: iptrie. (UNKNOWN_ELEMENT_IN_CONFIG) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50790) (comment: 01256_misspell_layout_name_podshumok.sql) (in query: CREATE DICTIONARY testip ( `network` String, `test_field` String ) PRIMARY KEY network SOURCE(FILE(PATH '/tmp/test.csv' FORMAT CSVWithNames)) LIFETIME(MIN 0 MAX 300) LAYOUT(IPTRIE());), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Dictionaries/DictionaryFactory.cpp:84: DB::DictionaryFactory::isComplex(String const&) const @ 0x000000001abd6ba6 in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:611: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abe5a69 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d651cb0 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65199d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65193d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d6518fd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d6518c5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:42.756667 [ 50241 ] {37d90c02-f4aa-4226-a1a1-9e8291a3b48c} TCPHandler: Code: 137. DB::Exception: Unknown dictionary layout type: iptrie. (UNKNOWN_ELEMENT_IN_CONFIG), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Dictionaries/DictionaryFactory.cpp:84: DB::DictionaryFactory::isComplex(String const&) const @ 0x000000001abd6ba6 in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:611: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abe5a69 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d651cb0 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65199d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65193d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d6518fd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d6518c5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:43.565212 [ 12918 ] {d097fc53-4150-4de8-afa0-e27052d530e5} executeQuery: Code: 42. DB::Exception: Number of arguments for function extractAllGroupsVertical doesn't match: passed 0, should be 2: While processing extractAllGroupsVertical(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50820) (comment: 01246_extractAllGroupsVertical.sql) (in query: -- error cases SELECT extractAllGroupsVertical();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:19:43.566389 [ 12918 ] {d097fc53-4150-4de8-afa0-e27052d530e5} TCPHandler: Code: 42. DB::Exception: Number of arguments for function extractAllGroupsVertical doesn't match: passed 0, should be 2: While processing extractAllGroupsVertical(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:19:43.576334 [ 12918 ] {b3b9f60e-c287-427a-9ab3-75ee3e617a44} executeQuery: Code: 42. DB::Exception: Number of arguments for function extractAllGroupsVertical doesn't match: passed 1, should be 2: While processing extractAllGroupsVertical('hello'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50820) (comment: 01246_extractAllGroupsVertical.sql) (in query: SELECT extractAllGroupsVertical('hello');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:19:43.577635 [ 12918 ] {b3b9f60e-c287-427a-9ab3-75ee3e617a44} TCPHandler: Code: 42. DB::Exception: Number of arguments for function extractAllGroupsVertical doesn't match: passed 1, should be 2: While processing extractAllGroupsVertical('hello'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:19:43.716798 [ 12918 ] {35944610-295f-4e74-b941-0a7aaf0263e8} executeQuery: Code: 43. DB::Exception: Illegal type of argument #2 'needle' of function extractAllGroupsVertical, expected const String or const FixedString, got UInt8: While processing extractAllGroupsVertical('hello', 123). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50820) (comment: 01246_extractAllGroupsVertical.sql) (in query: SELECT extractAllGroupsVertical('hello', 123);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/extractAllGroups.h:77: DB::FunctionExtractAllGroups<(anonymous namespace)::VerticalImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e1c4622 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:43.718318 [ 12918 ] {35944610-295f-4e74-b941-0a7aaf0263e8} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #2 'needle' of function extractAllGroupsVertical, expected const String or const FixedString, got UInt8: While processing extractAllGroupsVertical('hello', 123). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/extractAllGroups.h:77: DB::FunctionExtractAllGroups<(anonymous namespace)::VerticalImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e1c4622 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:43.728008 [ 12918 ] {8354f2ca-9e8d-46d6-89e6-2bdb555f10bb} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'haystack' of function extractAllGroupsVertical, expected const String or const FixedString, got UInt8: While processing extractAllGroupsVertical(123, 'world'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50820) (comment: 01246_extractAllGroupsVertical.sql) (in query: SELECT extractAllGroupsVertical(123, 'world');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/extractAllGroups.h:77: DB::FunctionExtractAllGroups<(anonymous namespace)::VerticalImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e1c4622 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:43.728927 [ 12918 ] {8354f2ca-9e8d-46d6-89e6-2bdb555f10bb} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'haystack' of function extractAllGroupsVertical, expected const String or const FixedString, got UInt8: While processing extractAllGroupsVertical(123, 'world'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/extractAllGroups.h:77: DB::FunctionExtractAllGroups<(anonymous namespace)::VerticalImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e1c4622 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:43.847323 [ 12918 ] {e812edb5-0331-4f4d-bc78-89d6ab797296} executeQuery: Code: 427. DB::Exception: OptimizedRegularExpression: cannot compile re2: (((, error: missing ): (((. Look at https://github.com/google/re2/wiki/Syntax for reference. Please note that if you specify regex as an SQL string literal, the slashes have to be additionally escaped. For example, to match an opening brace, write '\(' -- the first slash is for SQL and the second one is for regex: While processing extractAllGroupsVertical('hello world', '((('). (CANNOT_COMPILE_REGEXP) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50820) (comment: 01246_extractAllGroupsVertical.sql) (in query: SELECT extractAllGroupsVertical('hello world', '(((');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String const&) @ 0x000000000ba212ac in /usr/bin/clickhouse 6. /build/src/Common/OptimizedRegularExpression.cpp:503: OptimizedRegularExpressionImpl::OptimizedRegularExpressionImpl(String const&, int) @ 0x000000001390c444 in /usr/bin/clickhouse 7. /build/src/Functions/Regexps.h:57: OptimizedRegularExpressionImpl DB::Regexps::createRegexp(String const&) @ 0x000000000c34030a in /usr/bin/clickhouse 8. /build/src/Functions/extractAllGroups.h:95: DB::FunctionExtractAllGroups<(anonymous namespace)::VerticalImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e1c3a06 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 2024.10.22 10:19:43.848258 [ 12918 ] {e812edb5-0331-4f4d-bc78-89d6ab797296} TCPHandler: Code: 427. DB::Exception: OptimizedRegularExpression: cannot compile re2: (((, error: missing ): (((. Look at https://github.com/google/re2/wiki/Syntax for reference. Please note that if you specify regex as an SQL string literal, the slashes have to be additionally escaped. For example, to match an opening brace, write '\(' -- the first slash is for SQL and the second one is for regex: While processing extractAllGroupsVertical('hello world', '((('). (CANNOT_COMPILE_REGEXP), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String const&) @ 0x000000000ba212ac in /usr/bin/clickhouse 6. /build/src/Common/OptimizedRegularExpression.cpp:503: OptimizedRegularExpressionImpl::OptimizedRegularExpressionImpl(String const&, int) @ 0x000000001390c444 in /usr/bin/clickhouse 7. /build/src/Functions/Regexps.h:57: OptimizedRegularExpressionImpl DB::Regexps::createRegexp(String const&) @ 0x000000000c34030a in /usr/bin/clickhouse 8. /build/src/Functions/extractAllGroups.h:95: DB::FunctionExtractAllGroups<(anonymous namespace)::VerticalImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e1c3a06 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 2024.10.22 10:19:43.857613 [ 12918 ] {034a6200-46ef-4678-bfa7-dec7f146ebeb} executeQuery: Code: 44. DB::Exception: Illegal type of argument #2 'needle' of function extractAllGroupsVertical, expected const String or const FixedString, got String: While processing extractAllGroupsVertical('hello world', materialize('\\w+')). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50820) (comment: 01246_extractAllGroupsVertical.sql) (in query: SELECT extractAllGroupsVertical('hello world', materialize('\\w+'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/extractAllGroups.h:77: DB::FunctionExtractAllGroups<(anonymous namespace)::VerticalImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e1c4622 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:43.858406 [ 12918 ] {034a6200-46ef-4678-bfa7-dec7f146ebeb} TCPHandler: Code: 44. DB::Exception: Illegal type of argument #2 'needle' of function extractAllGroupsVertical, expected const String or const FixedString, got String: While processing extractAllGroupsVertical('hello world', materialize('\\w+')). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001ac01bfa in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abffe7e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abff600 in /usr/bin/clickhouse 8. /build/src/Functions/extractAllGroups.h:77: DB::FunctionExtractAllGroups<(anonymous namespace)::VerticalImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e1c4622 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:43.983242 [ 12918 ] {7390f81b-c027-42fb-9aa8-cf0e77fd8414} executeQuery: Code: 36. DB::Exception: There are no groups in regexp: \w+: While processing extractAllGroupsVertical('hello world', '\\w+'). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50820) (comment: 01246_extractAllGroupsVertical.sql) (in query: SELECT extractAllGroupsVertical('hello world', '\\w+');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Functions/extractAllGroups.h:104: DB::FunctionExtractAllGroups<(anonymous namespace)::VerticalImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e1c3bb2 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:19:43.984145 [ 12918 ] {7390f81b-c027-42fb-9aa8-cf0e77fd8414} TCPHandler: Code: 36. DB::Exception: There are no groups in regexp: \w+: While processing extractAllGroupsVertical('hello world', '\\w+'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Functions/extractAllGroups.h:104: DB::FunctionExtractAllGroups<(anonymous namespace)::VerticalImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e1c3bb2 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:19:45.981686 [ 12929 ] {26943362-0595-4361-bc33-8c76ed868815} executeQuery: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_cc4v0x29.testXB (e1451580-72d6-4225-bba4-da7dd0aa85b6). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42884) (comment: 01275_parallel_mv.gen.sql) (in query: insert into testX select number from numbers(10) settings log_queries=1, parallel_view_processing=1, optimize_trivial_insert_select=1, max_insert_threads=0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x0000000012606806 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126055bd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ece9303 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001ebcda01 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9d5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9b5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd995 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd95d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001ebccba2 in /usr/bin/clickhouse 2024.10.22 10:19:45.986587 [ 12929 ] {26943362-0595-4361-bc33-8c76ed868815} TCPHandler: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_cc4v0x29.testXB (e1451580-72d6-4225-bba4-da7dd0aa85b6). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x0000000012606806 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126055bd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ece9303 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001ebcda01 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9d5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9b5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd995 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd95d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001ebccba2 in /usr/bin/clickhouse 2024.10.22 10:19:50.013474 [ 12929 ] {8ed49d80-0158-46bd-81e3-1889c9baa059} executeQuery: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_cc4v0x29.testXB (e1451580-72d6-4225-bba4-da7dd0aa85b6). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42884) (comment: 01275_parallel_mv.gen.sql) (in query: insert into testX select number from numbers(10) settings log_queries=1, parallel_view_processing=1, optimize_trivial_insert_select=1, max_insert_threads=16;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x0000000012606806 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126055bd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ece9303 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001ebcda01 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9d5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9b5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd995 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd95d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001ebccba2 in /usr/bin/clickhouse 2024.10.22 10:19:50.018638 [ 12929 ] {8ed49d80-0158-46bd-81e3-1889c9baa059} TCPHandler: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_cc4v0x29.testXB (e1451580-72d6-4225-bba4-da7dd0aa85b6). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x0000000012606806 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126055bd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ece9303 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001ebcda01 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9d5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001ebcd9b5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd995 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd95d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001ebccba2 in /usr/bin/clickhouse 2024.10.22 10:19:52.370085 [ 12930 ] {45f0503e-5455-4a79-96df-9ffdf662ff8a} executeQuery: Code: 507. DB::Exception: Sharding key key is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46052) (comment: 01211_optimize_skip_unused_shards_type_mismatch.sql) (in query: select * from dist_02000 where key = 0xdeadbeafdeadbeaf settings force_optimize_skip_unused_shards=2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d65b200 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d659d08 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb4db in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:52.517096 [ 12930 ] {45f0503e-5455-4a79-96df-9ffdf662ff8a} TCPHandler: Code: 507. DB::Exception: Sharding key key is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d65b200 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d659d08 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb4db in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:52.517176 [ 50113 ] {a74cac7d-eaa8-4155-a488-8787a47da765} executeQuery: Code: 43. DB::Exception: arrayAUC cannot process values of type Nothing: While processing arrayAUC([], []). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46064) (comment: 01202_array_auc_special.sql) (in query: SELECT arrayAUC([], []);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayAUC.cpp:162: DB::FunctionArrayAUC::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001294644e in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:19:52.518679 [ 50113 ] {a74cac7d-eaa8-4155-a488-8787a47da765} TCPHandler: Code: 43. DB::Exception: arrayAUC cannot process values of type Nothing: While processing arrayAUC([], []). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayAUC.cpp:162: DB::FunctionArrayAUC::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001294644e in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:19:52.837211 [ 50113 ] {c516d6dc-524d-4477-904f-61d5c339293b} executeQuery: Code: 43. DB::Exception: arrayAUC cannot process values of type Nothing: While processing arrayAUC([1], []). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46064) (comment: 01202_array_auc_special.sql) (in query: SELECT arrayAUC([1], []);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayAUC.cpp:162: DB::FunctionArrayAUC::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001294644e in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:19:52.838383 [ 50113 ] {c516d6dc-524d-4477-904f-61d5c339293b} TCPHandler: Code: 43. DB::Exception: arrayAUC cannot process values of type Nothing: While processing arrayAUC([1], []). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayAUC.cpp:162: DB::FunctionArrayAUC::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001294644e in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:19:52.848672 [ 50113 ] {17fd880f-265f-4f66-84cd-7e9f277021e1} executeQuery: Code: 43. DB::Exception: arrayAUC cannot process values of type Nothing: While processing arrayAUC([], [1]). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46064) (comment: 01202_array_auc_special.sql) (in query: SELECT arrayAUC([], [1]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayAUC.cpp:162: DB::FunctionArrayAUC::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001294644e in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:19:52.849827 [ 50113 ] {17fd880f-265f-4f66-84cd-7e9f277021e1} TCPHandler: Code: 43. DB::Exception: arrayAUC cannot process values of type Nothing: While processing arrayAUC([], [1]). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayAUC.cpp:162: DB::FunctionArrayAUC::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001294644e in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:19:53.007141 [ 50113 ] {8ca9b0df-1e63-4fe9-957e-3558fdb4c468} executeQuery: Code: 36. DB::Exception: Array arguments for function arrayAUC must have equal sizes: While processing arrayAUC([1, 2], [3]). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46064) (comment: 01202_array_auc_special.sql) (in query: SELECT arrayAUC([1, 2], [3]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayAUC.cpp:185: DB::FunctionArrayAUC::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000012945fcc in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:53.008108 [ 50113 ] {8ca9b0df-1e63-4fe9-957e-3558fdb4c468} TCPHandler: Code: 36. DB::Exception: Array arguments for function arrayAUC must have equal sizes: While processing arrayAUC([1, 2], [3]). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayAUC.cpp:185: DB::FunctionArrayAUC::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000012945fcc in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:53.017431 [ 50113 ] {8f4195d1-657a-4642-bafb-8f50873c7da6} executeQuery: Code: 36. DB::Exception: Array arguments for function arrayAUC must have equal sizes: While processing arrayAUC([1], [2, 3]). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46064) (comment: 01202_array_auc_special.sql) (in query: SELECT arrayAUC([1], [2, 3]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayAUC.cpp:185: DB::FunctionArrayAUC::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000012945fcc in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:53.018514 [ 50113 ] {8f4195d1-657a-4642-bafb-8f50873c7da6} TCPHandler: Code: 36. DB::Exception: Array arguments for function arrayAUC must have equal sizes: While processing arrayAUC([1], [2, 3]). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayAUC.cpp:185: DB::FunctionArrayAUC::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000012945fcc in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:19:55.595520 [ 12930 ] {e51ab7dd-ea77-40fd-a7fd-0667bf5611ab} executeQuery: Code: 36. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): arrayJoin([1, 2]). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46090) (comment: 01165_lost_part_empty_partition.sql) (in query: insert into rmt1(n) select * from system.numbers limit arrayJoin([1, 2]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Interpreters/evaluateConstantExpression.cpp:93: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001d08f914 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1227: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cac758f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001cabd4a4 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabe296 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 13. /build/src/Interpreters/IInterpreterUnionOrSelectQuery.cpp:26: DB::IInterpreterUnionOrSelectQuery::buildQueryPipeline(DB::QueryPlan&) @ 0x000000001ca8c8c0 in /usr/bin/clickhouse 14. /build/src/Interpreters/IInterpreterUnionOrSelectQuery.cpp:21: DB::IInterpreterUnionOrSelectQuery::buildQueryPipeline() @ 0x000000001ca8c81c in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterInsertQuery.cpp:471: DB::InterpreterInsertQuery::execute() @ 0x000000001ca861f4 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:55.596618 [ 12930 ] {e51ab7dd-ea77-40fd-a7fd-0667bf5611ab} TCPHandler: Code: 36. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): arrayJoin([1, 2]). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Interpreters/evaluateConstantExpression.cpp:93: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001d08f914 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1227: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cac758f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001cabd4a4 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabe296 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 13. /build/src/Interpreters/IInterpreterUnionOrSelectQuery.cpp:26: DB::IInterpreterUnionOrSelectQuery::buildQueryPipeline(DB::QueryPlan&) @ 0x000000001ca8c8c0 in /usr/bin/clickhouse 14. /build/src/Interpreters/IInterpreterUnionOrSelectQuery.cpp:21: DB::IInterpreterUnionOrSelectQuery::buildQueryPipeline() @ 0x000000001ca8c81c in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterInsertQuery.cpp:471: DB::InterpreterInsertQuery::execute() @ 0x000000001ca861f4 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:55.762920 [ 1125 ] {} InterserverIOHTTPHandler: Code: 221. DB::Exception: No interserver IO endpoint named DataPartsExchange:default:/test/01165/test_50gjsrtw/rmt/replicas/1. (NO_SUCH_INTERSERVER_IO_ENDPOINT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterserverIOHandler.h:80: DB::InterserverIOHandler::getEndpoint(String const&) const @ 0x000000001e5f1872 in /usr/bin/clickhouse 7. /build/src/Server/InterserverIOHTTPHandler.cpp:62: DB::InterserverIOHTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTTPServerResponse&, DB::InterserverIOHTTPHandler::Output&) @ 0x000000001e5ef4b8 in /usr/bin/clickhouse 8. /build/src/Server/InterserverIOHTTPHandler.cpp:120: DB::InterserverIOHTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5efb4e in /usr/bin/clickhouse 9. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 10. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 12. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 15. ? @ 0x00007f1a0debbac3 in ? 16. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:19:55.765017 [ 938 ] {} test_50gjsrtw.rmt2 (a63b7824-d4f2-40c6-8377-89c191c92742): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F01165%2Ftest_50gjsrtw%2Frmt%2Freplicas%2F1&part=20241021_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 221. DB::Exception: No interserver IO endpoint named DataPartsExchange:default:/test/01165/test_50gjsrtw/rmt/replicas/1. (NO_SUCH_INTERSERVER_IO_ENDPOINT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterserverIOHandler.h:80: DB::InterserverIOHandler::getEndpoint(String const&) const @ 0x000000001e5f1872 in /usr/bin/clickhouse 7. /build/src/Server/InterserverIOHTTPHandler.cpp:62: DB::InterserverIOHTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTTPServerResponse&, DB::InterserverIOHTTPHandler::Output&) @ 0x000000001e5ef4b8 in /usr/bin/clickhouse 8. /build/src/Server/InterserverIOHTTPHandler.cpp:120: DB::InterserverIOHTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5efb4e in /usr/bin/clickhouse 9. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 10. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 12. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 15. ? @ 0x00007f1a0debbac3 in ? 16. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:19:56.611733 [ 751 ] {} test_50gjsrtw.rmt2 (ReplicatedMergeTreePartCheckThread): No replica has part covering 20241021_0_0_0 and a merge is impossible: we didn't find smaller parts with either the same min block or the same max block. 2024.10.22 10:19:56.626254 [ 751 ] {} test_50gjsrtw.rmt2 (ReplicatedMergeTreePartCheckThread): Part 20241021_0_0_0 is lost forever. 2024.10.22 10:19:57.132138 [ 800 ] {} test_50gjsrtw.rmt2 (ReplicatedMergeTreePartCheckThread): No replica has part covering all_0_0_0 and a merge is impossible: we didn't find smaller parts with either the same min block or the same max block. 2024.10.22 10:19:57.147022 [ 800 ] {} test_50gjsrtw.rmt2 (ReplicatedMergeTreePartCheckThread): Part all_0_0_0 is lost forever. 2024.10.22 10:19:57.529724 [ 1139 ] {2ff678cb-3e96-41aa-a88d-975ebe7d0e87} executeQuery: Code: 167. DB::Exception: AST is too deep. Maximum: 1000. (TOO_DEEP_AST) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60132) (comment: 01196_max_parser_depth.sh) (in query: select coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, 1))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/Parsers/IAST.cpp:157: DB::IAST::checkDepthImpl(unsigned long) const @ 0x000000001f402b22 in /usr/bin/clickhouse 7. /build/src/Parsers/IAST.h:96: DB::IAST::checkDepth(unsigned long) const @ 0x000000001d0c113d in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:109: DB::checkASTSizeLimits(DB::IAST const&, DB::Settings const&) @ 0x000000001d0ba656 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:851: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b2359 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:57.539493 [ 1139 ] {2ff678cb-3e96-41aa-a88d-975ebe7d0e87} TCPHandler: Code: 167. DB::Exception: AST is too deep. Maximum: 1000. (TOO_DEEP_AST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/Parsers/IAST.cpp:157: DB::IAST::checkDepthImpl(unsigned long) const @ 0x000000001f402b22 in /usr/bin/clickhouse 7. /build/src/Parsers/IAST.h:96: DB::IAST::checkDepth(unsigned long) const @ 0x000000001d0c113d in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:109: DB::checkASTSizeLimits(DB::IAST const&, DB::Settings const&) @ 0x000000001d0ba656 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:851: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b2359 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:19:58.339523 [ 940 ] {} test_50gjsrtw.rmt2 (e804fe09-383e-45a5-90cc-ff89b975e94d): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F01165%2Ftest_50gjsrtw%2Frmt%2Freplicas%2F1&part=10--1847642156-20241021-1729549198_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:19:58.400518 [ 942 ] {} test_50gjsrtw.rmt2 (e804fe09-383e-45a5-90cc-ff89b975e94d): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F01165%2Ftest_50gjsrtw%2Frmt%2Freplicas%2F1&part=206-1171519425-20241021-1729549198_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:19:58.400517 [ 936 ] {} test_50gjsrtw.rmt2 (e804fe09-383e-45a5-90cc-ff89b975e94d): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F01165%2Ftest_50gjsrtw%2Frmt%2Freplicas%2F1&part=10--1847642156-20241021-1729549198_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:19:58.449110 [ 50113 ] {} InterserverIOHTTPHandler: Code: 221. DB::Exception: No interserver IO endpoint named DataPartsExchange:default:/test/01165/test_50gjsrtw/rmt/replicas/1. (NO_SUCH_INTERSERVER_IO_ENDPOINT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterserverIOHandler.h:80: DB::InterserverIOHandler::getEndpoint(String const&) const @ 0x000000001e5f1872 in /usr/bin/clickhouse 7. /build/src/Server/InterserverIOHTTPHandler.cpp:62: DB::InterserverIOHTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTTPServerResponse&, DB::InterserverIOHTTPHandler::Output&) @ 0x000000001e5ef4b8 in /usr/bin/clickhouse 8. /build/src/Server/InterserverIOHTTPHandler.cpp:120: DB::InterserverIOHTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5efb4e in /usr/bin/clickhouse 9. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 10. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 12. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 15. ? @ 0x00007f1a0debbac3 in ? 16. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:19:58.449149 [ 12922 ] {} InterserverIOHTTPHandler: Code: 221. DB::Exception: No interserver IO endpoint named DataPartsExchange:default:/test/01165/test_50gjsrtw/rmt/replicas/1. (NO_SUCH_INTERSERVER_IO_ENDPOINT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterserverIOHandler.h:80: DB::InterserverIOHandler::getEndpoint(String const&) const @ 0x000000001e5f1872 in /usr/bin/clickhouse 7. /build/src/Server/InterserverIOHTTPHandler.cpp:62: DB::InterserverIOHTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTTPServerResponse&, DB::InterserverIOHTTPHandler::Output&) @ 0x000000001e5ef4b8 in /usr/bin/clickhouse 8. /build/src/Server/InterserverIOHTTPHandler.cpp:120: DB::InterserverIOHTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5efb4e in /usr/bin/clickhouse 9. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 10. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 12. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 15. ? @ 0x00007f1a0debbac3 in ? 16. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:19:58.449172 [ 1125 ] {} InterserverIOHTTPHandler: Code: 221. DB::Exception: No interserver IO endpoint named DataPartsExchange:default:/test/01165/test_50gjsrtw/rmt/replicas/1. (NO_SUCH_INTERSERVER_IO_ENDPOINT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterserverIOHandler.h:80: DB::InterserverIOHandler::getEndpoint(String const&) const @ 0x000000001e5f1872 in /usr/bin/clickhouse 7. /build/src/Server/InterserverIOHTTPHandler.cpp:62: DB::InterserverIOHTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTTPServerResponse&, DB::InterserverIOHTTPHandler::Output&) @ 0x000000001e5ef4b8 in /usr/bin/clickhouse 8. /build/src/Server/InterserverIOHTTPHandler.cpp:120: DB::InterserverIOHTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5efb4e in /usr/bin/clickhouse 9. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 10. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 12. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 15. ? @ 0x00007f1a0debbac3 in ? 16. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:19:58.450702 [ 938 ] {} test_50gjsrtw.rmt2 (e804fe09-383e-45a5-90cc-ff89b975e94d): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F01165%2Ftest_50gjsrtw%2Frmt%2Freplicas%2F1&part=27--82608370-20241021-1729549198_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 221. DB::Exception: No interserver IO endpoint named DataPartsExchange:default:/test/01165/test_50gjsrtw/rmt/replicas/1. (NO_SUCH_INTERSERVER_IO_ENDPOINT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterserverIOHandler.h:80: DB::InterserverIOHandler::getEndpoint(String const&) const @ 0x000000001e5f1872 in /usr/bin/clickhouse 7. /build/src/Server/InterserverIOHTTPHandler.cpp:62: DB::InterserverIOHTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTTPServerResponse&, DB::InterserverIOHTTPHandler::Output&) @ 0x000000001e5ef4b8 in /usr/bin/clickhouse 8. /build/src/Server/InterserverIOHTTPHandler.cpp:120: DB::InterserverIOHTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5efb4e in /usr/bin/clickhouse 9. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 10. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 12. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 15. ? @ 0x00007f1a0debbac3 in ? 16. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:19:58.450786 [ 939 ] {} test_50gjsrtw.rmt2 (e804fe09-383e-45a5-90cc-ff89b975e94d): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F01165%2Ftest_50gjsrtw%2Frmt%2Freplicas%2F1&part=10--1847642156-20241021-1729549198_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 221. DB::Exception: No interserver IO endpoint named DataPartsExchange:default:/test/01165/test_50gjsrtw/rmt/replicas/1. (NO_SUCH_INTERSERVER_IO_ENDPOINT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterserverIOHandler.h:80: DB::InterserverIOHandler::getEndpoint(String const&) const @ 0x000000001e5f1872 in /usr/bin/clickhouse 7. /build/src/Server/InterserverIOHTTPHandler.cpp:62: DB::InterserverIOHTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTTPServerResponse&, DB::InterserverIOHTTPHandler::Output&) @ 0x000000001e5ef4b8 in /usr/bin/clickhouse 8. /build/src/Server/InterserverIOHTTPHandler.cpp:120: DB::InterserverIOHTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5efb4e in /usr/bin/clickhouse 9. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 10. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 12. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 15. ? @ 0x00007f1a0debbac3 in ? 16. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:19:58.451092 [ 944 ] {} test_50gjsrtw.rmt2 (e804fe09-383e-45a5-90cc-ff89b975e94d): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F01165%2Ftest_50gjsrtw%2Frmt%2Freplicas%2F1&part=206-1171519425-20241021-1729549198_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 221. DB::Exception: No interserver IO endpoint named DataPartsExchange:default:/test/01165/test_50gjsrtw/rmt/replicas/1. (NO_SUCH_INTERSERVER_IO_ENDPOINT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterserverIOHandler.h:80: DB::InterserverIOHandler::getEndpoint(String const&) const @ 0x000000001e5f1872 in /usr/bin/clickhouse 7. /build/src/Server/InterserverIOHTTPHandler.cpp:62: DB::InterserverIOHTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTTPServerResponse&, DB::InterserverIOHTTPHandler::Output&) @ 0x000000001e5ef4b8 in /usr/bin/clickhouse 8. /build/src/Server/InterserverIOHTTPHandler.cpp:120: DB::InterserverIOHTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5efb4e in /usr/bin/clickhouse 9. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 10. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 12. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 15. ? @ 0x00007f1a0debbac3 in ? 16. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:19:58.484619 [ 802 ] {} test_50gjsrtw.rmt2 (ReplicatedMergeTreePartCheckThread): No replica has part covering 10--1847642156-20241021-1729549198_0_0_0 and a merge is impossible: we didn't find smaller parts with either the same min block or the same max block. 2024.10.22 10:19:58.501641 [ 802 ] {} test_50gjsrtw.rmt2 (ReplicatedMergeTreePartCheckThread): Part 10--1847642156-20241021-1729549198_0_0_0 is lost forever. 2024.10.22 10:19:58.503466 [ 802 ] {} test_50gjsrtw.rmt2 (ReplicatedMergeTreePartCheckThread): No replica has part covering 206-1171519425-20241021-1729549198_0_0_0 and a merge is impossible: we didn't find smaller parts with either the same min block or the same max block. 2024.10.22 10:19:58.518449 [ 802 ] {} test_50gjsrtw.rmt2 (ReplicatedMergeTreePartCheckThread): Part 206-1171519425-20241021-1729549198_0_0_0 is lost forever. 2024.10.22 10:19:58.520655 [ 802 ] {} test_50gjsrtw.rmt2 (ReplicatedMergeTreePartCheckThread): No replica has part covering 27--82608370-20241021-1729549198_0_0_0 and a merge is impossible: we didn't find smaller parts with either the same min block or the same max block. 2024.10.22 10:19:58.535770 [ 802 ] {} test_50gjsrtw.rmt2 (ReplicatedMergeTreePartCheckThread): Part 27--82608370-20241021-1729549198_0_0_0 is lost forever. 2024.10.22 10:20:00.673184 [ 6967 ] {39c0c3cf-b3cc-46b9-b1a7-f6decfe5ec2d} executeQuery: Code: 167. DB::Exception: AST is too deep. Maximum: 1000. (TOO_DEEP_AST) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:58688) (comment: 01196_max_parser_depth.sh) (in query: select coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, 1))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/Parsers/IAST.cpp:157: DB::IAST::checkDepthImpl(unsigned long) const @ 0x000000001f402b22 in /usr/bin/clickhouse 7. /build/src/Parsers/IAST.h:96: DB::IAST::checkDepth(unsigned long) const @ 0x000000001d0c113d in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:109: DB::checkASTSizeLimits(DB::IAST const&, DB::Settings const&) @ 0x000000001d0ba656 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:851: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b2359 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 12. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 13. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:00.687827 [ 6967 ] {39c0c3cf-b3cc-46b9-b1a7-f6decfe5ec2d} DynamicQueryHandler: Code: 167. DB::Exception: AST is too deep. Maximum: 1000. (TOO_DEEP_AST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0c11f3 in /usr/bin/clickhouse 6. /build/src/Parsers/IAST.cpp:157: DB::IAST::checkDepthImpl(unsigned long) const @ 0x000000001f402b22 in /usr/bin/clickhouse 7. /build/src/Parsers/IAST.h:96: DB::IAST::checkDepth(unsigned long) const @ 0x000000001d0c113d in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:109: DB::checkASTSizeLimits(DB::IAST const&, DB::Settings const&) @ 0x000000001d0ba656 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:851: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b2359 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 12. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 13. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:20:02.312101 [ 12923 ] {01170_alter_partition_isolation_test_ptu5u76v_tx3_20567} executeQuery: Code: 650. DB::Exception: Serialization error: Transaction (41, 39, 41c214b2-a693-4efe-9c0c-e01fb092c06d) tried to remove data part all_4_4_0 from test_ptu5u76v.mt (0f6bb322-a3d8-480d-b1a6-30dce62df6b4), but it's locked by another transaction (TID: (41, 37, 41c214b2-a693-4efe-9c0c-e01fb092c06d), TIDH: 18359138385467296605) which is currently removing this part. (SERIALIZATION_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:54052) (in query: alter table mt drop partition id 'all'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, DB::TransactionID const&, String&, String&&, DB::TransactionID&&, unsigned long&) @ 0x000000001cf9a2ba in /usr/bin/clickhouse 6. /build/src/Interpreters/TransactionVersionMetadata.cpp:62: DB::VersionMetadata::lockRemovalTID(DB::TransactionID const&, DB::TransactionInfoContext const&) @ 0x000000001cf96cef in /usr/bin/clickhouse 7. /build/src/Interpreters/MergeTreeTransaction.cpp:149: DB::MergeTreeTransaction::removeOldPart(std::shared_ptr const&, std::shared_ptr const&, DB::TransactionInfoContext const&) @ 0x000000001cc5ab6f in /usr/bin/clickhouse 8. /build/src/Interpreters/MergeTreeTransaction.cpp:93: DB::MergeTreeTransaction::removeOldPart(std::shared_ptr const&, std::shared_ptr const&, DB::MergeTreeTransaction*) @ 0x000000001cc5a9e7 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:3962: DB::MergeTreeData::removePartsFromWorkingSet(DB::MergeTreeTransaction*, std::vector, std::allocator>> const&, bool, DB::DataPartsLock&) @ 0x000000001de9f893 in /usr/bin/clickhouse 10. /build/src/Storages/StorageMergeTree.cpp:1873: DB::StorageMergeTree::dropPartition(std::shared_ptr const&, bool, std::shared_ptr) @ 0x000000001e37ea87 in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeData.cpp:5144: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001deb17aa in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da24c in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 16. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 17. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 18. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 24. ? @ 0x00007f1a0debbac3 in ? 25. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:02.313158 [ 12923 ] {01170_alter_partition_isolation_test_ptu5u76v_tx3_20567} DynamicQueryHandler: Code: 650. DB::Exception: Serialization error: Transaction (41, 39, 41c214b2-a693-4efe-9c0c-e01fb092c06d) tried to remove data part all_4_4_0 from test_ptu5u76v.mt (0f6bb322-a3d8-480d-b1a6-30dce62df6b4), but it's locked by another transaction (TID: (41, 37, 41c214b2-a693-4efe-9c0c-e01fb092c06d), TIDH: 18359138385467296605) which is currently removing this part. (SERIALIZATION_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, DB::TransactionID const&, String&, String&&, DB::TransactionID&&, unsigned long&) @ 0x000000001cf9a2ba in /usr/bin/clickhouse 6. /build/src/Interpreters/TransactionVersionMetadata.cpp:62: DB::VersionMetadata::lockRemovalTID(DB::TransactionID const&, DB::TransactionInfoContext const&) @ 0x000000001cf96cef in /usr/bin/clickhouse 7. /build/src/Interpreters/MergeTreeTransaction.cpp:149: DB::MergeTreeTransaction::removeOldPart(std::shared_ptr const&, std::shared_ptr const&, DB::TransactionInfoContext const&) @ 0x000000001cc5ab6f in /usr/bin/clickhouse 8. /build/src/Interpreters/MergeTreeTransaction.cpp:93: DB::MergeTreeTransaction::removeOldPart(std::shared_ptr const&, std::shared_ptr const&, DB::MergeTreeTransaction*) @ 0x000000001cc5a9e7 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:3962: DB::MergeTreeData::removePartsFromWorkingSet(DB::MergeTreeTransaction*, std::vector, std::allocator>> const&, bool, DB::DataPartsLock&) @ 0x000000001de9f893 in /usr/bin/clickhouse 10. /build/src/Storages/StorageMergeTree.cpp:1873: DB::StorageMergeTree::dropPartition(std::shared_ptr const&, bool, std::shared_ptr) @ 0x000000001e37ea87 in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeData.cpp:5144: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001deb17aa in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da24c in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 16. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 17. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 18. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 24. ? @ 0x00007f1a0debbac3 in ? 25. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:20:02.332868 [ 12923 ] {01170_alter_partition_isolation_test_ptu5u76v_tx3_3638} executeQuery: Code: 649. DB::Exception: Cannot execute query because current transaction failed. Expecting ROLLBACK statement. (INVALID_TRANSACTION) (version 23.8.16.42.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:54058) (in query: insert into mt values ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [86]) @ 0x000000000f200c9e in /usr/bin/clickhouse 6. /build/src/Interpreters/executeQuery.cpp:799: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b1c87 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 8. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 9. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 10. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 16. ? @ 0x00007f1a0debbac3 in ? 17. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:02.333730 [ 12923 ] {01170_alter_partition_isolation_test_ptu5u76v_tx3_3638} DynamicQueryHandler: Code: 649. DB::Exception: Cannot execute query because current transaction failed. Expecting ROLLBACK statement. (INVALID_TRANSACTION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [86]) @ 0x000000000f200c9e in /usr/bin/clickhouse 6. /build/src/Interpreters/executeQuery.cpp:799: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b1c87 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1322: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b6b28 in /usr/bin/clickhouse 8. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 9. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 10. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 16. ? @ 0x00007f1a0debbac3 in ? 17. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:20:03.537085 [ 6967 ] {2a8f43c5-d608-4e3f-b292-8e1bcc135b1e} executeQuery: Code: 48. DB::Exception: WITH TOTALS and WITH ROLLUP or CUBE are not supported together in presence of HAVING. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60232) (comment: 01122_totals_rollup_having_block_header.sql) (in query: SELECT a, b, count(*) FROM rollup_having GROUP BY a, b WITH ROLLUP WITH TOTALS HAVING a IS NOT NULL;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [85]) @ 0x0000000015bb223e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1371: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab745a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:03.537741 [ 6967 ] {2a8f43c5-d608-4e3f-b292-8e1bcc135b1e} TCPHandler: Code: 48. DB::Exception: WITH TOTALS and WITH ROLLUP or CUBE are not supported together in presence of HAVING. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [85]) @ 0x0000000015bb223e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1371: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab745a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:03.553249 [ 6967 ] {99a1bac4-1ccc-46df-99c7-0e62e461ac48} executeQuery: Code: 48. DB::Exception: WITH TOTALS and WITH ROLLUP or CUBE are not supported together in presence of HAVING. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60232) (comment: 01122_totals_rollup_having_block_header.sql) (in query: SELECT a, b, count(*) FROM rollup_having GROUP BY a, b WITH ROLLUP WITH TOTALS HAVING a IS NOT NULL and b IS NOT NULL;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [85]) @ 0x0000000015bb223e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1371: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab745a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:03.553983 [ 6967 ] {99a1bac4-1ccc-46df-99c7-0e62e461ac48} TCPHandler: Code: 48. DB::Exception: WITH TOTALS and WITH ROLLUP or CUBE are not supported together in presence of HAVING. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [85]) @ 0x0000000015bb223e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1371: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab745a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:04.449685 [ 6967 ] {3c9ab3b3-9db1-453c-8da7-611f36f3a11e} executeQuery: Code: 42. DB::Exception: Number of arguments for function isConstant doesn't match: passed 0, should be 1: While processing isConstant(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60260) (comment: 01118_is_constant.sql) (in query: select isConstant();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:445: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf33b5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:20:04.450681 [ 6967 ] {3c9ab3b3-9db1-453c-8da7-611f36f3a11e} TCPHandler: Code: 42. DB::Exception: Number of arguments for function isConstant doesn't match: passed 0, should be 1: While processing isConstant(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:445: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf33b5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:20:04.458769 [ 6967 ] {17cf9ec8-74f5-44a2-8284-c625a07d92e8} executeQuery: Code: 42. DB::Exception: Number of arguments for function isConstant doesn't match: passed 2, should be 1: While processing isConstant(1, 2). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60260) (comment: 01118_is_constant.sql) (in query: select isConstant(1, 2);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:445: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf33b5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:20:04.459797 [ 6967 ] {17cf9ec8-74f5-44a2-8284-c625a07d92e8} TCPHandler: Code: 42. DB::Exception: Number of arguments for function isConstant doesn't match: passed 2, should be 1: While processing isConstant(1, 2). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:445: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf33b5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:20:10.159895 [ 12918 ] {a2019589-800f-49c8-bd4a-e44af765cb73} executeQuery: Code: 43. DB::Exception: addMilliseconds cannot be used with Date: While processing toDate('2001-09-29') + toIntervalMillisecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48660) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (date '2001-09-29' + interval 12345 millisecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c48b5a4 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c483870 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c79fe7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001195eaef in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:10.160739 [ 12918 ] {a2019589-800f-49c8-bd4a-e44af765cb73} TCPHandler: Code: 43. DB::Exception: addMilliseconds cannot be used with Date: While processing toDate('2001-09-29') + toIntervalMillisecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c48b5a4 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c483870 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c79fe7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001195eaef in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:10.307627 [ 12918 ] {c6a5c42c-9e08-4c5c-a55b-df4ab3dcbbdc} executeQuery: Code: 43. DB::Exception: addMicroseconds cannot be used with Date: While processing toDate('2001-09-29') + toIntervalMicrosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48660) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (date '2001-09-29' + interval 12345 microsecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c481ba4 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c479e70 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c79fe7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001195eaef in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:10.460510 [ 12925 ] {2a65d2fa-5c63-4075-a5a1-cc1ce2c14472} executeQuery: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48700) (comment: 01097_cyclic_defaults.sql) (in query: CREATE TABLE table_with_cyclic_defaults (a DEFAULT b, b DEFAULT a) ENGINE = Memory;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x000000001338283e in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01d601 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01debe in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01ed0a in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cfb1e60 in /usr/bin/clickhouse 11. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cfa386d in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa64ac in /usr/bin/clickhouse 13. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad41b in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:571: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ec6ba in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:10.460510 [ 12918 ] {c6a5c42c-9e08-4c5c-a55b-df4ab3dcbbdc} TCPHandler: Code: 43. DB::Exception: addMicroseconds cannot be used with Date: While processing toDate('2001-09-29') + toIntervalMicrosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c481ba4 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c479e70 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c79fe7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001195eaef in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:10.461351 [ 12925 ] {2a65d2fa-5c63-4075-a5a1-cc1ce2c14472} TCPHandler: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x000000001338283e in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01d601 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01debe in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01ed0a in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cfb1e60 in /usr/bin/clickhouse 11. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cfa386d in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa64ac in /usr/bin/clickhouse 13. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad41b in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:571: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ec6ba in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:10.649167 [ 12925 ] {98fee312-015a-423c-957d-f2b8bb425c0f} executeQuery: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48700) (comment: 01097_cyclic_defaults.sql) (in query: CREATE TABLE table_with_cyclic_defaults (a DEFAULT b + 1, b DEFAULT a * a) ENGINE = Memory;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x000000001338283e in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01d601 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01debe in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01ed0a in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cfb1e60 in /usr/bin/clickhouse 16. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cfa386d in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa64ac in /usr/bin/clickhouse 18. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad41b in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterCreateQuery.cpp:571: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ec6ba in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 2024.10.22 10:20:10.761658 [ 12925 ] {98fee312-015a-423c-957d-f2b8bb425c0f} TCPHandler: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x000000001338283e in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01d601 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01debe in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01ed0a in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cfb1e60 in /usr/bin/clickhouse 16. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cfa386d in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa64ac in /usr/bin/clickhouse 18. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad41b in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterCreateQuery.cpp:571: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ec6ba in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 2024.10.22 10:20:10.761666 [ 12918 ] {54a450c5-d8e4-4748-8050-108815792861} executeQuery: Code: 43. DB::Exception: addNanoseconds cannot be used with Date: While processing toDate('2001-09-29') + toIntervalNanosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48660) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (date '2001-09-29' + interval 12345 nanosecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c478184 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4703d0 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c79fe7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001195eaef in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:10.762522 [ 12918 ] {54a450c5-d8e4-4748-8050-108815792861} TCPHandler: Code: 43. DB::Exception: addNanoseconds cannot be used with Date: While processing toDate('2001-09-29') + toIntervalNanosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c478184 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4703d0 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c79fe7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001195eaef in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:10.948898 [ 12925 ] {cc6ef0cc-ecab-4aae-8471-271feca3ecb9} executeQuery: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48700) (comment: 01097_cyclic_defaults.sql) (in query: CREATE TABLE table_with_cyclic_defaults (a DEFAULT b, b DEFAULT toString(c), c DEFAULT concat(a, '1')) ENGINE = Memory;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x000000001338283e in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01d601 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01debe in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01ed0a in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cfb1e60 in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cfa386d in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa64ac in /usr/bin/clickhouse 19. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad41b in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterCreateQuery.cpp:571: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ec6ba in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 2024.10.22 10:20:11.066658 [ 12918 ] {477cc072-7019-4e36-b185-af79f64936b8} executeQuery: Code: 43. DB::Exception: subtractMilliseconds cannot be used with Date: While processing toDate('2001-09-29') - toIntervalMillisecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48660) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (date '2001-09-29' - interval 12345 millisecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c4045c4 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3fc310 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107b8387 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001048d72f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:11.066694 [ 12925 ] {cc6ef0cc-ecab-4aae-8471-271feca3ecb9} TCPHandler: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x000000001338283e in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01d601 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01debe in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01ed0a in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cfb1e60 in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cfa386d in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa64ac in /usr/bin/clickhouse 19. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad41b in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterCreateQuery.cpp:571: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ec6ba in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 2024.10.22 10:20:11.067509 [ 12918 ] {477cc072-7019-4e36-b185-af79f64936b8} TCPHandler: Code: 43. DB::Exception: subtractMilliseconds cannot be used with Date: While processing toDate('2001-09-29') - toIntervalMillisecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c4045c4 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3fc310 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107b8387 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001048d72f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:11.192859 [ 12918 ] {9dafb229-ee1e-4a81-a2cf-bc544447cc53} executeQuery: Code: 43. DB::Exception: subtractMicroseconds cannot be used with Date: While processing toDate('2001-09-29') - toIntervalMicrosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48660) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (date '2001-09-29' - interval 12345 microsecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c3fa644 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3f2390 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107b8387 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001048d72f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:11.362065 [ 12918 ] {9dafb229-ee1e-4a81-a2cf-bc544447cc53} TCPHandler: Code: 43. DB::Exception: subtractMicroseconds cannot be used with Date: While processing toDate('2001-09-29') - toIntervalMicrosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c3fa644 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3f2390 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107b8387 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001048d72f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:11.362131 [ 12925 ] {b32fe361-e588-49b7-a17b-cb36681cac12} executeQuery: Code: 174. DB::Exception: Self referencing of `a` to `a`. Cyclic alias: default expression and column type are incompatible. (CYCLIC_ALIASES) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48700) (comment: 01097_cyclic_defaults.sql) (in query: CREATE TABLE table_with_cyclic_defaults (a DEFAULT b, b DEFAULT c, c DEFAULT a * b) ENGINE = Memory;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:90: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01d32e in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01debe in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01ed0a in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cfb1e60 in /usr/bin/clickhouse 15. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cfa386d in /usr/bin/clickhouse 16. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa64ac in /usr/bin/clickhouse 17. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad41b in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:571: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ec6ba in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:20:11.363275 [ 12925 ] {b32fe361-e588-49b7-a17b-cb36681cac12} TCPHandler: Code: 174. DB::Exception: Self referencing of `a` to `a`. Cyclic alias: default expression and column type are incompatible. (CYCLIC_ALIASES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:90: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01d32e in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01debe in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01ed0a in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cfb1e60 in /usr/bin/clickhouse 15. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cfa386d in /usr/bin/clickhouse 16. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa64ac in /usr/bin/clickhouse 17. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad41b in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:571: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ec6ba in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:20:11.550410 [ 12925 ] {6da93883-fbc8-492b-b085-b395ee74ab08} executeQuery: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48700) (comment: 01097_cyclic_defaults.sql) (in query: CREATE TABLE table_with_cyclic_defaults (a String DEFAULT b, b String DEFAULT a) ENGINE = Memory;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x000000001338283e in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01d601 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01debe in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01ed0a in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cfb1e60 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cfa386d in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa64ac in /usr/bin/clickhouse 20. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad41b in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:571: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ec6ba in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:20:11.678024 [ 12925 ] {6da93883-fbc8-492b-b085-b395ee74ab08} TCPHandler: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x000000001338283e in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01d601 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01debe in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01ed0a in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cfb1e60 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cfa386d in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa64ac in /usr/bin/clickhouse 20. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad41b in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:571: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ec6ba in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:20:11.678069 [ 12918 ] {f2675ff0-6cdd-436a-af12-33f84926bea2} executeQuery: Code: 43. DB::Exception: subtractNanoseconds cannot be used with Date: While processing toDate('2001-09-29') - toIntervalNanosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48660) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (date '2001-09-29' - interval 12345 nanosecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c3f0064 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3e6e10 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107b8387 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001048d72f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:11.679010 [ 12918 ] {f2675ff0-6cdd-436a-af12-33f84926bea2} TCPHandler: Code: 43. DB::Exception: subtractNanoseconds cannot be used with Date: While processing toDate('2001-09-29') - toIntervalNanosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c3f0064 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3e6e10 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107b8387 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001048d72f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:11.859372 [ 12925 ] {0da7c925-eaf5-45e2-b430-180729f50257} executeQuery: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48700) (comment: 01097_cyclic_defaults.sql) (in query: ALTER TABLE table_with_cyclic_defaults ADD COLUMN c String DEFAULT b, ADD COLUMN b String DEFAULT c;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x000000001338283e in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01d601 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01debe in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01ed0a in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cfb1e60 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cfa386d in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa64ac in /usr/bin/clickhouse 20. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad41b in /usr/bin/clickhouse 21. /build/src/Storages/AlterCommands.cpp:1389: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d5963bd in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da4c5 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 2024.10.22 10:20:12.005072 [ 12918 ] {f4933831-c28c-4b44-a6ef-48df6834b6c4} executeQuery: Code: 43. DB::Exception: addMilliseconds cannot be used with Date32: While processing toDate32('2001-09-29') + toIntervalMillisecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48660) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (toDate32('2001-09-29') + interval 12345 millisecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c48b704 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c48388d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c79fe7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001195eaef in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:12.005132 [ 12925 ] {0da7c925-eaf5-45e2-b430-180729f50257} TCPHandler: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x000000001338283e in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01d601 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01debe in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01ed0a in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cfb1e60 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cfa386d in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa64ac in /usr/bin/clickhouse 20. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad41b in /usr/bin/clickhouse 21. /build/src/Storages/AlterCommands.cpp:1389: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d5963bd in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da4c5 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 2024.10.22 10:20:12.006095 [ 12918 ] {f4933831-c28c-4b44-a6ef-48df6834b6c4} TCPHandler: Code: 43. DB::Exception: addMilliseconds cannot be used with Date32: While processing toDate32('2001-09-29') + toIntervalMillisecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c48b704 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c48388d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c79fe7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001195eaef in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:12.014881 [ 12925 ] {c08569e4-c3ca-46ee-9fdd-59b6045e551d} executeQuery: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48700) (comment: 01097_cyclic_defaults.sql) (in query: ALTER TABLE table_with_cyclic_defaults ADD COLUMN b String DEFAULT a, MODIFY COLUMN a DEFAULT b;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x000000001338283e in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01d601 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01debe in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01ed0a in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cfb1e60 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cfa386d in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa64ac in /usr/bin/clickhouse 20. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad41b in /usr/bin/clickhouse 21. /build/src/Storages/AlterCommands.cpp:1389: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d5963bd in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da4c5 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 2024.10.22 10:20:12.015595 [ 12925 ] {c08569e4-c3ca-46ee-9fdd-59b6045e551d} TCPHandler: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x000000001338283e in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01d601 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01debe in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01ed0a in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cfb1e60 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cfa386d in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa64ac in /usr/bin/clickhouse 20. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad41b in /usr/bin/clickhouse 21. /build/src/Storages/AlterCommands.cpp:1389: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d5963bd in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da4c5 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 2024.10.22 10:20:12.144322 [ 12918 ] {65d16439-abf6-4980-a7f2-002d0e213e59} executeQuery: Code: 43. DB::Exception: addMicroseconds cannot be used with Date32: While processing toDate32('2001-09-29') + toIntervalMicrosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48660) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (toDate32('2001-09-29') + interval 12345 microsecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c481d04 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c479e8d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c79fe7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001195eaef in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:12.145264 [ 12918 ] {65d16439-abf6-4980-a7f2-002d0e213e59} TCPHandler: Code: 43. DB::Exception: addMicroseconds cannot be used with Date32: While processing toDate32('2001-09-29') + toIntervalMicrosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c481d04 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c479e8d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c79fe7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001195eaef in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:12.277711 [ 12918 ] {ca08bfac-c442-417e-b38c-34eded71460e} executeQuery: Code: 43. DB::Exception: addNanoseconds cannot be used with Date32: While processing toDate32('2001-09-29') + toIntervalNanosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48660) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (toDate32('2001-09-29') + interval 12345 nanosecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c4782e4 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4703ed in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c79fe7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001195eaef in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:12.278771 [ 12918 ] {ca08bfac-c442-417e-b38c-34eded71460e} TCPHandler: Code: 43. DB::Exception: addNanoseconds cannot be used with Date32: While processing toDate32('2001-09-29') + toIntervalNanosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c4782e4 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4703ed in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c79fe7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001195eaef in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:12.424805 [ 12918 ] {950f57f5-931a-4e21-abdc-d9f5b7f8e00f} executeQuery: Code: 43. DB::Exception: subtractMilliseconds cannot be used with Date32: While processing toDate32('2001-09-29') - toIntervalMillisecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48660) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (toDate32('2001-09-29') - interval 12345 millisecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c404724 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3fc32d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107b8387 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001048d72f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:12.425826 [ 12918 ] {950f57f5-931a-4e21-abdc-d9f5b7f8e00f} TCPHandler: Code: 43. DB::Exception: subtractMilliseconds cannot be used with Date32: While processing toDate32('2001-09-29') - toIntervalMillisecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c404724 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3fc32d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107b8387 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001048d72f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:12.566403 [ 12918 ] {1a46c082-b959-449c-83d4-e9732529eca1} executeQuery: Code: 43. DB::Exception: subtractMicroseconds cannot be used with Date32: While processing toDate32('2001-09-29') - toIntervalMicrosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48660) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (toDate32('2001-09-29') - interval 12345 microsecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c3fa7a4 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3f23ad in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107b8387 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001048d72f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:12.567343 [ 12918 ] {1a46c082-b959-449c-83d4-e9732529eca1} TCPHandler: Code: 43. DB::Exception: subtractMicroseconds cannot be used with Date32: While processing toDate32('2001-09-29') - toIntervalMicrosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c3fa7a4 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3f23ad in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107b8387 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001048d72f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:12.718171 [ 12918 ] {8aa847fd-0f48-4c08-afc3-eb8d3cb113aa} executeQuery: Code: 43. DB::Exception: subtractNanoseconds cannot be used with Date32: While processing toDate32('2001-09-29') - toIntervalNanosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48660) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (toDate32('2001-09-29') - interval 12345 nanosecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c3f01c4 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3e6e2d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107b8387 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001048d72f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:12.719051 [ 12918 ] {8aa847fd-0f48-4c08-afc3-eb8d3cb113aa} TCPHandler: Code: 43. DB::Exception: subtractNanoseconds cannot be used with Date32: While processing toDate32('2001-09-29') - toIntervalNanosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c3f01c4 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3e6e2d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107b8387 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001048d72f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:20:13.846301 [ 12925 ] {8ea84065-d4d6-4897-a320-33110d60db24} executeQuery: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48770) (comment: 01093_cyclic_defaults_filimonov.sql) (in query: CREATE TABLE test ( `a0` UInt64 DEFAULT a1 + 1, `a1` UInt64 DEFAULT a0 + 1, `a2` UInt64 DEFAULT a3 + a4, `a3` UInt64 DEFAULT a2 + 1, `a4` UInt64 ALIAS a3 + 1 ) ENGINE = Log;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x000000001338283e in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01d601 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01debe in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 18. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 19. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01ed0a in /usr/bin/clickhouse 20. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 21. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cfb1e60 in /usr/bin/clickhouse 22. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cfa386d in /usr/bin/clickhouse 23. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa64ac in /usr/bin/clickhouse 24. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad41b in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:571: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ec6ba in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:20:13.847182 [ 12925 ] {8ea84065-d4d6-4897-a320-33110d60db24} TCPHandler: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x000000001338283e in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01d601 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01debe in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 18. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 19. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01ed0a in /usr/bin/clickhouse 20. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 21. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cfb1e60 in /usr/bin/clickhouse 22. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cfa386d in /usr/bin/clickhouse 23. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa64ac in /usr/bin/clickhouse 24. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad41b in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:571: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ec6ba in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:20:14.009823 [ 12925 ] {6f91a9b8-5d4f-4205-ba0a-3cd29fa5ce81} executeQuery: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48770) (comment: 01093_cyclic_defaults_filimonov.sql) (in query: CREATE TABLE pythagoras ( `a` Float64 DEFAULT sqrt((c * c) - (b * b)), `b` Float64 DEFAULT sqrt((c * c) - (a * a)), `c` Float64 DEFAULT sqrt((a * a) + (b * b)) ) ENGINE = Log;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x000000001338283e in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01d601 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01debe in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 18. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 19. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 20. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 21. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 22. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 23. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 24. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 25. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 26. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 27. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01ed0a in /usr/bin/clickhouse 28. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 29. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cfb1e60 in /usr/bin/clickhouse 30. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cfa386d in /usr/bin/clickhouse 31. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa64ac in /usr/bin/clickhouse 2024.10.22 10:20:14.010764 [ 12925 ] {6f91a9b8-5d4f-4205-ba0a-3cd29fa5ce81} TCPHandler: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x000000001338283e in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01d601 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01debe in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 18. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 19. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 20. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 21. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 22. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 23. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 24. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e1e8 in /usr/bin/clickhouse 25. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01eafd in /usr/bin/clickhouse 26. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 27. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d01ed0a in /usr/bin/clickhouse 28. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d01e207 in /usr/bin/clickhouse 29. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cfb1e60 in /usr/bin/clickhouse 30. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cfa386d in /usr/bin/clickhouse 31. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa64ac in /usr/bin/clickhouse 2024.10.22 10:20:16.019985 [ 1139 ] {b56ab3a2-3839-4617-b839-527ec96e6ab6} executeQuery: Code: 36. DB::Exception: Cannot alter settings, because table engine doesn't support settings changes. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48840) (comment: 01089_alter_settings_old_format.sql) (in query: ALTER TABLE old_format_mt MODIFY SETTING enable_mixed_granularity_parts = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [77]) @ 0x000000000bc42d7e in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1268: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d594967 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da4c5 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:16.020934 [ 1139 ] {b56ab3a2-3839-4617-b839-527ec96e6ab6} TCPHandler: Code: 36. DB::Exception: Cannot alter settings, because table engine doesn't support settings changes. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [77]) @ 0x000000000bc42d7e in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1268: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d594967 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da4c5 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:23.928737 [ 6967 ] {44a0992a-a1ea-40ed-b0d9-2e3fcb5897c8} executeQuery: Code: 36. DB::Exception: Data type have to be specified for column `value` to add. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59268) (comment: 01079_alter_default_zookeeper_long.sql) (in query: -- Cannot add column without type ALTER TABLE alter_default ADD COLUMN value DEFAULT '10';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1089: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d591f02 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da4c5 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:23.929523 [ 6967 ] {44a0992a-a1ea-40ed-b0d9-2e3fcb5897c8} TCPHandler: Code: 36. DB::Exception: Data type have to be specified for column `value` to add. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1089: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d591f02 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da4c5 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:24.561766 [ 6967 ] {04be4d25-2171-4385-b420-776c32c3abf8} executeQuery: Code: 6. DB::Exception: Cannot parse string 'q' as UInt8: syntax error at begin of string. Note: there are toUInt8OrZero and toUInt8OrNull functions, which returns zero/NULL instead of throwing exception.: While processing _CAST('q' AS bad_column_tmp_alter7293080812680654304, 'UInt8') AS bad_column: default expression and column type are incompatible. (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59268) (comment: 01079_alter_default_zookeeper_long.sql) (in query: ALTER TABLE alter_default ADD COLUMN bad_column UInt8 DEFAULT 'q';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt8, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2686d7 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt8, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b262a38 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt8, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b23e979 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt8, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b23dc88 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt8, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b23cdfe in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 30. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 2024.10.22 10:20:24.562735 [ 6967 ] {04be4d25-2171-4385-b420-776c32c3abf8} TCPHandler: Code: 6. DB::Exception: Cannot parse string 'q' as UInt8: syntax error at begin of string. Note: there are toUInt8OrZero and toUInt8OrNull functions, which returns zero/NULL instead of throwing exception.: While processing _CAST('q' AS bad_column_tmp_alter7293080812680654304, 'UInt8') AS bad_column: default expression and column type are incompatible. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt8, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2686d7 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt8, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b262a38 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt8, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b23e979 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt8, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b23dc88 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt8, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b23cdfe in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 30. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 2024.10.22 10:20:24.799119 [ 6967 ] {b66a0449-4438-4054-8fc4-42a9dc56499f} executeQuery: Code: 41. DB::ParsingException: Cannot parse datetime: Cannot parse DateTime from String: While processing _CAST('0' AS other_date_tmp_alter7698800689126743386, 'DateTime') AS other_date: default expression and column type are incompatible. (CANNOT_PARSE_DATETIME) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59268) (comment: 01079_alter_default_zookeeper_long.sql) (in query: ALTER TABLE alter_default MODIFY COLUMN other_date DateTime;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException<>(int, FormatStringHelperImpl<>) @ 0x000000000b268e77 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:1218: void DB::readDateTimeTextFallback(long&, DB::ReadBuffer&, DateLUTImpl const&) @ 0x000000001398ffb6 in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:966: void DB::readDateTimeTextImpl(long&, DB::ReadBuffer&, DateLUTImpl const&) @ 0x000000000b5a0496 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:1047: DB::readDateTimeText(long&, DB::ReadBuffer&, DateLUTImpl const&) @ 0x000000000b5a0165 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1077: void DB::parseImpl(DB::DataTypeDateTime::FieldType&, DB::ReadBuffer&, DateLUTImpl const*, bool) @ 0x000000000b5a0094 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1426: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b59ff7b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator(), DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b59a5b8 in /usr/bin/clickhouse 12. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b58a219 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b589548 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b58873e in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 27. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 30. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 31. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 2024.10.22 10:20:24.800242 [ 6967 ] {b66a0449-4438-4054-8fc4-42a9dc56499f} TCPHandler: Code: 41. DB::ParsingException: Cannot parse datetime: Cannot parse DateTime from String: While processing _CAST('0' AS other_date_tmp_alter7698800689126743386, 'DateTime') AS other_date: default expression and column type are incompatible. (CANNOT_PARSE_DATETIME), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException<>(int, FormatStringHelperImpl<>) @ 0x000000000b268e77 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:1218: void DB::readDateTimeTextFallback(long&, DB::ReadBuffer&, DateLUTImpl const&) @ 0x000000001398ffb6 in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:966: void DB::readDateTimeTextImpl(long&, DB::ReadBuffer&, DateLUTImpl const&) @ 0x000000000b5a0496 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:1047: DB::readDateTimeText(long&, DB::ReadBuffer&, DateLUTImpl const&) @ 0x000000000b5a0165 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1077: void DB::parseImpl(DB::DataTypeDateTime::FieldType&, DB::ReadBuffer&, DateLUTImpl const*, bool) @ 0x000000000b5a0094 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1426: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b59ff7b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator(), DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b59a5b8 in /usr/bin/clickhouse 12. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b58a219 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b589548 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b58873e in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 27. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 30. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 31. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 2024.10.22 10:20:33.425641 [ 6967 ] {e1ae39af-493e-4460-a7a1-834dccb67fea} executeQuery: Code: 69. DB::Exception: The argument 'resolution' (100) of function h3EdgeLengthM is out of bounds because the maximum resolution in H3 library is 15: While processing h3EdgeLengthM(100). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53494) (comment: 01074_h3_range_check.sql) (in query: SELECT h3EdgeLengthM(100);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, int&&) @ 0x000000000e47c5a8 in /usr/bin/clickhouse 6. /build/src/Functions/h3EdgeLengthM.cpp:84: DB::(anonymous namespace)::FunctionH3EdgeLengthM::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eed727e in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:20:33.431340 [ 6967 ] {e1ae39af-493e-4460-a7a1-834dccb67fea} TCPHandler: Code: 69. DB::Exception: The argument 'resolution' (100) of function h3EdgeLengthM is out of bounds because the maximum resolution in H3 library is 15: While processing h3EdgeLengthM(100). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, int&&) @ 0x000000000e47c5a8 in /usr/bin/clickhouse 6. /build/src/Functions/h3EdgeLengthM.cpp:84: DB::(anonymous namespace)::FunctionH3EdgeLengthM::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eed727e in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:20:33.615405 [ 6967 ] {a2464ab9-c216-42c1-95fe-4f0f12eef808} executeQuery: Code: 69. DB::Exception: The argument 'resolution' (100) of function h3HexAreaM2 is out of bounds because the maximum resolution in H3 library is 15: While processing h3HexAreaM2(100). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53494) (comment: 01074_h3_range_check.sql) (in query: SELECT h3HexAreaM2(100);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, int&&) @ 0x000000000e47c5a8 in /usr/bin/clickhouse 6. /build/src/Functions/h3HexAreaM2.cpp:79: DB::(anonymous namespace)::FunctionH3HexAreaM2::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eef0bfe in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:20:33.616454 [ 6967 ] {a2464ab9-c216-42c1-95fe-4f0f12eef808} TCPHandler: Code: 69. DB::Exception: The argument 'resolution' (100) of function h3HexAreaM2 is out of bounds because the maximum resolution in H3 library is 15: While processing h3HexAreaM2(100). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, int&&) @ 0x000000000e47c5a8 in /usr/bin/clickhouse 6. /build/src/Functions/h3HexAreaM2.cpp:79: DB::(anonymous namespace)::FunctionH3HexAreaM2::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eef0bfe in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:20:33.767240 [ 6967 ] {a580a618-9090-4f83-8f20-cf766e491c88} executeQuery: Code: 69. DB::Exception: The argument 'resolution' (100) of function h3HexAreaKm2 is out of bounds because the maximum resolution in H3 library is 15: While processing h3HexAreaKm2(100). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53494) (comment: 01074_h3_range_check.sql) (in query: SELECT h3HexAreaKm2(100);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, int&&) @ 0x000000000e47c5a8 in /usr/bin/clickhouse 6. /build/src/Functions/h3HexAreaKm2.cpp:79: DB::(anonymous namespace)::FunctionH3HexAreaKm2::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eeef339 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:20:33.768633 [ 6967 ] {a580a618-9090-4f83-8f20-cf766e491c88} TCPHandler: Code: 69. DB::Exception: The argument 'resolution' (100) of function h3HexAreaKm2 is out of bounds because the maximum resolution in H3 library is 15: While processing h3HexAreaKm2(100). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, int&&) @ 0x000000000e47c5a8 in /usr/bin/clickhouse 6. /build/src/Functions/h3HexAreaKm2.cpp:79: DB::(anonymous namespace)::FunctionH3HexAreaKm2::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eeef339 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:20:37.557620 [ 50242 ] {80f4365e-97c8-4ab3-ae67-ae1e92898dbd} executeQuery: Code: 38. DB::Exception: Cannot parse date: value is too short: while converting '202001-06' to Date. (CANNOT_PARSE_DATE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55720) (comment: 01073_bad_alter_partition.sql) (in query: ALTER TABLE merge_tree DROP PARTITION '202001-06';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [38]) @ 0x000000000f82675e in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:1063: void DB::readDateTextFallback(LocalDate&, DB::ReadBuffer&)::'lambda'()::operator()() const @ 0x000000001398f2b5 in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.cpp:1099: void DB::readDateTextFallback(LocalDate&, DB::ReadBuffer&) @ 0x000000001398f031 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:719: void DB::readDateTextImpl(LocalDate&, DB::ReadBuffer&) @ 0x000000000b551e57 in /usr/bin/clickhouse 9. /build/src/IO/ReadHelpers.h:743: void DB::readDateTextImpl(StrongTypedef&, DB::ReadBuffer&, DateLUTImpl const&) @ 0x000000000b551b4a in /usr/bin/clickhouse 10. /build/src/IO/ReadHelpers.h:774: DB::readDateText(StrongTypedef&, DB::ReadBuffer&, DateLUTImpl const&) @ 0x000000000b551b05 in /usr/bin/clickhouse 11. /build/src/DataTypes/Serializations/SerializationDate.cpp:30: DB::SerializationDate::deserializeTextEscaped(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba39efe in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationDate.cpp:22: DB::SerializationDate::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba39dd4 in /usr/bin/clickhouse 13. /build/src/Interpreters/convertFieldToType.cpp:503: DB::(anonymous namespace)::convertFieldToTypeImpl(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d071d5c in /usr/bin/clickhouse 14. /build/src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToType(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d06e77d in /usr/bin/clickhouse 15. /build/src/Interpreters/convertFieldToType.cpp:560: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d072658 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:5576: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de97c2f in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:4948: DB::MergeTreeData::checkAlterPartitionIsPossible(std::vector> const&, std::shared_ptr const&, DB::Settings const&) const @ 0x000000001deaf224 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterAlterQuery.cpp:184: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da1b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 29. ? @ 0x00007f1a0debbac3 in ? 30. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:37.649222 [ 50242 ] {80f4365e-97c8-4ab3-ae67-ae1e92898dbd} TCPHandler: Code: 38. DB::Exception: Cannot parse date: value is too short: while converting '202001-06' to Date. (CANNOT_PARSE_DATE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [38]) @ 0x000000000f82675e in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:1063: void DB::readDateTextFallback(LocalDate&, DB::ReadBuffer&)::'lambda'()::operator()() const @ 0x000000001398f2b5 in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.cpp:1099: void DB::readDateTextFallback(LocalDate&, DB::ReadBuffer&) @ 0x000000001398f031 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:719: void DB::readDateTextImpl(LocalDate&, DB::ReadBuffer&) @ 0x000000000b551e57 in /usr/bin/clickhouse 9. /build/src/IO/ReadHelpers.h:743: void DB::readDateTextImpl(StrongTypedef&, DB::ReadBuffer&, DateLUTImpl const&) @ 0x000000000b551b4a in /usr/bin/clickhouse 10. /build/src/IO/ReadHelpers.h:774: DB::readDateText(StrongTypedef&, DB::ReadBuffer&, DateLUTImpl const&) @ 0x000000000b551b05 in /usr/bin/clickhouse 11. /build/src/DataTypes/Serializations/SerializationDate.cpp:30: DB::SerializationDate::deserializeTextEscaped(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba39efe in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationDate.cpp:22: DB::SerializationDate::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba39dd4 in /usr/bin/clickhouse 13. /build/src/Interpreters/convertFieldToType.cpp:503: DB::(anonymous namespace)::convertFieldToTypeImpl(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d071d5c in /usr/bin/clickhouse 14. /build/src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToType(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d06e77d in /usr/bin/clickhouse 15. /build/src/Interpreters/convertFieldToType.cpp:560: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d072658 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:5576: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de97c2f in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:4948: DB::MergeTreeData::checkAlterPartitionIsPossible(std::vector> const&, std::shared_ptr const&, DB::Settings const&) const @ 0x000000001deaf224 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterAlterQuery.cpp:184: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da1b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 29. ? @ 0x00007f1a0debbac3 in ? 30. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:37.649786 [ 12918 ] {0fadd599-fc51-4da9-bb5c-80b8ffffc964} executeQuery: Code: 60. DB::Exception: Temporary table table_to_drop doesn't exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55736) (comment: 01072_drop_temporary_table_with_same_name.sql) (in query: DROP TEMPORARY TABLE table_to_drop;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterDropQuery.cpp:114: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b9616 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:37.668112 [ 12918 ] {0fadd599-fc51-4da9-bb5c-80b8ffffc964} TCPHandler: Code: 60. DB::Exception: Temporary table table_to_drop doesn't exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterDropQuery.cpp:114: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b9616 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:37.799186 [ 12918 ] {98ddc0fc-496f-40e9-ae34-79ebfbfd95c5} executeQuery: Code: 60. DB::Exception: Table test_mow9w2a4.table_to_drop does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55736) (comment: 01072_drop_temporary_table_with_same_name.sql) (in query: DROP TABLE table_to_drop;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:37.799860 [ 12918 ] {98ddc0fc-496f-40e9-ae34-79ebfbfd95c5} TCPHandler: Code: 60. DB::Exception: Table test_mow9w2a4.table_to_drop does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:37.829943 [ 12918 ] {2e324826-6384-4bf7-a691-224872b6d0e5} executeQuery: Code: 60. DB::Exception: Table test_mow9w2a4.table_to_drop does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55736) (comment: 01072_drop_temporary_table_with_same_name.sql) (in query: DROP TABLE table_to_drop;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:37.830504 [ 12918 ] {2e324826-6384-4bf7-a691-224872b6d0e5} TCPHandler: Code: 60. DB::Exception: Table test_mow9w2a4.table_to_drop does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:38.530111 [ 50113 ] {ca56a2a9-61b8-4215-8f3c-8c91ecaaedbd} executeQuery: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55760) (comment: 01072_optimize_skip_unused_shards_const_expr_eval.sql) (in query: select * from dist_01072 where key=value;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d65b200 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d659d08 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb4db in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:38.530775 [ 50113 ] {ca56a2a9-61b8-4215-8f3c-8c91ecaaedbd} TCPHandler: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d65b200 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d659d08 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb4db in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:38.541048 [ 50113 ] {8a29740c-c0a0-4b97-9dcd-b2a8e54cc8e6} executeQuery: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55760) (comment: 01072_optimize_skip_unused_shards_const_expr_eval.sql) (in query: select * from dist_01072 where key=toInt32(value);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d65b200 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d659d08 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb4db in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:38.541835 [ 50113 ] {8a29740c-c0a0-4b97-9dcd-b2a8e54cc8e6} TCPHandler: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d65b200 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d659d08 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb4db in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:38.756383 [ 50113 ] {78d6978b-fd4e-4eda-ba93-9cc369b43bf7} executeQuery: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55760) (comment: 01072_optimize_skip_unused_shards_const_expr_eval.sql) (in query: select * from dist_01072 where key=value;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d65b200 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d659d08 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb4db in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:38.757634 [ 50113 ] {78d6978b-fd4e-4eda-ba93-9cc369b43bf7} TCPHandler: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d65b200 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d659d08 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb4db in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:38.771017 [ 50113 ] {7a994cf9-da91-43fe-8e7f-76a9bb744662} executeQuery: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55760) (comment: 01072_optimize_skip_unused_shards_const_expr_eval.sql) (in query: select * from dist_01072 where key=toInt32(value);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d65b200 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d659d08 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb4db in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:38.771942 [ 50113 ] {7a994cf9-da91-43fe-8e7f-76a9bb744662} TCPHandler: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d65b200 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d659d08 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb4db in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:38.954162 [ 50113 ] {d9a0a1f8-0362-46a1-b35c-35b15895579e} executeQuery: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55760) (comment: 01072_optimize_skip_unused_shards_const_expr_eval.sql) (in query: select * from dist_01072 where key=value;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d65b200 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d659d08 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb4db in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:38.954873 [ 50113 ] {d9a0a1f8-0362-46a1-b35c-35b15895579e} TCPHandler: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d65b200 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d659d08 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb4db in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:38.964886 [ 50113 ] {58e182ce-48d4-4be5-b5f6-37226f9b6a03} executeQuery: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55760) (comment: 01072_optimize_skip_unused_shards_const_expr_eval.sql) (in query: select * from dist_01072 where key=toInt32(value);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d65b200 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d659d08 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb4db in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:38.965609 [ 50113 ] {58e182ce-48d4-4be5-b5f6-37226f9b6a03} TCPHandler: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d65b200 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d659d08 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb4db in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:39.161027 [ 50113 ] {8abbd029-8006-4cfd-a128-7d0c46e5e089} executeQuery: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55760) (comment: 01072_optimize_skip_unused_shards_const_expr_eval.sql) (in query: select * from dist_01072 where key=value;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d65b200 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d659d08 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb4db in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:39.161898 [ 50113 ] {8abbd029-8006-4cfd-a128-7d0c46e5e089} TCPHandler: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d65b200 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d659d08 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb4db in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:39.181379 [ 50113 ] {799c769b-071c-461a-baee-76e6f2d4a08a} executeQuery: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55760) (comment: 01072_optimize_skip_unused_shards_const_expr_eval.sql) (in query: select * from dist_01072 where key=toInt32(value);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d65b200 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d659d08 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb4db in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:39.184131 [ 50113 ] {799c769b-071c-461a-baee-76e6f2d4a08a} TCPHandler: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d65b200 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d659d08 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb4db in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:46.345057 [ 12922 ] {8ab473f6-6034-4424-9e0f-a1dc379563e7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 73.99 MiB (attempt to allocate chunk of 67108864 bytes), maximum: 47.68 MiB.: While executing JoiningTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55858) (comment: 01062_pm_all_join_with_block_continuation.sql) (in query: SELECT count(1) FROM ( SELECT materialize(1) as k, n FROM numbers(10) nums JOIN (SELECT materialize(1) AS k, number n FROM numbers(1000000)) j USING k);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:0: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::resize<>(unsigned long) @ 0x000000000b1a82c6 in /usr/bin/clickhouse 13. /build/src/Columns/ColumnVector.cpp:492: DB::ColumnVector::insertRangeFrom(DB::IColumn const&, unsigned long, unsigned long) @ 0x000000001d3d576f in /usr/bin/clickhouse 14. /build/src/Interpreters/MergeJoin.cpp:384: DB::(anonymous namespace)::copyLeftRange(DB::Block const&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long, unsigned long) @ 0x000000001cc3afb4 in /usr/bin/clickhouse 15. /build/src/Interpreters/MergeJoin.cpp:435: bool DB::(anonymous namespace)::joinEquals(DB::Block const&, DB::Block const&, DB::Block const&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::MergeJoinEqualRange&, unsigned long) @ 0x000000001cc3980d in /usr/bin/clickhouse 16. /build/src/Interpreters/MergeJoin.cpp:941: DB::MergeJoin::allInnerJoin(DB::MergeJoinCursor&, DB::Block const&, DB::MergeJoin::RightBlockInfo&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long&) @ 0x000000001cc394bd in /usr/bin/clickhouse 17. /build/src/Interpreters/MergeJoin.cpp:831: void DB::MergeJoin::joinSortedBlock(DB::Block&, std::shared_ptr&) @ 0x000000001cc3c465 in /usr/bin/clickhouse 18. /build/src/Interpreters/MergeJoin.cpp:726: DB::MergeJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001cc38f5a in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/JoiningTransform.cpp:206: DB::JoiningTransform::readExecute(DB::Chunk&) @ 0x000000001ebd7fc3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/JoiningTransform.cpp:191: DB::JoiningTransform::transform(DB::Chunk&) @ 0x000000001ebd7d2e in /usr/bin/clickhouse 21. /build/src/Processors/Transforms/JoiningTransform.cpp:125: DB::JoiningTransform::work() @ 0x000000001ebd763d in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 2024.10.22 10:20:46.351188 [ 12922 ] {8ab473f6-6034-4424-9e0f-a1dc379563e7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 73.99 MiB (attempt to allocate chunk of 67108864 bytes), maximum: 47.68 MiB.: While executing JoiningTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:0: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::resize<>(unsigned long) @ 0x000000000b1a82c6 in /usr/bin/clickhouse 13. /build/src/Columns/ColumnVector.cpp:492: DB::ColumnVector::insertRangeFrom(DB::IColumn const&, unsigned long, unsigned long) @ 0x000000001d3d576f in /usr/bin/clickhouse 14. /build/src/Interpreters/MergeJoin.cpp:384: DB::(anonymous namespace)::copyLeftRange(DB::Block const&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long, unsigned long) @ 0x000000001cc3afb4 in /usr/bin/clickhouse 15. /build/src/Interpreters/MergeJoin.cpp:435: bool DB::(anonymous namespace)::joinEquals(DB::Block const&, DB::Block const&, DB::Block const&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::MergeJoinEqualRange&, unsigned long) @ 0x000000001cc3980d in /usr/bin/clickhouse 16. /build/src/Interpreters/MergeJoin.cpp:941: DB::MergeJoin::allInnerJoin(DB::MergeJoinCursor&, DB::Block const&, DB::MergeJoin::RightBlockInfo&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long&) @ 0x000000001cc394bd in /usr/bin/clickhouse 17. /build/src/Interpreters/MergeJoin.cpp:831: void DB::MergeJoin::joinSortedBlock(DB::Block&, std::shared_ptr&) @ 0x000000001cc3c465 in /usr/bin/clickhouse 18. /build/src/Interpreters/MergeJoin.cpp:726: DB::MergeJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001cc38f5a in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/JoiningTransform.cpp:206: DB::JoiningTransform::readExecute(DB::Chunk&) @ 0x000000001ebd7fc3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/JoiningTransform.cpp:191: DB::JoiningTransform::transform(DB::Chunk&) @ 0x000000001ebd7d2e in /usr/bin/clickhouse 21. /build/src/Processors/Transforms/JoiningTransform.cpp:125: DB::JoiningTransform::work() @ 0x000000001ebd763d in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 2024.10.22 10:20:46.464602 [ 12922 ] {157f328a-f88b-4204-b4dd-70a1895b5ae0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 72.03 MiB (attempt to allocate chunk of 67108864 bytes), maximum: 47.68 MiB.: While executing JoiningTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55858) (comment: 01062_pm_all_join_with_block_continuation.sql) (in query: SELECT count(1) FROM ( SELECT materialize(1) as k, n FROM numbers(1000) nums JOIN (SELECT materialize(1) AS k, number n FROM numbers(10000)) j USING k);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:0: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::resize<>(unsigned long) @ 0x000000000b1a82c6 in /usr/bin/clickhouse 13. /build/src/Columns/ColumnVector.cpp:492: DB::ColumnVector::insertRangeFrom(DB::IColumn const&, unsigned long, unsigned long) @ 0x000000001d3d576f in /usr/bin/clickhouse 14. /build/src/Interpreters/MergeJoin.cpp:384: DB::(anonymous namespace)::copyLeftRange(DB::Block const&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long, unsigned long) @ 0x000000001cc3afb4 in /usr/bin/clickhouse 15. /build/src/Interpreters/MergeJoin.cpp:435: bool DB::(anonymous namespace)::joinEquals(DB::Block const&, DB::Block const&, DB::Block const&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::MergeJoinEqualRange&, unsigned long) @ 0x000000001cc3980d in /usr/bin/clickhouse 16. /build/src/Interpreters/MergeJoin.cpp:941: DB::MergeJoin::allInnerJoin(DB::MergeJoinCursor&, DB::Block const&, DB::MergeJoin::RightBlockInfo&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long&) @ 0x000000001cc394bd in /usr/bin/clickhouse 17. /build/src/Interpreters/MergeJoin.cpp:831: void DB::MergeJoin::joinSortedBlock(DB::Block&, std::shared_ptr&) @ 0x000000001cc3c465 in /usr/bin/clickhouse 18. /build/src/Interpreters/MergeJoin.cpp:726: DB::MergeJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001cc38f5a in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/JoiningTransform.cpp:206: DB::JoiningTransform::readExecute(DB::Chunk&) @ 0x000000001ebd7fc3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/JoiningTransform.cpp:191: DB::JoiningTransform::transform(DB::Chunk&) @ 0x000000001ebd7d2e in /usr/bin/clickhouse 21. /build/src/Processors/Transforms/JoiningTransform.cpp:125: DB::JoiningTransform::work() @ 0x000000001ebd763d in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 2024.10.22 10:20:46.470148 [ 12922 ] {157f328a-f88b-4204-b4dd-70a1895b5ae0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 72.03 MiB (attempt to allocate chunk of 67108864 bytes), maximum: 47.68 MiB.: While executing JoiningTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:0: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::resize<>(unsigned long) @ 0x000000000b1a82c6 in /usr/bin/clickhouse 13. /build/src/Columns/ColumnVector.cpp:492: DB::ColumnVector::insertRangeFrom(DB::IColumn const&, unsigned long, unsigned long) @ 0x000000001d3d576f in /usr/bin/clickhouse 14. /build/src/Interpreters/MergeJoin.cpp:384: DB::(anonymous namespace)::copyLeftRange(DB::Block const&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long, unsigned long) @ 0x000000001cc3afb4 in /usr/bin/clickhouse 15. /build/src/Interpreters/MergeJoin.cpp:435: bool DB::(anonymous namespace)::joinEquals(DB::Block const&, DB::Block const&, DB::Block const&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::MergeJoinEqualRange&, unsigned long) @ 0x000000001cc3980d in /usr/bin/clickhouse 16. /build/src/Interpreters/MergeJoin.cpp:941: DB::MergeJoin::allInnerJoin(DB::MergeJoinCursor&, DB::Block const&, DB::MergeJoin::RightBlockInfo&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long&) @ 0x000000001cc394bd in /usr/bin/clickhouse 17. /build/src/Interpreters/MergeJoin.cpp:831: void DB::MergeJoin::joinSortedBlock(DB::Block&, std::shared_ptr&) @ 0x000000001cc3c465 in /usr/bin/clickhouse 18. /build/src/Interpreters/MergeJoin.cpp:726: DB::MergeJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001cc38f5a in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/JoiningTransform.cpp:206: DB::JoiningTransform::readExecute(DB::Chunk&) @ 0x000000001ebd7fc3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/JoiningTransform.cpp:191: DB::JoiningTransform::transform(DB::Chunk&) @ 0x000000001ebd7d2e in /usr/bin/clickhouse 21. /build/src/Processors/Transforms/JoiningTransform.cpp:125: DB::JoiningTransform::work() @ 0x000000001ebd763d in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 2024.10.22 10:20:57.611217 [ 50113 ] {e539a5cc-9a8b-45f0-aca1-927f5875c5fc} executeQuery: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(nan). (TOO_LARGE_STRING_SIZE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56940) (comment: 01054_random_printable_ascii_ubsan.sh) (in query: SELECT randomPrintableASCII(nan);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241cd8c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:20:57.613068 [ 50113 ] {e539a5cc-9a8b-45f0-aca1-927f5875c5fc} TCPHandler: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(nan). (TOO_LARGE_STRING_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241cd8c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:20:58.941703 [ 12930 ] {e4a6ae09-5712-4a46-b3c1-d5c4b17909db} executeQuery: Code: 264. DB::Exception: Table 'test_e9nf673k.testJoinTable (e42d4810-be9d-4b9f-aee8-542b5bc7fa7e)' has incompatible type of JOIN. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56962) (comment: 01050_engine_join_crash.sql) (in query: SELECT * FROM (SELECT * FROM numbers(10)) js1 INNER JOIN testJoinTable USING number;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:185: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d8cd6 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4cd0 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:58.943135 [ 12930 ] {e4a6ae09-5712-4a46-b3c1-d5c4b17909db} TCPHandler: Code: 264. DB::Exception: Table 'test_e9nf673k.testJoinTable (e42d4810-be9d-4b9f-aee8-542b5bc7fa7e)' has incompatible type of JOIN. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:185: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6d8cd6 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfb4cd0 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfb443c in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe85d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:20:59.452881 [ 50113 ] {6aae26df-0fc5-4957-8a89-ad5102e3cd51} executeQuery: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(inf). (TOO_LARGE_STRING_SIZE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56968) (comment: 01054_random_printable_ascii_ubsan.sh) (in query: SELECT randomPrintableASCII(inf);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241cd8c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:20:59.454531 [ 50113 ] {6aae26df-0fc5-4957-8a89-ad5102e3cd51} TCPHandler: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(inf). (TOO_LARGE_STRING_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241cd8c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:21:02.095325 [ 12930 ] {43baf035-6a39-4f09-b5e5-37a9d706f85a} executeQuery: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(-inf). (TOO_LARGE_STRING_SIZE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57062) (comment: 01054_random_printable_ascii_ubsan.sh) (in query: SELECT randomPrintableASCII(-inf);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241cd8c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:21:02.097974 [ 12930 ] {43baf035-6a39-4f09-b5e5-37a9d706f85a} TCPHandler: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(-inf). (TOO_LARGE_STRING_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241cd8c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:21:04.310452 [ 12919 ] {aa48bde3-de86-4b09-9ba9-b0fe39100450} executeQuery: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(1e300). (TOO_LARGE_STRING_SIZE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57090) (comment: 01054_random_printable_ascii_ubsan.sh) (in query: SELECT randomPrintableASCII(1e300);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241cd8c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:21:04.312315 [ 12919 ] {aa48bde3-de86-4b09-9ba9-b0fe39100450} TCPHandler: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(1e300). (TOO_LARGE_STRING_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241cd8c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:21:06.260865 [ 12918 ] {11b0db0d-a03e-4e96-9bcb-b15395d3b5c3} executeQuery: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(-123.456). (TOO_LARGE_STRING_SIZE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57138) (comment: 01054_random_printable_ascii_ubsan.sh) (in query: SELECT randomPrintableASCII(-123.456);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241cd8c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:21:06.262991 [ 12918 ] {11b0db0d-a03e-4e96-9bcb-b15395d3b5c3} TCPHandler: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(-123.456). (TOO_LARGE_STRING_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241cd8c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:21:08.209264 [ 12918 ] {061f2858-6e71-40f6-85a7-26eebe86e45b} executeQuery: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(-1). (TOO_LARGE_STRING_SIZE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46948) (comment: 01054_random_printable_ascii_ubsan.sh) (in query: SELECT randomPrintableASCII(-1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241cd8c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:21:08.211700 [ 12918 ] {061f2858-6e71-40f6-85a7-26eebe86e45b} TCPHandler: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(-1). (TOO_LARGE_STRING_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241cd8c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:21:08.514539 [ 1139 ] {04fa6d39-f9a5-413e-952a-9c5ae6f2c8c4} executeQuery: Code: 42. DB::Exception: Function arrayZip needs at least one argument; passed 0.: While processing arrayZip(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46934) (comment: 01045_array_zip.sql) (in query: SELECT arrayZip();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x000000000b2361ec in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayZip.cpp:42: DB::FunctionArrayZip::getReturnTypeImpl(std::vector> const&) const @ 0x000000001330d409 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:21:08.516006 [ 1139 ] {04fa6d39-f9a5-413e-952a-9c5ae6f2c8c4} TCPHandler: Code: 42. DB::Exception: Function arrayZip needs at least one argument; passed 0.: While processing arrayZip(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x000000000b2361ec in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayZip.cpp:42: DB::FunctionArrayZip::getReturnTypeImpl(std::vector> const&) const @ 0x000000001330d409 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:21:08.708904 [ 1139 ] {a190950e-9d9e-424d-932d-ca47e77df7fb} executeQuery: Code: 43. DB::Exception: Argument 1 of function arrayZip must be array. Found String instead.: While processing arrayZip('a', 'b', 'c'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46934) (comment: 01045_array_zip.sql) (in query: SELECT arrayZip('a', 'b', 'c');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayZip.cpp:51: DB::FunctionArrayZip::getReturnTypeImpl(std::vector> const&) const @ 0x000000001330d611 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:21:08.710311 [ 1139 ] {a190950e-9d9e-424d-932d-ca47e77df7fb} TCPHandler: Code: 43. DB::Exception: Argument 1 of function arrayZip must be array. Found String instead.: While processing arrayZip('a', 'b', 'c'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayZip.cpp:51: DB::FunctionArrayZip::getReturnTypeImpl(std::vector> const&) const @ 0x000000001330d611 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:21:08.858434 [ 1139 ] {70d93622-5336-4c05-ab41-196833a4ab93} executeQuery: Code: 190. DB::Exception: The argument 1 and argument 2 of function arrayZip have different array sizes: While processing arrayZip(['a', 'b', 'c'], ['d', 'e', 'f', 'd']). (SIZES_OF_ARRAYS_DONT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46934) (comment: 01045_array_zip.sql) (in query: SELECT arrayZip(['a', 'b', 'c'], ['d', 'e', 'f', 'd']);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, String&&) @ 0x000000001150ab0c in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayZip.cpp:84: DB::FunctionArrayZip::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001330d0c1 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:21:08.860030 [ 1139 ] {70d93622-5336-4c05-ab41-196833a4ab93} TCPHandler: Code: 190. DB::Exception: The argument 1 and argument 2 of function arrayZip have different array sizes: While processing arrayZip(['a', 'b', 'c'], ['d', 'e', 'f', 'd']). (SIZES_OF_ARRAYS_DONT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, String&&) @ 0x000000001150ab0c in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayZip.cpp:84: DB::FunctionArrayZip::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001330d0c1 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:21:12.763811 [ 50242 ] {43272f96-a7fb-42b7-8b69-7e0f688852d1} executeQuery: Code: 258. DB::Exception: Different number of columns in UNION ALL elements: c1, c2, c3 and c1, c2 . (UNION_ALL_RESULT_STRUCTURES_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47018) (comment: 01036_union_different_columns.sql) (in query: select 1 as c1, 2 as c2, 3 as c3 union all (select 1 as c1, 2 as c2, 3 as c3 union all select 1 as c1, 2 as c2) -- { serverError 258 } ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:218: DB::InterpreterSelectWithUnionQuery::getCommonHeaderForUnion(std::vector> const&) @ 0x000000001cbd0327 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:191: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcfaaf in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:12.764612 [ 50242 ] {43272f96-a7fb-42b7-8b69-7e0f688852d1} TCPHandler: Code: 258. DB::Exception: Different number of columns in UNION ALL elements: c1, c2, c3 and c1, c2 . (UNION_ALL_RESULT_STRUCTURES_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:218: DB::InterpreterSelectWithUnionQuery::getCommonHeaderForUnion(std::vector> const&) @ 0x000000001cbd0327 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:191: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcfaaf in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:14.610497 [ 50242 ] {6822fb57-85a4-4759-b013-95b2237ba372} executeQuery: Code: 47. DB::Exception: There's no column 'l.c' in table 'l': While processing l.c. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47054) (comment: 01034_unknown_qualified_column_in_join.sql) (in query: SELECT l.c FROM (SELECT 1 AS a, 2 AS b) AS l join (SELECT 2 AS b, 3 AS c) AS r USING b;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&) @ 0x0000000013a0446c in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:128: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d02328c in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:106: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d022fc1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cfb21c0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23a1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cfb2005 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:310: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cfa2d4c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1246 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:21:14.611888 [ 50242 ] {6822fb57-85a4-4759-b013-95b2237ba372} TCPHandler: Code: 47. DB::Exception: There's no column 'l.c' in table 'l': While processing l.c. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&) @ 0x0000000013a0446c in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:128: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d02328c in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:106: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d022fc1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cfb21c0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23a1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cfb2005 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:310: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cfa2d4c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1246 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:21:14.628905 [ 50242 ] {4d58f35e-66b2-4227-8e84-90c4a6b93213} executeQuery: Code: 47. DB::Exception: There's no column 'r.a' in table 'r': While processing r.a. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47054) (comment: 01034_unknown_qualified_column_in_join.sql) (in query: SELECT r.a FROM (SELECT 1 AS a, 2 AS b) AS l join (SELECT 2 AS b, 3 AS c) AS r USING b;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&) @ 0x0000000013a0446c in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:128: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d02328c in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:106: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d022fc1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cfb21c0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23a1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cfb2005 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:310: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cfa2d4c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1246 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:21:14.630165 [ 50242 ] {4d58f35e-66b2-4227-8e84-90c4a6b93213} TCPHandler: Code: 47. DB::Exception: There's no column 'r.a' in table 'r': While processing r.a. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&) @ 0x0000000013a0446c in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:128: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d02328c in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:106: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d022fc1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cfb21c0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23a1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cfb2005 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:310: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cfa2d4c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1246 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:21:22.172089 [ 12925 ] {9ede72c7-ae83-48a5-b5b1-4a91c079e88b} executeQuery: Code: 10. DB::Exception: Column `v2` not found in table test_9lbopcws.mv_extra_columns_dst (e0bab8e7-a470-4963-8c56-9590cd5ccc34). (NOT_FOUND_COLUMN_IN_BLOCK) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58810) (comment: 01019_materialized_view_select_extra_columns.sql) (in query: SELECT * FROM mv_extra_columns_view;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Storages/StorageSnapshot.cpp:142: DB::StorageSnapshot::getSampleBlockForColumns(std::vector> const&) const @ 0x000000001d9ff756 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:255: DB::ReadFromMergeTree::ReadFromMergeTree(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector>, std::vector>, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr, std::shared_ptr, unsigned long, unsigned long, bool, std::shared_ptr, std::equal_to, std::allocator>>>, Poco::Logger*, std::shared_ptr, bool) @ 0x000000001ee9a2b3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000], std::allocator>>, std::vector, std::allocator>>, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&>(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&) @ 0x000000001dfc1798 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1305: DB::MergeTreeDataSelectExecutor::readFromParts(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, std::shared_ptr, bool) const @ 0x000000001dfaebab in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:168: DB::MergeTreeDataSelectExecutor::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, DB::QueryProcessingStage::Enum, std::shared_ptr, std::equal_to, std::allocator>>>, bool) const @ 0x000000001dfab40c in /usr/bin/clickhouse 11. /build/src/Storages/StorageMergeTree.cpp:252: DB::StorageMergeTree::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001e365a5f in /usr/bin/clickhouse 12. /build/src/Storages/StorageMaterializedView.cpp:163: DB::StorageMaterializedView::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d72ed8c in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:22.173058 [ 12925 ] {9ede72c7-ae83-48a5-b5b1-4a91c079e88b} TCPHandler: Code: 10. DB::Exception: Column `v2` not found in table test_9lbopcws.mv_extra_columns_dst (e0bab8e7-a470-4963-8c56-9590cd5ccc34). (NOT_FOUND_COLUMN_IN_BLOCK), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Storages/StorageSnapshot.cpp:142: DB::StorageSnapshot::getSampleBlockForColumns(std::vector> const&) const @ 0x000000001d9ff756 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:255: DB::ReadFromMergeTree::ReadFromMergeTree(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector>, std::vector>, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr, std::shared_ptr, unsigned long, unsigned long, bool, std::shared_ptr, std::equal_to, std::allocator>>>, Poco::Logger*, std::shared_ptr, bool) @ 0x000000001ee9a2b3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000], std::allocator>>, std::vector, std::allocator>>, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&>(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&) @ 0x000000001dfc1798 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1305: DB::MergeTreeDataSelectExecutor::readFromParts(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, std::shared_ptr, bool) const @ 0x000000001dfaebab in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:168: DB::MergeTreeDataSelectExecutor::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, DB::QueryProcessingStage::Enum, std::shared_ptr, std::equal_to, std::allocator>>>, bool) const @ 0x000000001dfab40c in /usr/bin/clickhouse 11. /build/src/Storages/StorageMergeTree.cpp:252: DB::StorageMergeTree::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001e365a5f in /usr/bin/clickhouse 12. /build/src/Storages/StorageMaterializedView.cpp:163: DB::StorageMaterializedView::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d72ed8c in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:25.598531 [ 12925 ] {81122a6e-0828-4317-929c-80c3bbcbbbd2} executeQuery: Code: 403. DB::Exception: Cannot get JOIN keys from JOIN ON section: '(shardNum() AS _shard_num) = shard_num', found keys: [Left keys: [] Right keys [] Condition columns: '', 'equals(shardNum(), shard_num)']. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58840) (comment: 01018_Distributed__shard_num.sql) (in query: SELECT _shard_num, key, b.host_name, b.host_address IN ('::1', '127.0.0.1'), b.port FROM dist_1 a JOIN system.clusters b ON _shard_num = b.shard_num WHERE b.cluster = 'test_cluster_two_shards_localhost';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:658: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa569d in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:356: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaae49 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:198: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaaca6 in /usr/bin/clickhouse 12. /build/src/Storages/StorageDistributed.cpp:748: DB::StorageDistributed::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d65d1b4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:25.599886 [ 12925 ] {81122a6e-0828-4317-929c-80c3bbcbbbd2} TCPHandler: Code: 403. DB::Exception: Cannot get JOIN keys from JOIN ON section: '(shardNum() AS _shard_num) = shard_num', found keys: [Left keys: [] Right keys [] Condition columns: '', 'equals(shardNum(), shard_num)']. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:658: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa569d in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:356: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaae49 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:198: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaaca6 in /usr/bin/clickhouse 12. /build/src/Storages/StorageDistributed.cpp:748: DB::StorageDistributed::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d65d1b4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:25.941166 [ 12917 ] {c703f49e-af26-4cf1-b33d-3561ed413c6d} executeQuery: Code: 47. DB::Exception: There's no column 'a._shard_num' in table 'a': While processing a._shard_num: While processing ALL INNER JOIN ... ON a._shard_num = b.shard_num. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45402) (comment: 01018_Distributed__shard_num.sql) (in query: SELECT shardNum() AS `_shard_num`, `a`.`key`, `b`.`host_name`, `b`.`host_address` IN ('::1', '127.0.0.1'), `b`.`port` FROM `test_celcerye`.`mem1` AS `a` ALL INNER JOIN `system`.`clusters` AS `b` ON `a`.`_shard_num` = `b`.`shard_num` WHERE `b`.`cluster` = 'test_cluster_two_shards_localhost'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&) @ 0x0000000013a0446c in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:128: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d02328c in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:106: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d022fc1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cfb21c0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23a1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cfb2005 in /usr/bin/clickhouse 18. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:178: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTTableJoin&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d0234bd in /usr/bin/clickhouse 19. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:108: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d022ff7 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cfb21c0 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23a1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 2024.10.22 10:21:25.942516 [ 12917 ] {c703f49e-af26-4cf1-b33d-3561ed413c6d} TCPHandler: Code: 47. DB::Exception: There's no column 'a._shard_num' in table 'a': While processing a._shard_num: While processing ALL INNER JOIN ... ON a._shard_num = b.shard_num. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&) @ 0x0000000013a0446c in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:128: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d02328c in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:106: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d022fc1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cfb21c0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23a1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cfb2005 in /usr/bin/clickhouse 18. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:178: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTTableJoin&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d0234bd in /usr/bin/clickhouse 19. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:108: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d022ff7 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cfb21c0 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23a1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 2024.10.22 10:21:26.024035 [ 12925 ] {bf589e91-e80f-416c-a610-6d65fc9756b9} executeQuery: Code: 47. DB::Exception: Received from localhost:9000. DB::Exception: There's no column 'a._shard_num' in table 'a': While processing a._shard_num: While processing ALL INNER JOIN ... ON a._shard_num = b.shard_num. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&) @ 0x0000000013a0446c in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:128: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d02328c in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:106: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d022fc1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cfb21c0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23a1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cfb2005 in /usr/bin/clickhouse 18. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:178: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTTableJoin&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d0234bd in /usr/bin/clickhouse 19. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:108: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d022ff7 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cfb21c0 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23a1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse : While executing Remote. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58840) (comment: 01018_Distributed__shard_num.sql) (in query: -- the same with JOIN, just in case SELECT a._shard_num, a.key, b.host_name, b.host_address IN ('::1', '127.0.0.1'), b.port FROM dist_1 a JOIN system.clusters b ON a._shard_num = b.shard_num WHERE b.cluster = 'test_cluster_two_shards_localhost';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b2043aa in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:80: DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000b204355 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:1364: DB::readException(DB::ReadBuffer&, String const&, bool) @ 0x0000000013986ae2 in /usr/bin/clickhouse 7. /build/src/Client/Connection.cpp:1150: DB::Connection::receiveException() const @ 0x000000001e4ca3b9 in /usr/bin/clickhouse 8. /build/src/Client/Connection.cpp:987: DB::Connection::receivePacket() @ 0x000000001e4d09b1 in /usr/bin/clickhouse 9. /build/src/Client/PacketReceiver.cpp:66: DB::PacketReceiver::Task::run(std::function, std::function) @ 0x000000001e53b7fc in /usr/bin/clickhouse 10. /build/src/Common/AsyncTaskExecutor.cpp:88: DB::AsyncTaskExecutor::Routine::operator()(std::function) @ 0x000000001b8a1ba1 in /usr/bin/clickhouse 11. /build/src/Common/Fiber.h:70: Fiber::RoutineImpl::operator()(boost::context::fiber&&) @ 0x000000001b8a1ab8 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval&>()(std::declval())) std::__invoke[abi:v15000]&, boost::context::fiber>(Fiber::RoutineImpl&, boost::context::fiber&&) @ 0x000000001b8a1a48 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:531: std::invoke_result&, boost::context::fiber>::type std::invoke&, boost::context::fiber>(Fiber::RoutineImpl&, boost::context::fiber&&) @ 0x000000001b8a1a08 in /usr/bin/clickhouse 14. /build/contrib/boost/boost/context/fiber_fcontext.hpp:157: boost::context::detail::fiber_record>::run(void*) @ 0x000000001b8a193e in /usr/bin/clickhouse 15. /build/contrib/boost/boost/context/fiber_fcontext.hpp:97: void boost::context::detail::fiber_entry>>(boost::context::detail::transfer_t) @ 0x000000001b8a17bd in /usr/bin/clickhouse 2024.10.22 10:21:26.186876 [ 12918 ] {953ac174-bb69-4aef-be65-e867f401e770} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 4.01 MiB (attempt to allocate chunk of 1050624 bytes), maximum: 3.81 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58866) (comment: 01017_uniqCombined_memory_usage.sql) (in query: SELECT sum(u) FROM (SELECT intDiv(number, 8192) AS k, uniqCombined(number % 8192) u FROM numbers(8192 * 100) GROUP BY k);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x000000001705bd8e in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIj12HashSetTableIj13HashTableCellIj11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu13ELDu17ES3_j24HyperLogLogBiasEstimatorINS_20UniqCombinedBiasDataEEL15HyperLogLogMode3EdE6insertEj @ 0x0000000017265200 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedItLDu17EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x00000000172689fc in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedItLDu17EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x0000000017268dcb in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c2324d6 in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0db327 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01ff05 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 10:21:26.186861 [ 12925 ] {bf589e91-e80f-416c-a610-6d65fc9756b9} TCPHandler: Code: 47. DB::Exception: Received from localhost:9000. DB::Exception: There's no column 'a._shard_num' in table 'a': While processing a._shard_num: While processing ALL INNER JOIN ... ON a._shard_num = b.shard_num. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&) @ 0x0000000013a0446c in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:128: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d02328c in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:106: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d022fc1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cfb21c0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23a1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cfb2005 in /usr/bin/clickhouse 18. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:178: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTTableJoin&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d0234bd in /usr/bin/clickhouse 19. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:108: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d022ff7 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cfb21c0 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23a1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cfb2446 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cfb23ae in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cfb214a in /usr/bin/clickhouse : While executing Remote. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b2043aa in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:80: DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000b204355 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:1364: DB::readException(DB::ReadBuffer&, String const&, bool) @ 0x0000000013986ae2 in /usr/bin/clickhouse 7. /build/src/Client/Connection.cpp:1150: DB::Connection::receiveException() const @ 0x000000001e4ca3b9 in /usr/bin/clickhouse 8. /build/src/Client/Connection.cpp:987: DB::Connection::receivePacket() @ 0x000000001e4d09b1 in /usr/bin/clickhouse 9. /build/src/Client/PacketReceiver.cpp:66: DB::PacketReceiver::Task::run(std::function, std::function) @ 0x000000001e53b7fc in /usr/bin/clickhouse 10. /build/src/Common/AsyncTaskExecutor.cpp:88: DB::AsyncTaskExecutor::Routine::operator()(std::function) @ 0x000000001b8a1ba1 in /usr/bin/clickhouse 11. /build/src/Common/Fiber.h:70: Fiber::RoutineImpl::operator()(boost::context::fiber&&) @ 0x000000001b8a1ab8 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval&>()(std::declval())) std::__invoke[abi:v15000]&, boost::context::fiber>(Fiber::RoutineImpl&, boost::context::fiber&&) @ 0x000000001b8a1a48 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:531: std::invoke_result&, boost::context::fiber>::type std::invoke&, boost::context::fiber>(Fiber::RoutineImpl&, boost::context::fiber&&) @ 0x000000001b8a1a08 in /usr/bin/clickhouse 14. /build/contrib/boost/boost/context/fiber_fcontext.hpp:157: boost::context::detail::fiber_record>::run(void*) @ 0x000000001b8a193e in /usr/bin/clickhouse 15. /build/contrib/boost/boost/context/fiber_fcontext.hpp:97: void boost::context::detail::fiber_entry>>(boost::context::detail::transfer_t) @ 0x000000001b8a17bd in /usr/bin/clickhouse 2024.10.22 10:21:26.193318 [ 12918 ] {953ac174-bb69-4aef-be65-e867f401e770} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 4.01 MiB (attempt to allocate chunk of 1050624 bytes), maximum: 3.81 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x000000001705bd8e in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIj12HashSetTableIj13HashTableCellIj11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu13ELDu17ES3_j24HyperLogLogBiasEstimatorINS_20UniqCombinedBiasDataEEL15HyperLogLogMode3EdE6insertEj @ 0x0000000017265200 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedItLDu17EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x00000000172689fc in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedItLDu17EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x0000000017268dcb in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c2324d6 in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0db327 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01ff05 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 10:21:26.863760 [ 12918 ] {1a5b1173-12e8-464d-a8fd-4ca8bf26102c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 4.02 MiB (attempt to allocate chunk of 1050624 bytes), maximum: 3.81 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58866) (comment: 01017_uniqCombined_memory_usage.sql) (in query: SELECT sum(u) FROM (SELECT intDiv(number, 4096) AS k, uniqCombined(reinterpretAsString(number % 4096)) u FROM numbers(4096 * 100) GROUP BY k);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x000000001702450e in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIm12HashSetTableIm13HashTableCellIm11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu12ELDu17ES3_m24HyperLogLogBiasEstimatorINS_20UniqCombinedBiasDataEEL15HyperLogLogMode3EdE6insertEm @ 0x0000000017230740 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEELDu17EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x0000000017282b1b in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELDu17EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x0000000017282eeb in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c2324d6 in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0db327 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01ff05 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 10:21:26.869940 [ 12918 ] {1a5b1173-12e8-464d-a8fd-4ca8bf26102c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 4.02 MiB (attempt to allocate chunk of 1050624 bytes), maximum: 3.81 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x000000001702450e in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIm12HashSetTableIm13HashTableCellIm11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu12ELDu17ES3_m24HyperLogLogBiasEstimatorINS_20UniqCombinedBiasDataEEL15HyperLogLogMode3EdE6insertEm @ 0x0000000017230740 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEELDu17EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x0000000017282b1b in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELDu17EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x0000000017282eeb in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c2324d6 in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0db327 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01ff05 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 10:21:27.423457 [ 12918 ] {d2b615d6-8f19-45f4-8451-d9378dc203be} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 2.00 MiB (attempt to allocate chunk of 1049376 bytes), maximum: 1.91 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58866) (comment: 01017_uniqCombined_memory_usage.sql) (in query: SELECT sum(u) FROM (SELECT intDiv(number, 4096) AS k, uniqCombined(16)(number % 4096) u FROM numbers(4096 * 100) GROUP BY k);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001387fe8e in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:199: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881530 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x000000001705bd8e in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIj12HashSetTableIj13HashTableCellIj11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu12ELDu16ES3_j20TrivialBiasEstimatorL15HyperLogLogMode3EdE6insertEj @ 0x00000000171fc6e0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedItLDu16EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x00000000171ffe3c in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedItLDu16EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x000000001720020b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c2324d6 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0db327 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01ff05 in /usr/bin/clickhouse 19. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 21. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 2024.10.22 10:21:27.429314 [ 12918 ] {d2b615d6-8f19-45f4-8451-d9378dc203be} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 2.00 MiB (attempt to allocate chunk of 1049376 bytes), maximum: 1.91 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001387fe8e in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:199: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881530 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x000000001705bd8e in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIj12HashSetTableIj13HashTableCellIj11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu12ELDu16ES3_j20TrivialBiasEstimatorL15HyperLogLogMode3EdE6insertEj @ 0x00000000171fc6e0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedItLDu16EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x00000000171ffe3c in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedItLDu16EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x000000001720020b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c2324d6 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0db327 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01ff05 in /usr/bin/clickhouse 19. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 21. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 2024.10.22 10:21:27.873036 [ 12918 ] {25677922-72c7-4f77-9bd1-75833ed5a244} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 2.01 MiB (attempt to allocate chunk of 1054768 bytes), maximum: 1.91 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58866) (comment: 01017_uniqCombined_memory_usage.sql) (in query: SELECT sum(u) FROM (SELECT intDiv(number, 2048) AS k, uniqCombined(16)(reinterpretAsString(number % 2048)) u FROM numbers(2048 * 100) GROUP BY k);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001387fe8e in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:199: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881530 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x000000001702450e in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIm12HashSetTableIm13HashTableCellIm11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu11ELDu16ES3_m20TrivialBiasEstimatorL15HyperLogLogMode3EdE6insertEm @ 0x00000000171c83a0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEELDu16EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x0000000017219f5b in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELDu16EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x000000001721a32b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c2324d6 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0db327 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01ff05 in /usr/bin/clickhouse 19. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 21. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 2024.10.22 10:21:27.878913 [ 12918 ] {25677922-72c7-4f77-9bd1-75833ed5a244} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 2.01 MiB (attempt to allocate chunk of 1054768 bytes), maximum: 1.91 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001387fe8e in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:199: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881530 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x000000001702450e in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIm12HashSetTableIm13HashTableCellIm11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu11ELDu16ES3_m20TrivialBiasEstimatorL15HyperLogLogMode3EdE6insertEm @ 0x00000000171c83a0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEELDu16EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x0000000017219f5b in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELDu16EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x000000001721a32b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c2324d6 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0db327 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01ff05 in /usr/bin/clickhouse 19. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 21. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 2024.10.22 10:21:28.610275 [ 12918 ] {90714a41-5952-409a-9343-5b91d659e3c7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 8.15 MiB (attempt to allocate chunk of 1058176 bytes), maximum: 7.63 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58866) (comment: 01017_uniqCombined_memory_usage.sql) (in query: SELECT sum(u) FROM (SELECT intDiv(number, 16384) AS k, uniqCombined(18)(number % 16384) u FROM numbers(16384 * 100) GROUP BY k);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x000000001705bd8e in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIj12HashSetTableIj13HashTableCellIj11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu14ELDu18ES3_j20TrivialBiasEstimatorL15HyperLogLogMode3EdE6insertEj @ 0x00000000172cd640 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedItLDu18EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x00000000172d0d9c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedItLDu18EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x00000000172d116b in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c2324d6 in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0db327 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01ff05 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 10:21:28.621840 [ 12918 ] {90714a41-5952-409a-9343-5b91d659e3c7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 8.15 MiB (attempt to allocate chunk of 1058176 bytes), maximum: 7.63 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x000000001705bd8e in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIj12HashSetTableIj13HashTableCellIj11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu14ELDu18ES3_j20TrivialBiasEstimatorL15HyperLogLogMode3EdE6insertEj @ 0x00000000172cd640 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedItLDu18EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x00000000172d0d9c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedItLDu18EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x00000000172d116b in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c2324d6 in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0db327 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01ff05 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 10:21:29.368193 [ 50242 ] {cdd77386-3e7a-4be1-bad8-455985c8b91f} executeQuery: Code: 48. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43448) (comment: 01013_totals_without_aggregation.sql) (in query: SELECT 1 AS n WITH TOTALS;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [81]) @ 0x000000001279fade in /usr/bin/clickhouse 6. /build/src/Analyzer/ValidationUtils.cpp:276: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001c99ec86 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7140: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c9204fc in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 10. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 24. ? @ 0x00007f1a0debbac3 in ? 25. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:29.369458 [ 50242 ] {cdd77386-3e7a-4be1-bad8-455985c8b91f} TCPHandler: Code: 48. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [81]) @ 0x000000001279fade in /usr/bin/clickhouse 6. /build/src/Analyzer/ValidationUtils.cpp:276: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001c99ec86 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7140: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c9204fc in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 10. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 24. ? @ 0x00007f1a0debbac3 in ? 25. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:29.379126 [ 50242 ] {b1af5022-0511-42b4-9b5b-b5cf4dda5126} executeQuery: Code: 48. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43448) (comment: 01013_totals_without_aggregation.sql) (in query: SELECT 1 AS n WITH ROLLUP;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [81]) @ 0x000000001279fade in /usr/bin/clickhouse 6. /build/src/Analyzer/ValidationUtils.cpp:276: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001c99ec86 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7140: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c9204fc in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 10. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 24. ? @ 0x00007f1a0debbac3 in ? 25. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:29.380150 [ 50242 ] {b1af5022-0511-42b4-9b5b-b5cf4dda5126} TCPHandler: Code: 48. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [81]) @ 0x000000001279fade in /usr/bin/clickhouse 6. /build/src/Analyzer/ValidationUtils.cpp:276: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001c99ec86 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7140: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c9204fc in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 10. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 24. ? @ 0x00007f1a0debbac3 in ? 25. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:29.387680 [ 50242 ] {6a0c9d33-c783-4799-be8a-8d9e706a92bf} executeQuery: Code: 48. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43448) (comment: 01013_totals_without_aggregation.sql) (in query: SELECT 1 AS n WITH CUBE;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [81]) @ 0x000000001279fade in /usr/bin/clickhouse 6. /build/src/Analyzer/ValidationUtils.cpp:276: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001c99ec86 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7140: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c9204fc in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 10. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 24. ? @ 0x00007f1a0debbac3 in ? 25. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:29.388778 [ 50242 ] {6a0c9d33-c783-4799-be8a-8d9e706a92bf} TCPHandler: Code: 48. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [81]) @ 0x000000001279fade in /usr/bin/clickhouse 6. /build/src/Analyzer/ValidationUtils.cpp:276: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001c99ec86 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7140: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c9204fc in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 10. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 24. ? @ 0x00007f1a0debbac3 in ? 25. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:29.605748 [ 12918 ] {9e6a0651-72ad-47f6-be8f-47837c30e3d8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 8.02 MiB (attempt to allocate chunk of 1049600 bytes), maximum: 7.63 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58866) (comment: 01017_uniqCombined_memory_usage.sql) (in query: SELECT sum(u) FROM (SELECT intDiv(number, 8192) AS k, uniqCombined(18)(reinterpretAsString(number % 8192)) u FROM numbers(8192 * 100) GROUP BY k);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x000000001702450e in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIm12HashSetTableIm13HashTableCellIm11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu13ELDu18ES3_m20TrivialBiasEstimatorL15HyperLogLogMode3EdE6insertEm @ 0x0000000017299300 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEELDu18EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x00000000172eaebb in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELDu18EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x00000000172eb28b in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c2324d6 in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0db327 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01ff05 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 10:21:29.615642 [ 12918 ] {9e6a0651-72ad-47f6-be8f-47837c30e3d8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 8.02 MiB (attempt to allocate chunk of 1049600 bytes), maximum: 7.63 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x000000001702450e in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIm12HashSetTableIm13HashTableCellIm11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu13ELDu18ES3_m20TrivialBiasEstimatorL15HyperLogLogMode3EdE6insertEm @ 0x0000000017299300 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEELDu18EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x00000000172eaebb in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELDu18EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x00000000172eb28b in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c2324d6 in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0db327 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01ff05 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 10:21:31.295759 [ 12930 ] {5fdf7489-f2d3-4b64-960d-9523ebb69efd} executeQuery: Code: 36. DB::Exception: Engine Distributed doesn't support skipping indices. Currently only the following engines have support for the feature: [ReplicatedVersionedCollapsingMergeTree, ReplicatedSummingMergeTree, MergeTree, ReplicatedReplacingMergeTree, VersionedCollapsingMergeTree, ReplacingMergeTree, ReplicatedAggregatingMergeTree, ReplicatedMergeTree, ReplicatedCollapsingMergeTree, ReplicatedGraphiteMergeTree, SummingMergeTree, GraphiteMergeTree, CollapsingMergeTree, AggregatingMergeTree]. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43498) (comment: 01011_test_create_as_skip_indices.sql) (in query: CREATE TABLE dist (key int, INDEX i1 key TYPE minmax GRANULARITY 1) Engine=Distributed(test_shard_localhost, currentDatabase(), 'foo');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&, String&) @ 0x0000000013a02528 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFactory.cpp:171: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const::$_0::operator()(String, std::function) const @ 0x000000001d69d899 in /usr/bin/clickhouse 7. /build/src/Storages/StorageFactory.cpp:193: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69cb70 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:31.296715 [ 12930 ] {5fdf7489-f2d3-4b64-960d-9523ebb69efd} TCPHandler: Code: 36. DB::Exception: Engine Distributed doesn't support skipping indices. Currently only the following engines have support for the feature: [ReplicatedVersionedCollapsingMergeTree, ReplicatedSummingMergeTree, MergeTree, ReplicatedReplacingMergeTree, VersionedCollapsingMergeTree, ReplacingMergeTree, ReplicatedAggregatingMergeTree, ReplicatedMergeTree, ReplicatedCollapsingMergeTree, ReplicatedGraphiteMergeTree, SummingMergeTree, GraphiteMergeTree, CollapsingMergeTree, AggregatingMergeTree]. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&, String&) @ 0x0000000013a02528 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFactory.cpp:171: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const::$_0::operator()(String, std::function) const @ 0x000000001d69d899 in /usr/bin/clickhouse 7. /build/src/Storages/StorageFactory.cpp:193: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69cb70 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:32.110931 [ 50242 ] {b0f6d356-b8db-46e9-b78f-bae1e77f1b13} executeQuery: Code: 10. DB::Exception: Not found column s in block. There are only columns: count(). (NOT_FOUND_COLUMN_IN_BLOCK) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43522) (comment: 01010_pm_join_all_join_bug.sql) (in query: SELECT count() FROM ( SELECT [1], count(1) ) AS t1 ALL RIGHT JOIN ( SELECT number AS s FROM numbers(2) ) AS t2 USING (s);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Core/Block.cpp:315: DB::Block::getByName(String const&, bool) const @ 0x000000001b3e782e in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:437: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, DB::Block const&, std::vector> const&) @ 0x000000001cc1c3e7 in /usr/bin/clickhouse 8. /build/src/Interpreters/MergeJoin.cpp:686: DB::MergeJoin::checkTypesOfKeys(DB::Block const&) const @ 0x000000001cc38bd0 in /usr/bin/clickhouse 9. /build/src/Processors/Transforms/JoiningTransform.cpp:19: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd37dc in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:32.112089 [ 50242 ] {b0f6d356-b8db-46e9-b78f-bae1e77f1b13} TCPHandler: Code: 10. DB::Exception: Not found column s in block. There are only columns: count(). (NOT_FOUND_COLUMN_IN_BLOCK), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Core/Block.cpp:315: DB::Block::getByName(String const&, bool) const @ 0x000000001b3e782e in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:437: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, DB::Block const&, std::vector> const&) @ 0x000000001cc1c3e7 in /usr/bin/clickhouse 8. /build/src/Interpreters/MergeJoin.cpp:686: DB::MergeJoin::checkTypesOfKeys(DB::Block const&) const @ 0x000000001cc38bd0 in /usr/bin/clickhouse 9. /build/src/Processors/Transforms/JoiningTransform.cpp:19: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001ebd37dc in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001ee68bfd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cacd374 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9746 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:36.787417 [ 12919 ] {18f13b72-2ebd-462b-be63-456809885c0d} executeQuery: Code: 472. DB::Exception: Setting 'index_granularity' is readonly for storage 'ReplicatedMergeTree'. (READONLY_SETTING) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43658) (comment: 00980_zookeeper_merge_tree_alter_settings.sql) (in query: ALTER TABLE replicated_table_for_alter1 MODIFY SETTING index_granularity = 4096;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3433: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9645d in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:36.788070 [ 12919 ] {18f13b72-2ebd-462b-be63-456809885c0d} TCPHandler: Code: 472. DB::Exception: Setting 'index_granularity' is readonly for storage 'ReplicatedMergeTree'. (READONLY_SETTING), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3433: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9645d in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:37.170302 [ 50113 ] {fedd4da2-169d-487f-8369-2e6dec5cb133} executeQuery: Code: 306. DB::Exception: Stack size too large. Stack address: 0x7f171612f000, frame address: 0x7f171652eec0, stack size: 4194624, maximum stack size: 8388608. (TOO_DEEP_RECURSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43638) (comment: 00986_materialized_view_stack_overflow.sql) (in query: insert into test1 values ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, void*&, void const*&, unsigned long&, unsigned long&) @ 0x0000000013969224 in /usr/bin/clickhouse 6. /build/src/Common/checkStackSize.cpp:121: checkStackSize() @ 0x0000000013968d9c in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:43: void DB::InDepthNodeVisitor>, &DB::NeedChild::all(std::shared_ptr const&, std::shared_ptr const&), std::shared_ptr>, true, false, std::shared_ptr>::visitImpl(std::shared_ptr&) @ 0x000000001cfabb3d in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>, &DB::NeedChild::all(std::shared_ptr const&, std::shared_ptr const&), std::shared_ptr>, true, false, std::shared_ptr>::visit(std::shared_ptr&) @ 0x000000001cfa6945 in /usr/bin/clickhouse 9. /build/src/Interpreters/TreeRewriter.cpp:1366: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cfa2ff2 in /usr/bin/clickhouse 10. /build/src/Interpreters/TreeRewriter.cpp:1212: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1507 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:331: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece3ba0 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca841d2 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:344: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece3e54 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca841d2 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:344: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece3e54 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca841d2 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:344: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece3e54 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca841d2 in /usr/bin/clickhouse 26. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:344: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece3e54 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca841d2 in /usr/bin/clickhouse 29. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:344: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece3e54 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca841d2 in /usr/bin/clickhouse 2024.10.22 10:21:37.171568 [ 50113 ] {fedd4da2-169d-487f-8369-2e6dec5cb133} TCPHandler: Code: 306. DB::Exception: Stack size too large. Stack address: 0x7f171612f000, frame address: 0x7f171652eec0, stack size: 4194624, maximum stack size: 8388608. (TOO_DEEP_RECURSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, void*&, void const*&, unsigned long&, unsigned long&) @ 0x0000000013969224 in /usr/bin/clickhouse 6. /build/src/Common/checkStackSize.cpp:121: checkStackSize() @ 0x0000000013968d9c in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:43: void DB::InDepthNodeVisitor>, &DB::NeedChild::all(std::shared_ptr const&, std::shared_ptr const&), std::shared_ptr>, true, false, std::shared_ptr>::visitImpl(std::shared_ptr&) @ 0x000000001cfabb3d in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>, &DB::NeedChild::all(std::shared_ptr const&, std::shared_ptr const&), std::shared_ptr>, true, false, std::shared_ptr>::visit(std::shared_ptr&) @ 0x000000001cfa6945 in /usr/bin/clickhouse 9. /build/src/Interpreters/TreeRewriter.cpp:1366: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cfa2ff2 in /usr/bin/clickhouse 10. /build/src/Interpreters/TreeRewriter.cpp:1212: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1507 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:331: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece3ba0 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca841d2 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:344: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece3e54 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca841d2 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:344: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece3e54 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca841d2 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:344: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece3e54 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca841d2 in /usr/bin/clickhouse 26. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:344: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece3e54 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca841d2 in /usr/bin/clickhouse 29. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:344: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece3e54 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca841d2 in /usr/bin/clickhouse 2024.10.22 10:21:37.358366 [ 12919 ] {1e52b031-2f91-4f9c-9877-d178ff029c21} executeQuery: Code: 252. DB::Exception: Too many parts (2 with average size of 327.00 B) in table 'test_wjwpqh99.replicated_table_for_alter2 (1d12222c-3c08-4212-9ef9-3b76f7bb1ce9)'. Merges are processing significantly slower than inserts. (TOO_MANY_PARTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43658) (comment: 00980_zookeeper_merge_tree_alter_settings.sql) (in query: INSERT INTO replicated_table_for_alter2 VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001def7d88 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001deaa284 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:1081: DB::ReplicatedMergeTreeSinkImpl::onStart() @ 0x000000001e3229b6 in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001ebcd539 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd515 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd4f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd4d5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd49d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcc8b5 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:93: DB::PushingPipelineExecutor::start() @ 0x000000001e6ff916 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:841: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e65144a in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:21:37.359342 [ 12919 ] {1e52b031-2f91-4f9c-9877-d178ff029c21} TCPHandler: Code: 252. DB::Exception: Too many parts (2 with average size of 327.00 B) in table 'test_wjwpqh99.replicated_table_for_alter2 (1d12222c-3c08-4212-9ef9-3b76f7bb1ce9)'. Merges are processing significantly slower than inserts. (TOO_MANY_PARTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001def7d88 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001deaa284 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:1081: DB::ReplicatedMergeTreeSinkImpl::onStart() @ 0x000000001e3229b6 in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001ebcd539 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd515 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd4f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd4d5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd49d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcc8b5 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:93: DB::PushingPipelineExecutor::start() @ 0x000000001e6ff916 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:841: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e65144a in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 31. ? @ 0x00007f1a0debbac3 in ? 2024.10.22 10:21:37.988497 [ 12919 ] {2761fb41-cbe0-4868-8499-7b8f311f2748} executeQuery: Code: 472. DB::Exception: Setting 'index_granularity' is readonly for storage 'ReplicatedMergeTree'. (READONLY_SETTING) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43658) (comment: 00980_zookeeper_merge_tree_alter_settings.sql) (in query: ALTER TABLE replicated_table_for_reset_setting1 MODIFY SETTING index_granularity = 4096;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3433: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9645d in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:37.989041 [ 12919 ] {2761fb41-cbe0-4868-8499-7b8f311f2748} TCPHandler: Code: 472. DB::Exception: Setting 'index_granularity' is readonly for storage 'ReplicatedMergeTree'. (READONLY_SETTING), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3433: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9645d in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:38.332756 [ 12919 ] {d58f37ab-060d-4d0a-9c02-35ff4e671377} executeQuery: Code: 36. DB::Exception: Cannot reset setting 'unknown_setting' because it doesn't exist for MergeTree engines family. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43658) (comment: 00980_zookeeper_merge_tree_alter_settings.sql) (in query: -- don't execute alter with incorrect setting ALTER TABLE replicated_table_for_reset_setting1 RESET SETTING check_delay_period, unknown_setting;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3347: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de953c7 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:38.333729 [ 12919 ] {d58f37ab-060d-4d0a-9c02-35ff4e671377} TCPHandler: Code: 36. DB::Exception: Cannot reset setting 'unknown_setting' because it doesn't exist for MergeTree engines family. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3347: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de953c7 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:40.101642 [ 50113 ] {c1eca7ec-5d0b-4eb5-85c9-fa6a43c422b6} executeQuery: Code: 349. DB::Exception: Cannot convert NULL value to non-Nullable type: While processing CAST(CAST(NULL, 'LowCardinality(Nullable(String))'), 'String'). (CANNOT_INSERT_NULL_IN_ORDINARY_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49134) (comment: 00974_low_cardinality_cast.sql) (in query: SELECT CAST(CAST(Null AS LowCardinality(Nullable(String))) AS String);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [47]) @ 0x000000000b5b9e5e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:3875: DB::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b8efdeb in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8efae6 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8efa80 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8efa20 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b8ef9cb in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:21:40.102707 [ 50113 ] {c1eca7ec-5d0b-4eb5-85c9-fa6a43c422b6} TCPHandler: Code: 349. DB::Exception: Cannot convert NULL value to non-Nullable type: While processing CAST(CAST(NULL, 'LowCardinality(Nullable(String))'), 'String'). (CANNOT_INSERT_NULL_IN_ORDINARY_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [47]) @ 0x000000000b5b9e5e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:3875: DB::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b8efdeb in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8efae6 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8efa80 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8efa20 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b8ef9cb in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:21:40.563727 [ 50113 ] {4f562372-7d03-48f7-b5c2-66736a55b317} executeQuery: Code: 349. DB::Exception: Cannot convert NULL value to non-Nullable type: While processing CAST(CAST(NULL, 'Nullable(String)'), 'String'). (CANNOT_INSERT_NULL_IN_ORDINARY_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49134) (comment: 00974_low_cardinality_cast.sql) (in query: SELECT CAST(CAST(Null AS Nullable(String)) AS String);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [47]) @ 0x000000000b5b9e5e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:3980: DB::FunctionCast::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b8ef444 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8ef2c6 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8ef260 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8ef200 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b8ef1ab in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:21:40.564745 [ 50113 ] {4f562372-7d03-48f7-b5c2-66736a55b317} TCPHandler: Code: 349. DB::Exception: Cannot convert NULL value to non-Nullable type: While processing CAST(CAST(NULL, 'Nullable(String)'), 'String'). (CANNOT_INSERT_NULL_IN_ORDINARY_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [47]) @ 0x000000000b5b9e5e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:3980: DB::FunctionCast::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b8ef444 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8ef2c6 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8ef260 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8ef200 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b8ef1ab in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:21:50.615190 [ 12922 ] {b3e19db1-91f7-4d13-8816-b021c769bc0d} executeQuery: Code: 51. DB::Exception: Empty list of columns in SELECT query. (EMPTY_LIST_OF_COLUMNS_QUERIED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39668) (comment: 00969_columns_clause.sql) (in query: SELECT COLUMNS('x') FROM numbers(10) WHERE number > 5;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [38]) @ 0x000000000f82675e in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:314: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cfa2df9 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1246 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:50.616144 [ 12922 ] {b3e19db1-91f7-4d13-8816-b021c769bc0d} TCPHandler: Code: 51. DB::Exception: Empty list of columns in SELECT query. (EMPTY_LIST_OF_COLUMNS_QUERIED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [38]) @ 0x000000000f82675e in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:314: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cfa2df9 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1246 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:51.201965 [ 12922 ] {95c81273-c018-43ed-94be-44979db37cc1} executeQuery: Code: 42. DB::Exception: Number of arguments for function plus doesn't match: passed 0, should be 2: While processing plus(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39668) (comment: 00969_columns_clause.sql) (in query: SELECT COLUMNS('n') + COLUMNS('u') FROM (SELECT 1 AS a, 2 AS b);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:21:51.250943 [ 12922 ] {95c81273-c018-43ed-94be-44979db37cc1} TCPHandler: Code: 42. DB::Exception: Number of arguments for function plus doesn't match: passed 0, should be 2: While processing plus(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:21:51.529655 [ 12922 ] {bbe603ee-9978-45b7-bda3-986a93249a56} executeQuery: Code: 42. DB::Exception: Number of arguments for function plus doesn't match: passed 3, should be 2: While processing plus(a, b, b). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39668) (comment: 00969_columns_clause.sql) (in query: SELECT COLUMNS('a|b') + COLUMNS('b') FROM (SELECT 1 AS a, 2 AS b);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:21:51.532276 [ 12922 ] {bbe603ee-9978-45b7-bda3-986a93249a56} TCPHandler: Code: 42. DB::Exception: Number of arguments for function plus doesn't match: passed 3, should be 2: While processing plus(a, b, b). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:21:53.258820 [ 12925 ] {e8ce6744-a2b9-4235-92fe-22c92a7a3a89} executeQuery: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:39872). (NETWORK_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39872) (comment: 01004_rename_deadlock.sh) (in query: SELECT * FROM test1 UNION ALL SELECT * FROM test2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:1090: DB::TCPHandler::sendProfileInfo(DB::ProfileInfo const&) @ 0x000000001e652f0d in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:966: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f9dc in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:53.264353 [ 12925 ] {e8ce6744-a2b9-4235-92fe-22c92a7a3a89} TCPHandler: Can't send logs to client: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:39872). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2073: DB::TCPHandler::sendLogData(DB::Block const&) @ 0x000000001e659e55 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:2150: DB::TCPHandler::sendLogs() @ 0x000000001e6504ff in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:672: DB::TCPHandler::runImpl() @ 0x000000001e648af7 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:21:53.264928 [ 12925 ] {e8ce6744-a2b9-4235-92fe-22c92a7a3a89} TCPHandler: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:39872). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:1090: DB::TCPHandler::sendProfileInfo(DB::ProfileInfo const&) @ 0x000000001e652f0d in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:966: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f9dc in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:21:53.265817 [ 12925 ] {e8ce6744-a2b9-4235-92fe-22c92a7a3a89} TCPHandler: Client has gone away. 2024.10.22 10:21:56.117170 [ 4256 ] {89a3a91b-31d4-4e97-a862-fd149d60a771} DistributedSink: Structure does not match (remote: key Nullable(UInt64) Nullable(size = 0, UInt64(size = 0), UInt8(size = 0)), local: key UInt64 UInt64(size = 1)), implicit conversion will be done. 2024.10.22 10:22:06.952500 [ 62318 ] {ec3c6681-29d7-41a2-9ae3-1f00fed8031e} executeQuery: Code: 42. DB::Exception: Number of arguments for function geohashesInBox doesn't match: passed 0, should be 5: While processing geohashesInBox(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49368) (comment: 00972_geohashesInBox.sql) (in query: SELECT geohashesInBox();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:22:06.953456 [ 62318 ] {ec3c6681-29d7-41a2-9ae3-1f00fed8031e} TCPHandler: Code: 42. DB::Exception: Number of arguments for function geohashesInBox doesn't match: passed 0, should be 5: While processing geohashesInBox(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000001883ec08 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abf2f4f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf3416 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:22:07.246720 [ 62318 ] {c62e90fb-fcfd-4a86-865d-78a8ed3c909b} executeQuery: Code: 43. DB::Exception: Illegal type UInt8 of 0 argument of function geohashesInBox expected float: While processing geohashesInBox(1, 2, 3, 4, 5). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49368) (comment: 00972_geohashesInBox.sql) (in query: SELECT geohashesInBox(1, 2, 3, 4, 5);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&, char const*&) @ 0x000000001ac01084 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:108: DB::validateArgumentType(DB::IFunction const&, std::vector, std::allocator>> const&, unsigned long, bool (*)(DB::IDataType const&), char const*) @ 0x000000001abfed7b in /usr/bin/clickhouse 7. /build/src/Functions/geohashesInBox.cpp:40: DB::(anonymous namespace)::FunctionGeohashesInBox::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000e4845b9 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:22:07.299180 [ 62318 ] {c62e90fb-fcfd-4a86-865d-78a8ed3c909b} TCPHandler: Code: 43. DB::Exception: Illegal type UInt8 of 0 argument of function geohashesInBox expected float: While processing geohashesInBox(1, 2, 3, 4, 5). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&, char const*&) @ 0x000000001ac01084 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:108: DB::validateArgumentType(DB::IFunction const&, std::vector, std::allocator>> const&, unsigned long, bool (*)(DB::IDataType const&), char const*) @ 0x000000001abfed7b in /usr/bin/clickhouse 7. /build/src/Functions/geohashesInBox.cpp:40: DB::(anonymous namespace)::FunctionGeohashesInBox::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000e4845b9 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:22:07.557959 [ 62318 ] {49b175f4-abf6-4ffb-8614-a6111889eb7b} executeQuery: Code: 43. DB::Exception: Illegal type of argument of geohashesInBox all coordinate arguments must have the same type, instead they are:Float32, Float64, Float64, Float64.: While processing geohashesInBox(toFloat32(1.), 2., 3., 4., 5). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49368) (comment: 00972_geohashesInBox.sql) (in query: SELECT geohashesInBox(toFloat32(1.0), 2.0, 3.0, 4.0, 5);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&, String&&, String&&) @ 0x000000000e486b3a in /usr/bin/clickhouse 6. /build/src/Functions/geohashesInBox.cpp:50: DB::(anonymous namespace)::FunctionGeohashesInBox::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000e484882 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:22:07.601475 [ 62318 ] {49b175f4-abf6-4ffb-8614-a6111889eb7b} TCPHandler: Code: 43. DB::Exception: Illegal type of argument of geohashesInBox all coordinate arguments must have the same type, instead they are:Float32, Float64, Float64, Float64.: While processing geohashesInBox(toFloat32(1.), 2., 3., 4., 5). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&, String&&, String&&) @ 0x000000000e486b3a in /usr/bin/clickhouse 6. /build/src/Functions/geohashesInBox.cpp:50: DB::(anonymous namespace)::FunctionGeohashesInBox::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000e484882 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:22:07.847795 [ 62318 ] {098c12da-7017-4096-b969-fa788e2548cf} executeQuery: Code: 128. DB::Exception: geohashesInBox would produce 1356640814682 array elements, which is bigger than the allowed maximum of 10000000: While processing geohashesInBox(24.48, 40.56, 24.785, 40.81, 12). (TOO_LARGE_ARRAY_SIZE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49368) (comment: 00972_geohashesInBox.sql) (in query: SELECT geohashesInBox(24.48, 40.56, 24.785, 40.81, 12);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long const&, unsigned long const&) @ 0x000000000e486d68 in /usr/bin/clickhouse 6. /build/src/Functions/geohashesInBox.cpp:125: void DB::(anonymous namespace)::FunctionGeohashesInBox::execute(DB::IColumn const*, DB::IColumn const*, DB::IColumn const*, DB::IColumn const*, DB::IColumn const*, COW::immutable_ptr&, unsigned long) const @ 0x000000000e4860ea in /usr/bin/clickhouse 7. /build/src/Functions/geohashesInBox.cpp:169: DB::(anonymous namespace)::FunctionGeohashesInBox::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e4844e7 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:22:07.898259 [ 62318 ] {098c12da-7017-4096-b969-fa788e2548cf} TCPHandler: Code: 128. DB::Exception: geohashesInBox would produce 1356640814682 array elements, which is bigger than the allowed maximum of 10000000: While processing geohashesInBox(24.48, 40.56, 24.785, 40.81, 12). (TOO_LARGE_ARRAY_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long const&, unsigned long const&) @ 0x000000000e486d68 in /usr/bin/clickhouse 6. /build/src/Functions/geohashesInBox.cpp:125: void DB::(anonymous namespace)::FunctionGeohashesInBox::execute(DB::IColumn const*, DB::IColumn const*, DB::IColumn const*, DB::IColumn const*, DB::IColumn const*, COW::immutable_ptr&, unsigned long) const @ 0x000000000e4860ea in /usr/bin/clickhouse 7. /build/src/Functions/geohashesInBox.cpp:169: DB::(anonymous namespace)::FunctionGeohashesInBox::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e4844e7 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:22:09.136183 [ 62462 ] {681be165-baa3-440c-8722-5b8418195353} executeQuery: Code: 36. DB::Exception: Wrong index name. Cannot find index `test_index` to drop. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41808) (comment: 00953_indices_alter_exceptions.sh) (in query: ALTER TABLE test_drop_indices DROP INDEX test_index;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x000000000d9efb2c in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:555: DB::AlterCommand::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d58da53 in /usr/bin/clickhouse 7. /build/src/Storages/AlterCommands.cpp:929: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d590825 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9310c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:09.150455 [ 62462 ] {681be165-baa3-440c-8722-5b8418195353} TCPHandler: Code: 36. DB::Exception: Wrong index name. Cannot find index `test_index` to drop. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x000000000d9efb2c in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:555: DB::AlterCommand::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d58da53 in /usr/bin/clickhouse 7. /build/src/Storages/AlterCommands.cpp:929: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d590825 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de9310c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:09.657274 [ 62323 ] {e805339c-f83a-40ba-b095-8e233e8b72ba} executeQuery: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:41828). (NETWORK_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41828) (comment: 00991_system_parts_race_condition_long.sh) (in query: SELECT * FROM system.parts FORMAT Null), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:1090: DB::TCPHandler::sendProfileInfo(DB::ProfileInfo const&) @ 0x000000001e652f0d in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:966: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f9dc in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:09.662739 [ 62323 ] {e805339c-f83a-40ba-b095-8e233e8b72ba} TCPHandler: Can't send logs to client: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:41828). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2073: DB::TCPHandler::sendLogData(DB::Block const&) @ 0x000000001e659e55 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:2150: DB::TCPHandler::sendLogs() @ 0x000000001e6504ff in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:672: DB::TCPHandler::runImpl() @ 0x000000001e648af7 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:22:09.663097 [ 62323 ] {e805339c-f83a-40ba-b095-8e233e8b72ba} TCPHandler: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:41828). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:1090: DB::TCPHandler::sendProfileInfo(DB::ProfileInfo const&) @ 0x000000001e652f0d in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:966: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e64f9dc in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e647b51 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:09.663687 [ 62323 ] {e805339c-f83a-40ba-b095-8e233e8b72ba} TCPHandler: Client has gone away. 2024.10.22 10:22:09.856048 [ 50154 ] {653c2848-ee6c-40b4-88b9-92ecfce36c19} executeQuery: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:41716). (NETWORK_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41716) (comment: 00991_system_parts_race_condition_long.sh) (in query: INSERT INTO alter_table SELECT rand(1), rand(2), 1 / rand(3), toString(rand(4)), [rand(5), rand(6)], rand(7) % 2 ? NULL : generateUUIDv4(), (rand(8), rand(9)) FROM numbers(100000)), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:1136: DB::TCPHandler::sendProfileEvents() @ 0x000000001e653e19 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:1146: DB::TCPHandler::sendSelectProfileEvents() @ 0x000000001e64fd14 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:558: DB::TCPHandler::runImpl() @ 0x000000001e647d02 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:09.858279 [ 50154 ] {653c2848-ee6c-40b4-88b9-92ecfce36c19} TCPHandler: Can't send logs to client: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:41716). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2073: DB::TCPHandler::sendLogData(DB::Block const&) @ 0x000000001e659e55 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:2150: DB::TCPHandler::sendLogs() @ 0x000000001e6504ff in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:672: DB::TCPHandler::runImpl() @ 0x000000001e648af7 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:22:09.858675 [ 50154 ] {653c2848-ee6c-40b4-88b9-92ecfce36c19} TCPHandler: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:41716). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:1136: DB::TCPHandler::sendProfileEvents() @ 0x000000001e653e19 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:1146: DB::TCPHandler::sendSelectProfileEvents() @ 0x000000001e64fd14 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:558: DB::TCPHandler::runImpl() @ 0x000000001e647d02 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:09.859224 [ 50154 ] {653c2848-ee6c-40b4-88b9-92ecfce36c19} TCPHandler: Client has gone away. 2024.10.22 10:22:09.870778 [ 12922 ] {59319d42-ff39-4033-947e-ef6a4bee168c} executeQuery: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:41706). (NETWORK_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41706) (comment: 00991_system_parts_race_condition_long.sh) (in query: INSERT INTO alter_table SELECT rand(1), rand(2), 1 / rand(3), toString(rand(4)), [rand(5), rand(6)], rand(7) % 2 ? NULL : generateUUIDv4(), (rand(8), rand(9)) FROM numbers(100000)), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:1136: DB::TCPHandler::sendProfileEvents() @ 0x000000001e653e19 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:1146: DB::TCPHandler::sendSelectProfileEvents() @ 0x000000001e64fd14 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:558: DB::TCPHandler::runImpl() @ 0x000000001e647d02 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:09.872449 [ 12922 ] {59319d42-ff39-4033-947e-ef6a4bee168c} TCPHandler: Can't send logs to client: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:41706). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2073: DB::TCPHandler::sendLogData(DB::Block const&) @ 0x000000001e659e55 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:2150: DB::TCPHandler::sendLogs() @ 0x000000001e6504ff in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:672: DB::TCPHandler::runImpl() @ 0x000000001e648af7 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:22:09.872961 [ 12922 ] {59319d42-ff39-4033-947e-ef6a4bee168c} TCPHandler: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:41706). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:1136: DB::TCPHandler::sendProfileEvents() @ 0x000000001e653e19 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:1146: DB::TCPHandler::sendSelectProfileEvents() @ 0x000000001e64fd14 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:558: DB::TCPHandler::runImpl() @ 0x000000001e647d02 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:09.874056 [ 12922 ] {59319d42-ff39-4033-947e-ef6a4bee168c} TCPHandler: Client has gone away. 2024.10.22 10:22:10.563069 [ 62322 ] {aaf02757-5d92-479a-bcb7-37af6288f84e} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while reading from socket ([::1]:41822). (NETWORK_ERROR) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41822) (comment: 00991_system_parts_race_condition_long.sh) (in query: INSERT INTO alter_table SELECT rand(1), rand(2), 1 / rand(3), toString(rand(4)), [rand(5), rand(6)], rand(7) % 2 ? NULL : generateUUIDv4(), (rand(8), rand(9)) FROM numbers(100000)), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000013cf152c in /usr/bin/clickhouse 6. /build/src/IO/ReadBufferFromPocoSocket.cpp:86: DB::ReadBufferFromPocoSocket::nextImpl() @ 0x0000000013cf07a0 in /usr/bin/clickhouse 7. /build/src/IO/ReadBuffer.h:71: DB::ReadBuffer::next() @ 0x000000000b21bd7c in /usr/bin/clickhouse 8. /build/src/IO/ReadBuffer.h:105: DB::TCPHandler::getQueryCancellationStatus() @ 0x000000001e65251f in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:533: DB::TCPHandler::runImpl()::$_9::operator()() const @ 0x000000001e65d6da in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::TCPHandler::runImpl()::$_9&) @ 0x000000001e65d695 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::TCPHandler::runImpl()::$_9&) @ 0x000000001e65d675 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e65d655 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e65d61d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:99: DB::CompletedPipelineExecutor::execute() @ 0x000000001e6d221b in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:545: DB::TCPHandler::runImpl() @ 0x000000001e647c9c in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 24. ? @ 0x00007f1a0debbac3 in ? 25. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:10.583194 [ 62322 ] {aaf02757-5d92-479a-bcb7-37af6288f84e} TCPHandler: Can't send logs to client: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:41822). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013cf30a8 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013cf26c4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2073: DB::TCPHandler::sendLogData(DB::Block const&) @ 0x000000001e659e55 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:2150: DB::TCPHandler::sendLogs() @ 0x000000001e6504ff in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:672: DB::TCPHandler::runImpl() @ 0x000000001e648af7 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:22:10.583604 [ 62322 ] {aaf02757-5d92-479a-bcb7-37af6288f84e} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while reading from socket ([::1]:41822). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000013cf152c in /usr/bin/clickhouse 6. /build/src/IO/ReadBufferFromPocoSocket.cpp:86: DB::ReadBufferFromPocoSocket::nextImpl() @ 0x0000000013cf07a0 in /usr/bin/clickhouse 7. /build/src/IO/ReadBuffer.h:71: DB::ReadBuffer::next() @ 0x000000000b21bd7c in /usr/bin/clickhouse 8. /build/src/IO/ReadBuffer.h:105: DB::TCPHandler::getQueryCancellationStatus() @ 0x000000001e65251f in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:533: DB::TCPHandler::runImpl()::$_9::operator()() const @ 0x000000001e65d6da in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::TCPHandler::runImpl()::$_9&) @ 0x000000001e65d695 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::TCPHandler::runImpl()::$_9&) @ 0x000000001e65d675 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e65d655 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e65d61d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:99: DB::CompletedPipelineExecutor::execute() @ 0x000000001e6d221b in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:545: DB::TCPHandler::runImpl() @ 0x000000001e647c9c in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 24. ? @ 0x00007f1a0debbac3 in ? 25. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:10.586198 [ 62322 ] {aaf02757-5d92-479a-bcb7-37af6288f84e} TCPHandler: Client has gone away. 2024.10.22 10:22:11.307706 [ 914 ] {3cdb7e8f-06ee-4617-b680-a84d612f8f55::-9_75_75_0_188} MutatePlainMergeTreeTask: Code: 236. DB::Exception: Cancelled mutating parts. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:22:11.416019 [ 914 ] {3cdb7e8f-06ee-4617-b680-a84d612f8f55::-9_75_75_0_188} virtual bool DB::MutatePlainMergeTreeTask::executeStep(): Code: 236. DB::Exception: Cancelled mutating parts. (ABORTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [25]) @ 0x000000000b21ba5e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MutateTask.cpp:48: DB::MutationHelpers::checkOperationIsNotCanceled(DB::ActionBlocker&, DB::BackgroundProcessListEntry*) @ 0x000000001e210a76 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MutateTask.cpp:1815: DB::MutateTask::prepare() @ 0x000000001e211334 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MutateTask.cpp:1744: DB::MutateTask::execute() @ 0x000000001e211207 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MutatePlainMergeTreeTask.cpp:90: DB::MutatePlainMergeTreeTask::executeStep() @ 0x000000001e3b25b7 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de56fed in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de57a4e in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5ff38 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>()()) std::__invoke[abi:v15000]::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001de5ff15 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001de5fef5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001de5fed5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001de5fe9d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a6a4e0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:22:12.512458 [ 50154 ] {b8244a8f-e59d-4b38-a979-bbfba2ea1e64} executeQuery: Code: 469. DB::Exception: Constraint `b_constraint` for table test_qhcp9nuo.test_constraints (7c71feeb-1823-4fe7-ade7-db29b95a2f54) is violated at row 1. Expression: (b > 0). Column values: b = 0. (VIOLATED_CONSTRAINT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41960) (comment: 00953_constraints_operations.sh) (in query: INSERT INTO test_constraints VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eba135a in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eba0fa0 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:12.514575 [ 50154 ] {b8244a8f-e59d-4b38-a979-bbfba2ea1e64} TCPHandler: Code: 469. DB::Exception: Constraint `b_constraint` for table test_qhcp9nuo.test_constraints (7c71feeb-1823-4fe7-ade7-db29b95a2f54) is violated at row 1. Expression: (b > 0). Column values: b = 0. (VIOLATED_CONSTRAINT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eba135a in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eba0fa0 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:17.732949 [ 62433 ] {cde266f2-d1fe-46c2-9eff-bd7a8f10038b} executeQuery: Code: 252. DB::Exception: Too many parts (10) in all partitions in total in table 'test_o6h8qh9s.max_parts_in_total (92136fb4-1bcf-4607-b0f4-40ff6231c502)'. This indicates wrong choice of partition key. The threshold can be modified with 'max_parts_in_total' setting in element in config.xml or with per-table setting. (TOO_MANY_PARTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50724) (comment: 00940_max_parts_in_total.sql) (in query: INSERT INTO max_parts_in_total SELECT 123;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long const&, String&&) @ 0x000000000e1c052c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4471: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001dea9ab2 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e3abc2c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001ebcd539 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd515 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd4f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd4d5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd49d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcc8b5 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 24. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e6d2ac7 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6d2a35 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&) @ 0x000000001e6d2a15 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6d29f5 in /usr/bin/clickhouse 2024.10.22 10:22:17.734276 [ 62433 ] {cde266f2-d1fe-46c2-9eff-bd7a8f10038b} TCPHandler: Code: 252. DB::Exception: Too many parts (10) in all partitions in total in table 'test_o6h8qh9s.max_parts_in_total (92136fb4-1bcf-4607-b0f4-40ff6231c502)'. This indicates wrong choice of partition key. The threshold can be modified with 'max_parts_in_total' setting in element in config.xml or with per-table setting. (TOO_MANY_PARTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long const&, String&&) @ 0x000000000e1c052c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4471: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001dea9ab2 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e3abc2c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001ebcd539 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd515 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001ebcd4f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd4d5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd49d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcc8b5 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 24. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e6d2ac7 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6d2a35 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&) @ 0x000000001e6d2a15 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6d29f5 in /usr/bin/clickhouse 2024.10.22 10:22:19.960641 [ 62462 ] {24d99917-3ddc-44b6-815b-ff0a5887c010} executeQuery: Code: 469. DB::Exception: Constraint `b_constraint` for table test_xe88yjve.test_constraints (e777f350-e4e2-4f2d-aa72-51ba87e39b4d) is violated at row 2. Expression: (b > 0). Column values: b = 0. (VIOLATED_CONSTRAINT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50770) (comment: 00952_basic_constraints.sh) (in query: INSERT INTO test_constraints VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eba135a in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eba0fa0 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:19.962696 [ 62462 ] {24d99917-3ddc-44b6-815b-ff0a5887c010} TCPHandler: Code: 469. DB::Exception: Constraint `b_constraint` for table test_xe88yjve.test_constraints (e777f350-e4e2-4f2d-aa72-51ba87e39b4d) is violated at row 2. Expression: (b > 0). Column values: b = 0. (VIOLATED_CONSTRAINT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eba135a in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eba0fa0 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:20.612023 [ 62433 ] {eb178fac-1834-45e8-ba5d-dd1ac4edcf5c} executeQuery: Code: 47. DB::Exception: Missing columns: 'value' while processing query: 'range(value)', required columns: 'value' 'value': While processing SELECT count() FROM samples WHERE 1 IN range(value). (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50766) (comment: 00936_function_result_with_operator_in.sql) (in query: -- non-constant expressions in the right side of IN SELECT count() FROM samples WHERE 1 IN range(samples.value);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1355: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa6838 in /usr/bin/clickhouse 8. /build/src/Interpreters/evaluateConstantExpression.cpp:70: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001d08f52e in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:299: DB::(anonymous namespace)::createBlockForSet(std::shared_ptr const&, std::shared_ptr const&, std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001bfe8705 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:427: DB::makeExplicitSet(DB::ASTFunction const*, DB::ActionsDAG const&, std::shared_ptr, DB::PreparedSets&) @ 0x000000001bfe7edd in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:1443: DB::ActionsMatcher::makeSet(DB::ASTFunction const&, DB::ActionsMatcher::Data&, bool) @ 0x000000001bff1fae in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:921: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfec241 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:705: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea7a6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:1735: DB::ExpressionAnalyzer::getConstActionsDAG(std::vector> const&) @ 0x000000001bfbd48d in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/KeyCondition.cpp:724: DB::KeyCondition::getBlockWithConstants(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ddcec98 in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeWhereOptimizer.cpp:83: DB::MergeTreeWhereOptimizer::optimize(DB::SelectQueryInfo&, std::shared_ptr const&) const @ 0x000000001e1db7ad in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:663: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab2bef in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:22:20.613280 [ 62433 ] {eb178fac-1834-45e8-ba5d-dd1ac4edcf5c} TCPHandler: Code: 47. DB::Exception: Missing columns: 'value' while processing query: 'range(value)', required columns: 'value' 'value': While processing SELECT count() FROM samples WHERE 1 IN range(value). (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1355: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cfa6838 in /usr/bin/clickhouse 8. /build/src/Interpreters/evaluateConstantExpression.cpp:70: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001d08f52e in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:299: DB::(anonymous namespace)::createBlockForSet(std::shared_ptr const&, std::shared_ptr const&, std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001bfe8705 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:427: DB::makeExplicitSet(DB::ASTFunction const*, DB::ActionsDAG const&, std::shared_ptr, DB::PreparedSets&) @ 0x000000001bfe7edd in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:1443: DB::ActionsMatcher::makeSet(DB::ASTFunction const&, DB::ActionsMatcher::Data&, bool) @ 0x000000001bff1fae in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:921: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfec241 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:705: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea7a6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:1735: DB::ExpressionAnalyzer::getConstActionsDAG(std::vector> const&) @ 0x000000001bfbd48d in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/KeyCondition.cpp:724: DB::KeyCondition::getBlockWithConstants(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ddcec98 in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeWhereOptimizer.cpp:83: DB::MergeTreeWhereOptimizer::optimize(DB::SelectQueryInfo&, std::shared_ptr const&) const @ 0x000000001e1db7ad in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:663: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab2bef in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 2024.10.22 10:22:20.798513 [ 62433 ] {6fc97f80-bba2-4b88-bccb-26ec30aad8c0} executeQuery: Code: 36. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): range(modulo(rand(), 1000)): While processing SELECT count() FROM samples WHERE 1 IN range(rand() % 1000). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50766) (comment: 00936_function_result_with_operator_in.sql) (in query: SELECT count() FROM samples WHERE 1 IN range(rand() % 1000);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Interpreters/evaluateConstantExpression.cpp:93: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001d08f914 in /usr/bin/clickhouse 7. /build/src/Interpreters/ActionsVisitor.cpp:299: DB::(anonymous namespace)::createBlockForSet(std::shared_ptr const&, std::shared_ptr const&, std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001bfe8705 in /usr/bin/clickhouse 8. /build/src/Interpreters/ActionsVisitor.cpp:427: DB::makeExplicitSet(DB::ASTFunction const*, DB::ActionsDAG const&, std::shared_ptr, DB::PreparedSets&) @ 0x000000001bfe7edd in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:1443: DB::ActionsMatcher::makeSet(DB::ASTFunction const&, DB::ActionsMatcher::Data&, bool) @ 0x000000001bff1fae in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:921: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfec241 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:705: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea7a6 in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:1735: DB::ExpressionAnalyzer::getConstActionsDAG(std::vector> const&) @ 0x000000001bfbd48d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/KeyCondition.cpp:724: DB::KeyCondition::getBlockWithConstants(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ddcec98 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeWhereOptimizer.cpp:83: DB::MergeTreeWhereOptimizer::optimize(DB::SelectQueryInfo&, std::shared_ptr const&) const @ 0x000000001e1db7ad in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:663: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab2bef in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:22:20.799914 [ 62433 ] {6fc97f80-bba2-4b88-bccb-26ec30aad8c0} TCPHandler: Code: 36. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): range(modulo(rand(), 1000)): While processing SELECT count() FROM samples WHERE 1 IN range(rand() % 1000). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Interpreters/evaluateConstantExpression.cpp:93: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001d08f914 in /usr/bin/clickhouse 7. /build/src/Interpreters/ActionsVisitor.cpp:299: DB::(anonymous namespace)::createBlockForSet(std::shared_ptr const&, std::shared_ptr const&, std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001bfe8705 in /usr/bin/clickhouse 8. /build/src/Interpreters/ActionsVisitor.cpp:427: DB::makeExplicitSet(DB::ASTFunction const*, DB::ActionsDAG const&, std::shared_ptr, DB::PreparedSets&) @ 0x000000001bfe7edd in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:1443: DB::ActionsMatcher::makeSet(DB::ASTFunction const&, DB::ActionsMatcher::Data&, bool) @ 0x000000001bff1fae in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:921: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfec241 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:705: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea7a6 in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:1735: DB::ExpressionAnalyzer::getConstActionsDAG(std::vector> const&) @ 0x000000001bfbd48d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/KeyCondition.cpp:724: DB::KeyCondition::getBlockWithConstants(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ddcec98 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeWhereOptimizer.cpp:83: DB::MergeTreeWhereOptimizer::optimize(DB::SelectQueryInfo&, std::shared_ptr const&) const @ 0x000000001e1db7ad in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:663: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab2bef in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:22:20.954711 [ 62433 ] {a6f3eb98-50fd-4615-9566-077b670d9aa5} executeQuery: Code: 277. DB::Exception: Primary key (key) is not used and setting 'force_primary_key' is set. (INDEX_NOT_USED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50766) (comment: 00936_function_result_with_operator_in.sql) (in query: -- index is not used SELECT count() FROM samples WHERE value IN range(3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbaf3 in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1446: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea4876 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1373: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea2a33 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001eea274d in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1677: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001eea79ec in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1785: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8a5b in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:20.955631 [ 62433 ] {a6f3eb98-50fd-4615-9566-077b670d9aa5} TCPHandler: Code: 277. DB::Exception: Primary key (key) is not used and setting 'force_primary_key' is set. (INDEX_NOT_USED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbaf3 in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1446: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea4876 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1373: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea2a33 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001eea274d in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1677: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001eea79ec in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1785: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8a5b in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:21.100172 [ 62433 ] {832938f0-7c29-45a4-9fab-c55d54a16f2e} executeQuery: Code: 53. DB::Exception: Cannot convert string ab to type UInt8: While processing 123 IN splitByChar('c', 'abcdef'). (TYPE_MISMATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50766) (comment: 00936_function_result_with_operator_in.sql) (in query: -- wrong type SELECT 123 IN splitByChar('c', 'abcdef');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/convertFieldToType.cpp:508: DB::(anonymous namespace)::convertFieldToTypeImpl(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d072042 in /usr/bin/clickhouse 7. /build/src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToType(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d06e77d in /usr/bin/clickhouse 8. /build/src/Interpreters/convertFieldToType.cpp:582: DB::convertFieldToTypeStrict(DB::Field const&, DB::IDataType const&) @ 0x000000001d07293d in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:117: DB::Block DB::createBlockFromCollection(DB::Array const&, std::vector, std::allocator>> const&, bool) @ 0x000000001bff392f in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:326: DB::(anonymous namespace)::createBlockForSet(std::shared_ptr const&, std::shared_ptr const&, std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001bfe8b35 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:427: DB::makeExplicitSet(DB::ASTFunction const*, DB::ActionsDAG const&, std::shared_ptr, DB::PreparedSets&) @ 0x000000001bfe7edd in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:1443: DB::ActionsMatcher::makeSet(DB::ASTFunction const&, DB::ActionsMatcher::Data&, bool) @ 0x000000001bff1fae in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:921: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfec241 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:22:21.101236 [ 62433 ] {832938f0-7c29-45a4-9fab-c55d54a16f2e} TCPHandler: Code: 53. DB::Exception: Cannot convert string ab to type UInt8: While processing 123 IN splitByChar('c', 'abcdef'). (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Interpreters/convertFieldToType.cpp:508: DB::(anonymous namespace)::convertFieldToTypeImpl(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d072042 in /usr/bin/clickhouse 7. /build/src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToType(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d06e77d in /usr/bin/clickhouse 8. /build/src/Interpreters/convertFieldToType.cpp:582: DB::convertFieldToTypeStrict(DB::Field const&, DB::IDataType const&) @ 0x000000001d07293d in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:117: DB::Block DB::createBlockFromCollection(DB::Array const&, std::vector, std::allocator>> const&, bool) @ 0x000000001bff392f in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:326: DB::(anonymous namespace)::createBlockForSet(std::shared_ptr const&, std::shared_ptr const&, std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001bfe8b35 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:427: DB::makeExplicitSet(DB::ASTFunction const*, DB::ActionsDAG const&, std::shared_ptr, DB::PreparedSets&) @ 0x000000001bfe7edd in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:1443: DB::ActionsMatcher::makeSet(DB::ASTFunction const&, DB::ActionsMatcher::Data&, bool) @ 0x000000001bff1fae in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:921: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfec241 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 2024.10.22 10:22:21.678140 [ 62433 ] {238f24f6-fc2f-40d0-aff3-2382c81108f9} executeQuery: Code: 469. DB::Exception: Constraint `b_constraint` for table test_qhcp9nuo.test_constraints (7c71feeb-1823-4fe7-ade7-db29b95a2f54) is violated at row 1. Expression: (b > 10). Column values: b = 10. (VIOLATED_CONSTRAINT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50820) (comment: 00953_constraints_operations.sh) (in query: INSERT INTO test_constraints VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eba135a in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eba0fa0 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:21.680497 [ 62433 ] {238f24f6-fc2f-40d0-aff3-2382c81108f9} TCPHandler: Code: 469. DB::Exception: Constraint `b_constraint` for table test_qhcp9nuo.test_constraints (7c71feeb-1823-4fe7-ade7-db29b95a2f54) is violated at row 1. Expression: (b > 10). Column values: b = 10. (VIOLATED_CONSTRAINT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eba135a in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eba0fa0 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:27.071227 [ 62326 ] {fafb2600-da05-4960-9e8d-bd4f243d0c9c} executeQuery: Code: 469. DB::Exception: Constraint `b_constraint` for table test_xe88yjve.test_constraints (cccb594b-0f19-45e4-998e-af59fb4c1098) is violated at row 1. Expression: (b > 10). Column values: b = 2. (VIOLATED_CONSTRAINT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51792) (comment: 00952_basic_constraints.sh) (in query: INSERT INTO test_constraints VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eba135a in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eba0fa0 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:27.073160 [ 62326 ] {fafb2600-da05-4960-9e8d-bd4f243d0c9c} TCPHandler: Code: 469. DB::Exception: Constraint `b_constraint` for table test_xe88yjve.test_constraints (cccb594b-0f19-45e4-998e-af59fb4c1098) is violated at row 1. Expression: (b > 10). Column values: b = 2. (VIOLATED_CONSTRAINT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eba135a in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eba0fa0 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:30.860234 [ 62326 ] {f37b4873-78b5-4556-b244-583b30dfec85} executeQuery: Code: 469. DB::Exception: Constraint `a_constraint` for table test_xe88yjve.test_constraints (cccb594b-0f19-45e4-998e-af59fb4c1098) is violated at row 2. Expression: (a < 10). Column values: a = 10. (VIOLATED_CONSTRAINT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51876) (comment: 00952_basic_constraints.sh) (in query: INSERT INTO test_constraints VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eba135a in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eba0fa0 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:30.862609 [ 62326 ] {f37b4873-78b5-4556-b244-583b30dfec85} TCPHandler: Code: 469. DB::Exception: Constraint `a_constraint` for table test_xe88yjve.test_constraints (cccb594b-0f19-45e4-998e-af59fb4c1098) is violated at row 2. Expression: (a < 10). Column values: a = 10. (VIOLATED_CONSTRAINT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eba135a in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eba0fa0 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 30. ? @ 0x00007f1a0debbac3 in ? 31. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:51.584182 [ 12925 ] {d0974b44-0aca-414f-b9b4-2a173da2adb4} executeQuery: Code: 128. DB::Exception: Array size cannot be negative: while executing function arrayWithConstant: While processing arrayWithConstant(-231.37104, -138). (TOO_LARGE_ARRAY_SIZE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45934) (comment: 00842_array_with_constant_overflow.sql) (in query: SELECT arrayWithConstant(-231.37104, -138);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayWithConstant.cpp:66: DB::FunctionArrayWithConstant::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001330b00d in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:22:51.585191 [ 12925 ] {d0974b44-0aca-414f-b9b4-2a173da2adb4} TCPHandler: Code: 128. DB::Exception: Array size cannot be negative: while executing function arrayWithConstant: While processing arrayWithConstant(-231.37104, -138). (TOO_LARGE_ARRAY_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayWithConstant.cpp:66: DB::FunctionArrayWithConstant::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001330b00d in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 2024.10.22 10:22:52.603626 [ 62433 ] {06e25e45-6e16-4c89-8d37-6f9110f476ff} executeQuery: Code: 442. DB::Exception: Temporary tables cannot be inside a database. You should not specify a database for a temporary table. (BAD_DATABASE_FOR_TEMPORARY_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45962) (comment: 00841_temporary_table_database.sql) (in query: CREATE TEMPORARY TABLE test.t2_00841 (x UInt8);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [103]) @ 0x000000001c7fecbe in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1077: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f1fdf in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:52.604345 [ 62433 ] {06e25e45-6e16-4c89-8d37-6f9110f476ff} TCPHandler: Code: 442. DB::Exception: Temporary tables cannot be inside a database. You should not specify a database for a temporary table. (BAD_DATABASE_FOR_TEMPORARY_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [103]) @ 0x000000001c7fecbe in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1077: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f1fdf in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:54.446440 [ 62324 ] {da0a5f74-7778-49e0-858a-810a703fd952} executeQuery: Code: 386. DB::Exception: There is no supertype for types UInt64, String because some of them are String/FixedString and some of them are not: In scope SELECT if((rand() % 2) = 0, number, toString(number)) FROM numbers(5). (NO_COMMON_TYPE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45992) (comment: 00835_if_generic_case.sql) (in query: SELECT rand() % 2 = 0 ? number : toString(number) FROM numbers(5);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>&>(int, FormatStringHelperImpl::type, std::type_identity>&>::type>, String&&, std::basic_string_view>&) @ 0x000000001195acac in /usr/bin/clickhouse 6. /build/src/DataTypes/getLeastSupertype.cpp:67: std::shared_ptr DB::(anonymous namespace)::throwOrReturn<(DB::LeastSupertypeOnError)0, std::vector, std::allocator>>>(std::vector, std::allocator>> const&, std::basic_string_view>, int) @ 0x000000001ba0a886 in /usr/bin/clickhouse 7. /build/src/DataTypes/getLeastSupertype.cpp:454: std::shared_ptr DB::getLeastSupertype<(DB::LeastSupertypeOnError)0>(std::vector, std::allocator>> const&) @ 0x000000001ba0eb0f in /usr/bin/clickhouse 8. /build/src/Functions/if.cpp:1042: DB::(anonymous namespace)::FunctionIf::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000efd8585 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5251: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93b650 in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5551: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c924136 in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 17. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 18. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 19. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 20. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 21. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:22:54.447240 [ 62324 ] {da0a5f74-7778-49e0-858a-810a703fd952} TCPHandler: Code: 386. DB::Exception: There is no supertype for types UInt64, String because some of them are String/FixedString and some of them are not: In scope SELECT if((rand() % 2) = 0, number, toString(number)) FROM numbers(5). (NO_COMMON_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>&>(int, FormatStringHelperImpl::type, std::type_identity>&>::type>, String&&, std::basic_string_view>&) @ 0x000000001195acac in /usr/bin/clickhouse 6. /build/src/DataTypes/getLeastSupertype.cpp:67: std::shared_ptr DB::(anonymous namespace)::throwOrReturn<(DB::LeastSupertypeOnError)0, std::vector, std::allocator>>>(std::vector, std::allocator>> const&, std::basic_string_view>, int) @ 0x000000001ba0a886 in /usr/bin/clickhouse 7. /build/src/DataTypes/getLeastSupertype.cpp:454: std::shared_ptr DB::getLeastSupertype<(DB::LeastSupertypeOnError)0>(std::vector, std::allocator>> const&) @ 0x000000001ba0eb0f in /usr/bin/clickhouse 8. /build/src/Functions/if.cpp:1042: DB::(anonymous namespace)::FunctionIf::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000efd8585 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5251: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c93b650 in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5551: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c924136 in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 17. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 18. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 19. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 20. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 21. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 2024.10.22 10:22:54.726597 [ 12917 ] {b4d1dab9-59ea-4408-b266-e7e1b92b6550} executeQuery: Code: 440. DB::Exception: The value -1 of LIMIT expression is not representable as UInt64. (INVALID_LIMIT_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46030) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT number FROM numbers(10) LIMIT 0 - 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1235: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cac783a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001cabd4a4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabe296 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:54.727355 [ 12917 ] {b4d1dab9-59ea-4408-b266-e7e1b92b6550} TCPHandler: Code: 440. DB::Exception: The value -1 of LIMIT expression is not representable as UInt64. (INVALID_LIMIT_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1235: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cac783a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001cabd4a4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabe296 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:54.749216 [ 12917 ] {7d63c0c6-6902-4430-b536-abede902c2dc} executeQuery: Code: 440. DB::Exception: The value 1.5 of LIMIT expression is not representable as UInt64. (INVALID_LIMIT_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46030) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT number FROM numbers(10) LIMIT 1.5;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1235: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cac783a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001cabd4a4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabe296 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:54.749951 [ 12917 ] {7d63c0c6-6902-4430-b536-abede902c2dc} TCPHandler: Code: 440. DB::Exception: The value 1.5 of LIMIT expression is not representable as UInt64. (INVALID_LIMIT_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1235: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cac783a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001cabd4a4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabe296 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:54.859588 [ 12917 ] {d71b9e0d-89a3-46fd-adff-5f5b47bbd990} executeQuery: Code: 440. DB::Exception: Illegal type String of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46030) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT number FROM numbers(10) LIMIT '1';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cac767f in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001cabd4a4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabe296 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:54.860488 [ 12917 ] {d71b9e0d-89a3-46fd-adff-5f5b47bbd990} TCPHandler: Code: 440. DB::Exception: Illegal type String of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cac767f in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001cabd4a4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabe296 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:54.870525 [ 12917 ] {c00b8bf9-8cd4-45c3-822c-f373f62d49a6} executeQuery: Code: 440. DB::Exception: Illegal type DateTime of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46030) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT number FROM numbers(10) LIMIT now();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cac767f in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001cabd4a4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabe296 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:54.871375 [ 12917 ] {c00b8bf9-8cd4-45c3-822c-f373f62d49a6} TCPHandler: Code: 440. DB::Exception: Illegal type DateTime of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cac767f in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001cabd4a4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabe296 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:54.882974 [ 12917 ] {69d8dcf8-6818-4df4-9c8e-d7dd1adbd642} executeQuery: Code: 440. DB::Exception: Illegal type Date of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46030) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT number FROM numbers(10) LIMIT today();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cac767f in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001cabd4a4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabe296 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:54.883771 [ 12917 ] {69d8dcf8-6818-4df4-9c8e-d7dd1adbd642} TCPHandler: Code: 440. DB::Exception: Illegal type Date of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cac767f in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001cabd4a4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabe296 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:55.052952 [ 12917 ] {6cd86246-f372-4017-ae50-7e2fc25893c3} executeQuery: Code: 36. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): rand(). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46030) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT number FROM numbers(10) LIMIT rand();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Interpreters/evaluateConstantExpression.cpp:93: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001d08f914 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1227: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cac758f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001cabd4a4 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabe296 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:55.053805 [ 12917 ] {6cd86246-f372-4017-ae50-7e2fc25893c3} TCPHandler: Code: 36. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): rand(). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Interpreters/evaluateConstantExpression.cpp:93: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001d08f914 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1227: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cac758f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001cabd4a4 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabe296 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:55.139065 [ 12917 ] {b7da9420-452d-4d90-a24a-2408182337f7} executeQuery: Code: 440. DB::Exception: The value 2.34 of LIMIT expression is not representable as UInt64. (INVALID_LIMIT_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46030) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT * FROM numbers(10) LIMIT 0.33 / 0.165 - 0.33 + 0.67;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1235: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cac783a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001cabd4a4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabe296 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:55.139706 [ 12917 ] {b7da9420-452d-4d90-a24a-2408182337f7} TCPHandler: Code: 440. DB::Exception: The value 2.34 of LIMIT expression is not representable as UInt64. (INVALID_LIMIT_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1235: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cac783a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001cabd4a4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabe296 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:55.149772 [ 12917 ] {89222dff-1864-4a98-ab52-deaf0b5b4357} executeQuery: Code: 440. DB::Exception: Illegal type Date of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46030) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT * FROM numbers(10) LIMIT LENGTH('NNN') + COS(0), toDate('0000-00-02');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cac767f in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001cabd4a4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabe296 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:55.150449 [ 12917 ] {89222dff-1864-4a98-ab52-deaf0b5b4357} TCPHandler: Code: 440. DB::Exception: Illegal type Date of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cac767f in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001cabd4a4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabe296 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:55.160178 [ 12917 ] {326b5eb0-aa1e-49ac-ab5b-a0ec36d1ba3a} executeQuery: Code: 440. DB::Exception: Illegal type Date of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46030) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT * FROM numbers(10) LIMIT LENGTH('NNN') + COS(0), toDate('0000-00-02');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cac767f in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001cabd4a4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabe296 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:55.160801 [ 12917 ] {326b5eb0-aa1e-49ac-ab5b-a0ec36d1ba3a} TCPHandler: Code: 440. DB::Exception: Illegal type Date of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cac767f in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001cabd4a4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabe296 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:55.169599 [ 12917 ] {4ad34380-843e-4ece-b7ad-fa4f5dc6a586} executeQuery: Code: 47. DB::Exception: Missing columns: 'a' while processing query: 'SELECT number FROM numbers(10) LIMIT (a + 5) - a', required columns: 'number' 'a', maybe you meant: 'number'. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46030) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT * FROM numbers(10) LIMIT a + 5 - a;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:55.170341 [ 12917 ] {4ad34380-843e-4ece-b7ad-fa4f5dc6a586} TCPHandler: Code: 47. DB::Exception: Missing columns: 'a' while processing query: 'SELECT number FROM numbers(10) LIMIT (a + 5) - a', required columns: 'number' 'a', maybe you meant: 'number'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:55.181045 [ 12917 ] {a096a29f-04f3-416e-95b8-bec65765ac51} executeQuery: Code: 47. DB::Exception: Missing columns: 'a' 'b' while processing query: 'SELECT number FROM numbers(10) LIMIT a + b', required columns: 'number' 'b' 'a', maybe you meant: 'number'. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46030) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT * FROM numbers(10) LIMIT a + b;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:55.182288 [ 12917 ] {a096a29f-04f3-416e-95b8-bec65765ac51} TCPHandler: Code: 47. DB::Exception: Missing columns: 'a' 'b' while processing query: 'SELECT number FROM numbers(10) LIMIT a + b', required columns: 'number' 'b' 'a', maybe you meant: 'number'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:55.190807 [ 12917 ] {7ab4fe20-6dff-43d3-96f4-b01b5122e8b3} executeQuery: Code: 440. DB::Exception: Illegal type String of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46030) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT * FROM numbers(10) LIMIT 'Hello';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cac767f in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001cabd4a4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabe296 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:55.191655 [ 12917 ] {7ab4fe20-6dff-43d3-96f4-b01b5122e8b3} TCPHandler: Code: 440. DB::Exception: Illegal type String of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cac767f in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001cabd4a4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabe296 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:22:56.564623 [ 62324 ] {c727f305-9e37-4bb3-a76c-65d8f7976b6e} executeQuery: Code: 43. DB::Exception: Second argument (weight) for function quantileExactWeighted must be unsigned integer, but it has type Float64. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46062) (comment: 00831_quantile_weighted_parameter_check.sql) (in query: SELECT quantileExactWeighted(0.5)(number, 0.1) FROM numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, char const* const&, String&&) @ 0x000000000c58168c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:242: DB::AggregateFunctionQuantile, DB::NameQuantileExactWeighted, true, void, false>::assertSecondArg(std::vector, std::allocator>> const&) @ 0x0000000014883e71 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionQuantileExactWeighted.cpp:32: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionQuantile(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000014882ea4 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:22:56.565686 [ 62324 ] {c727f305-9e37-4bb3-a76c-65d8f7976b6e} TCPHandler: Code: 43. DB::Exception: Second argument (weight) for function quantileExactWeighted must be unsigned integer, but it has type Float64. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, char const* const&, String&&) @ 0x000000000c58168c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:242: DB::AggregateFunctionQuantile, DB::NameQuantileExactWeighted, true, void, false>::assertSecondArg(std::vector, std::allocator>> const&) @ 0x0000000014883e71 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionQuantileExactWeighted.cpp:32: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionQuantile(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000014882ea4 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:23:03.792757 [ 62324 ] {43046208-a3ce-420c-b1cd-c7903e9ae0c2} executeQuery: Code: 174. DB::Exception: Cyclic aliases for identifier 'b'. In scope SELECT a + 1 AS b, b + 1 AS a FROM (SELECT 10 AS a). (CYCLIC_ALIASES) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50566) (comment: 00818_alias_bug_4110.sql) (in query: select a + 1 as b, b + 1 as a from (select 10 as a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:2588: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c930374 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3536: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f19f in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:4734: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c9366b8 in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5551: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c924136 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:2639: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c9309ff in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3536: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f19f in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:4734: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c9366b8 in /usr/bin/clickhouse 17. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5551: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c924136 in /usr/bin/clickhouse 18. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 19. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 20. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 21. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 22. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 23. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:23:03.793673 [ 62324 ] {43046208-a3ce-420c-b1cd-c7903e9ae0c2} TCPHandler: Code: 174. DB::Exception: Cyclic aliases for identifier 'b'. In scope SELECT a + 1 AS b, b + 1 AS a FROM (SELECT 10 AS a). (CYCLIC_ALIASES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c15e10c in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:2588: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c930374 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3536: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f19f in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:4734: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c9366b8 in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5551: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c924136 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:2639: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c9309ff in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3536: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c92f19f in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5410: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c92313b in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:4734: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c9366b8 in /usr/bin/clickhouse 17. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5551: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c924136 in /usr/bin/clickhouse 18. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 19. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 20. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 21. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 22. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 23. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:23:03.934569 [ 62324 ] {ed144706-7c87-43fe-898f-2f2c3d52f6c5} executeQuery: Code: 47. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 10 AS a, a + 1 AS a. Maybe you meant: ['a']. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50566) (comment: 00818_alias_bug_4110.sql) (in query: select 10 as a, a + 1 as a;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001c98a45a in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5484: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c923b65 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:4734: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c9366b8 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5551: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c924136 in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 15. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 29. ? @ 0x00007f1a0debbac3 in ? 30. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:03.935560 [ 62324 ] {ed144706-7c87-43fe-898f-2f2c3d52f6c5} TCPHandler: Code: 47. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 10 AS a, a + 1 AS a. Maybe you meant: ['a']. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001c98a45a in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5484: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c923b65 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:4734: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c9366b8 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5551: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c924136 in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 15. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 29. ? @ 0x00007f1a0debbac3 in ? 30. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:04.071712 [ 62324 ] {d7166401-8dff-4cba-a991-666727663caf} executeQuery: Code: 47. DB::Exception: Unknown expression identifier 'a' in scope WITH 10 AS a SELECT a AS a. Maybe you meant: ['a']. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50566) (comment: 00818_alias_bug_4110.sql) (in query: with 10 as a select a as a;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001c98a45a in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5484: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c923b65 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 12. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:04.074999 [ 62324 ] {d7166401-8dff-4cba-a991-666727663caf} TCPHandler: Code: 47. DB::Exception: Unknown expression identifier 'a' in scope WITH 10 AS a SELECT a AS a. Maybe you meant: ['a']. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001c98a45a in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5484: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c923b65 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 12. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:04.094693 [ 62324 ] {d08080f2-1afe-463d-8bdd-62def97bb3d5} executeQuery: Code: 47. DB::Exception: Unknown expression or function identifier 'a' in scope WITH 10 AS a SELECT a + 1 AS a. Maybe you meant: ['a']. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50566) (comment: 00818_alias_bug_4110.sql) (in query: with 10 as a select a + 1 as a;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001c98a45a in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5484: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c923b65 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:4734: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c9366b8 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5551: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c924136 in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 15. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 29. ? @ 0x00007f1a0debbac3 in ? 30. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:04.095629 [ 62324 ] {d08080f2-1afe-463d-8bdd-62def97bb3d5} TCPHandler: Code: 47. DB::Exception: Unknown expression or function identifier 'a' in scope WITH 10 AS a SELECT a + 1 AS a. Maybe you meant: ['a']. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001c98a45a in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5484: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c923b65 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:4734: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c9366b8 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5551: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c924136 in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5686: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c922741 in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5877: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b527 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6976: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91ea6e in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c91d1df in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7205: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c91cf1e in /usr/bin/clickhouse 15. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c90f7d7 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb6a6ec in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb69a58 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e598 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c5fe in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 29. ? @ 0x00007f1a0debbac3 in ? 30. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:05.978156 [ 50241 ] {9ab94275-9f31-413d-8fbe-fdf96d839b92} executeQuery: Code: 43. DB::Exception: Second argument (weight) for function quantileDeterministic must be unsigned integer, but it has type DateTime. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50662) (comment: 00809_add_days_segfault.sql) (in query: SELECT quantileDeterministic([], identity(( SELECT subtractDays((CAST((566450.398706) AS DateTime)), 54) ) )), '\0', [];), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, char const* const&, String&&) @ 0x000000000c58168c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:242: DB::AggregateFunctionQuantile, DB::NameQuantileDeterministic, true, double, false>::assertSecondArg(std::vector, std::allocator>> const&) @ 0x00000000147679f1 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionQuantileDeterministic.cpp:32: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionQuantile(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000014766ce4 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:101: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac0588a in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:23:05.979162 [ 50241 ] {9ab94275-9f31-413d-8fbe-fdf96d839b92} TCPHandler: Code: 43. DB::Exception: Second argument (weight) for function quantileDeterministic must be unsigned integer, but it has type DateTime. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, char const* const&, String&&) @ 0x000000000c58168c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:242: DB::AggregateFunctionQuantile, DB::NameQuantileDeterministic, true, double, false>::assertSecondArg(std::vector, std::allocator>> const&) @ 0x00000000147679f1 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionQuantileDeterministic.cpp:32: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionQuantile(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000014766ce4 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:101: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac0588a in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 2024.10.22 10:23:06.169982 [ 50241 ] {4e536c40-0a10-4614-9d82-604db5007656} executeQuery: Code: 43. DB::Exception: Illegal type Array(Nothing) of argument of function toDateTime: While processing addWeeks(CAST(-7644612.39732, 'DateTime'), -23578040.02833), CAST([], 'DateTime'), CAST([10977.08], 'String'): While processing (SELECT [], '(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2103: DB::FunctionConvert::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b589646 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b58873e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7b7130 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7b70c6 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7b7060 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7b7000 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7b6fab in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 2024.10.22 10:23:06.171241 [ 50241 ] {4e536c40-0a10-4614-9d82-604db5007656} TCPHandler: Code: 43. DB::Exception: Illegal type Array(Nothing) of argument of function toDateTime: While processing addWeeks(CAST(-7644612.39732, 'DateTime'), -23578040.02833), CAST([], 'DateTime'), CAST([10977.08], 'String'): While processing (SELECT [], '(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2103: DB::FunctionConvert::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b589646 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b58873e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7b7130 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7b70c6 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7b7060 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7b7000 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7b6fab in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 2024.10.22 10:23:06.536734 [ 12925 ] {d43d64cf-e7ef-48a5-923f-7ff0d98cd890} executeQuery: Code: 277. DB::Exception: Primary key (id, date) is not used and setting 'force_primary_key' is set. (INDEX_NOT_USED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50666) (comment: 00808_not_optimize_predicate.sql) (in query: SELECT * FROM (SELECT * FROM test_00808 LIMIT 1) WHERE id = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbaf3 in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1446: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea4876 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1373: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea2a33 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001eea274d in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1677: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001eea79ec in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1785: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8a5b in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:06.537588 [ 12925 ] {d43d64cf-e7ef-48a5-923f-7ff0d98cd890} TCPHandler: Code: 277. DB::Exception: Primary key (id, date) is not used and setting 'force_primary_key' is set. (INDEX_NOT_USED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbaf3 in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1446: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea4876 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1373: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea2a33 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001eea274d in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1677: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001eea79ec in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1785: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8a5b in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:06.568363 [ 12925 ] {328f1b3d-a4b3-4e19-a5fa-5df3f8fcb96d} executeQuery: Code: 277. DB::Exception: Primary key (id, date) is not used and setting 'force_primary_key' is set. (INDEX_NOT_USED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50666) (comment: 00808_not_optimize_predicate.sql) (in query: SELECT * FROM (SELECT id FROM test_00808 GROUP BY id LIMIT 1 BY id) WHERE id = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbaf3 in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1446: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea4876 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1373: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea2a33 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001eea274d in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1677: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001eea79ec in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1785: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8a5b in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:06.569128 [ 12925 ] {328f1b3d-a4b3-4e19-a5fa-5df3f8fcb96d} TCPHandler: Code: 277. DB::Exception: Primary key (id, date) is not used and setting 'force_primary_key' is set. (INDEX_NOT_USED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6dbaf3 in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1446: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea4876 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1373: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001eea2a33 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001eea274d in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1677: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001eea79ec in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1785: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001eea8a5b in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee55d6c in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee7c2ff in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd196b in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:09.670672 [ 50241 ] {c200dcf7-0732-49d2-ac13-d4e12d83b6d1} executeQuery: Code: 403. DB::Exception: JOIN (SELECT system.one.dummy AS val FROM system.one) AS s1 ANY LEFT JOIN (SELECT system.one.dummy AS val FROM system.one) AS s2 ON (s1.val + 0) = (s1.val * 1) cannot get JOIN keys. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59694) (comment: 00800_low_cardinality_merge_join.gen.sql) (in query: SELECT * FROM (SELECT dummy AS val FROM system.one) s1 ANY LEFT JOIN (SELECT dummy AS val FROM system.one) s2 ON val + 0 = val * 1 ORDER BY val;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Planner/PlannerJoins.cpp:443: DB::(anonymous namespace)::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::vector> const&, DB::JoinNode const&, std::shared_ptr const&) @ 0x000000001cbaa6de in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:511: DB::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cba9424 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:936: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb91fad in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:09.671547 [ 50241 ] {c200dcf7-0732-49d2-ac13-d4e12d83b6d1} TCPHandler: Code: 403. DB::Exception: JOIN (SELECT system.one.dummy AS val FROM system.one) AS s1 ANY LEFT JOIN (SELECT system.one.dummy AS val FROM system.one) AS s2 ON (s1.val + 0) = (s1.val * 1) cannot get JOIN keys. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Planner/PlannerJoins.cpp:443: DB::(anonymous namespace)::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::vector> const&, DB::JoinNode const&, std::shared_ptr const&) @ 0x000000001cbaa6de in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:511: DB::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cba9424 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:936: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb91fad in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:10.498103 [ 12925 ] {1b1afbc8-d5dd-4aaf-a8b4-33a33e8ce15a} executeQuery: Code: 42. DB::Exception: The signature of table function file shall be the following: - filename - filename, format - filename, format, structure - filename, format, structure, compression_method : While processing (SELECT * FROM file()) AS wqgdswyc. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59744) (comment: 00758_array_reverse.sql) (in query: SELECT '[RE7', ( SELECT '\0' ) AS riwwq, ( SELECT reverse([( SELECT bitTestAll(NULL) ) , ( SELECT '\0' ) AS ddfweeuy]) ) AS xuvv, '', ( SELECT * FROM file() ) AS wqgdswyc, ( SELECT * FROM file() );), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/TableFunctions/ITableFunctionFileLike.cpp:55: DB::ITableFunctionFileLike::parseArgumentsImpl(absl::lts_20211102::InlinedVector, 7ul, std::allocator>>&, std::shared_ptr const&) @ 0x000000001a97fbea in /usr/bin/clickhouse 7. /build/src/TableFunctions/ITableFunctionFileLike.cpp:49: DB::ITableFunctionFileLike::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a97fac1 in /usr/bin/clickhouse 8. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 9. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 10. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions&) @ 0x000000001cc96bb4 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp:102: DB::getQueryInterpreter(DB::ASTSubquery const&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x000000001cc95c9c in /usr/bin/clickhouse 18. /build/src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp:163: DB::ExecuteScalarSubqueriesMatcher::visit(DB::ASTSubquery const&, std::shared_ptr&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x000000001cc93984 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp:69: DB::ExecuteScalarSubqueriesMatcher::visit(std::shared_ptr&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x000000001cc93121 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cc92280 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cc92461 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cc9220a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cc92506 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cc9246e in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cc9220a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cc92506 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cc9246e in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cc9220a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cc91f65 in /usr/bin/clickhouse 30. /build/src/Interpreters/TreeRewriter.cpp:465: DB::(anonymous namespace)::executeScalarSubqueries(std::shared_ptr&, std::shared_ptr, unsigned long, std::map, std::allocator>>&, std::map, std::allocator>>&, bool, bool) @ 0x000000001cfa4688 in /usr/bin/clickhouse 31. /build/src/Interpreters/TreeRewriter.cpp:1225: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa15e2 in /usr/bin/clickhouse 2024.10.22 10:23:10.499589 [ 12925 ] {1b1afbc8-d5dd-4aaf-a8b4-33a33e8ce15a} TCPHandler: Code: 42. DB::Exception: The signature of table function file shall be the following: - filename - filename, format - filename, format, structure - filename, format, structure, compression_method : While processing (SELECT * FROM file()) AS wqgdswyc. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/TableFunctions/ITableFunctionFileLike.cpp:55: DB::ITableFunctionFileLike::parseArgumentsImpl(absl::lts_20211102::InlinedVector, 7ul, std::allocator>>&, std::shared_ptr const&) @ 0x000000001a97fbea in /usr/bin/clickhouse 7. /build/src/TableFunctions/ITableFunctionFileLike.cpp:49: DB::ITableFunctionFileLike::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a97fac1 in /usr/bin/clickhouse 8. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 9. /build/src/Interpreters/Context.cpp:1609: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdccbe4 in /usr/bin/clickhouse 10. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc24376 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions&) @ 0x000000001cc96bb4 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp:102: DB::getQueryInterpreter(DB::ASTSubquery const&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x000000001cc95c9c in /usr/bin/clickhouse 18. /build/src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp:163: DB::ExecuteScalarSubqueriesMatcher::visit(DB::ASTSubquery const&, std::shared_ptr&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x000000001cc93984 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp:69: DB::ExecuteScalarSubqueriesMatcher::visit(std::shared_ptr&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x000000001cc93121 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cc92280 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cc92461 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cc9220a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cc92506 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cc9246e in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cc9220a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cc92506 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cc9246e in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cc9220a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cc91f65 in /usr/bin/clickhouse 30. /build/src/Interpreters/TreeRewriter.cpp:465: DB::(anonymous namespace)::executeScalarSubqueries(std::shared_ptr&, std::shared_ptr, unsigned long, std::map, std::allocator>>&, std::map, std::allocator>>&, bool, bool) @ 0x000000001cfa4688 in /usr/bin/clickhouse 31. /build/src/Interpreters/TreeRewriter.cpp:1225: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa15e2 in /usr/bin/clickhouse 2024.10.22 10:23:10.976562 [ 50113 ] {c929c2fe-aca3-4fda-ae05-f66c2c141b64} StorageBuffer (test_ia2so94o.buffer_00753): Destination table test_ia2so94o.dst_00753 have different type of column y (String != UInt64). Block of data is converted. 2024.10.22 10:23:10.977040 [ 50113 ] {c929c2fe-aca3-4fda-ae05-f66c2c141b64} StorageBuffer (test_ia2so94o.buffer_00753): Not all columns from block in buffer exist in destination table test_ia2so94o.dst_00753. Some columns are discarded. 2024.10.22 10:23:11.038193 [ 50113 ] {fd08891a-9fe1-43b6-afe5-8e60e0eacb34} StorageBuffer (test_ia2so94o.buffer_00753): Destination table test_ia2so94o.dst_00753 doesn't have column x. The default values are used. 2024.10.22 10:23:11.038351 [ 50113 ] {fd08891a-9fe1-43b6-afe5-8e60e0eacb34} StorageBuffer (test_ia2so94o.buffer_00753): Destination table test_ia2so94o.dst_00753 has different type of column y (String != UInt64). Data from destination table are converted. 2024.10.22 10:23:11.062785 [ 50113 ] {4f8a46e7-4540-4609-b047-8c2d2bba2ca2} StorageBuffer (test_ia2so94o.buffer_00753): Destination table test_ia2so94o.dst_00753 have different type of column y (String != UInt64). Block of data is converted. 2024.10.22 10:23:11.063180 [ 50113 ] {4f8a46e7-4540-4609-b047-8c2d2bba2ca2} StorageBuffer (test_ia2so94o.buffer_00753): Not all columns from block in buffer exist in destination table test_ia2so94o.dst_00753. Some columns are discarded. 2024.10.22 10:23:11.125376 [ 50113 ] {0fe2f4fc-9345-4f8f-974a-27ea3af3d8f0} StorageBuffer (test_ia2so94o.buffer_00753): Destination table test_ia2so94o.dst_00753 doesn't have column x. The default values are used. 2024.10.22 10:23:11.125520 [ 50113 ] {0fe2f4fc-9345-4f8f-974a-27ea3af3d8f0} StorageBuffer (test_ia2so94o.buffer_00753): Destination table test_ia2so94o.dst_00753 has different type of column y (String != UInt64). Data from destination table are converted. 2024.10.22 10:23:11.364224 [ 50241 ] {15da3340-67f3-4578-9dbc-36e5e0ea00dd} executeQuery: Code: 403. DB::Exception: JOIN (SELECT system.one.dummy AS val FROM system.one) AS s1 ANY LEFT JOIN (SELECT system.one.dummy AS val FROM system.one) AS s2 ON (s1.val + 0) = (s1.val * 1) cannot get JOIN keys. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59694) (comment: 00800_low_cardinality_merge_join.gen.sql) (in query: SELECT * FROM (SELECT dummy AS val FROM system.one) s1 ANY LEFT JOIN (SELECT dummy AS val FROM system.one) s2 ON val + 0 = val * 1 ORDER BY val;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Planner/PlannerJoins.cpp:443: DB::(anonymous namespace)::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::vector> const&, DB::JoinNode const&, std::shared_ptr const&) @ 0x000000001cbaa6de in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:511: DB::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cba9424 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:936: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb91fad in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:11.365062 [ 50241 ] {15da3340-67f3-4578-9dbc-36e5e0ea00dd} TCPHandler: Code: 403. DB::Exception: JOIN (SELECT system.one.dummy AS val FROM system.one) AS s1 ANY LEFT JOIN (SELECT system.one.dummy AS val FROM system.one) AS s2 ON (s1.val + 0) = (s1.val * 1) cannot get JOIN keys. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Planner/PlannerJoins.cpp:443: DB::(anonymous namespace)::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::vector> const&, DB::JoinNode const&, std::shared_ptr const&) @ 0x000000001cbaa6de in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:511: DB::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cba9424 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:936: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb91fad in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:11.932915 [ 941 ] {} test_s3ap0n3b.replicated_table_detach_all2 (f1e82b0d-6e81-47bb-9828-470b9c9836da): Part 1_2_2_0 doesn't have metadata version on disk, setting it to 0. It's okay if the part was created by an old version of ClickHouse 2024.10.22 10:23:12.087366 [ 62321 ] {b426cdb6-fefb-45b5-9c63-0db970e2c53c} executeQuery: Code: 344. DB::Exception: Only support DROP/DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59762) (comment: 00753_alter_attach.sql) (in query: ALTER TABLE replicated_table_detach_all1 FETCH PARTITION ALL FROM '/clickhouse/tables/test_00753_{database}/replicated_table_detach_all1';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4c75be in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4945: DB::MergeTreeData::checkAlterPartitionIsPossible(std::vector> const&, std::shared_ptr const&, DB::Settings const&) const @ 0x000000001deaf173 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:184: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da1b3 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:12.088255 [ 62321 ] {b426cdb6-fefb-45b5-9c63-0db970e2c53c} TCPHandler: Code: 344. DB::Exception: Only support DROP/DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4c75be in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4945: DB::MergeTreeData::checkAlterPartitionIsPossible(std::vector> const&, std::shared_ptr const&, DB::Settings const&) const @ 0x000000001deaf173 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:184: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da1b3 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:12.302904 [ 62321 ] {f69a5ba5-62d8-40f5-8097-6ad1828c55c5} executeQuery: Code: 344. DB::Exception: Only support DROP/DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59762) (comment: 00753_alter_attach.sql) (in query: -- test PARTITION ALL ALTER TABLE partition_all2 REPLACE PARTITION ALL FROM partition_all;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4c75be in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4945: DB::MergeTreeData::checkAlterPartitionIsPossible(std::vector> const&, std::shared_ptr const&, DB::Settings const&) const @ 0x000000001deaf173 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:184: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da1b3 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:12.303453 [ 62321 ] {f69a5ba5-62d8-40f5-8097-6ad1828c55c5} TCPHandler: Code: 344. DB::Exception: Only support DROP/DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4c75be in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4945: DB::MergeTreeData::checkAlterPartitionIsPossible(std::vector> const&, std::shared_ptr const&, DB::Settings const&) const @ 0x000000001deaf173 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:184: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da1b3 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:12.308753 [ 62321 ] {d3ba703a-f337-4b48-97df-dacc36727556} executeQuery: Code: 344. DB::Exception: Only support DROP/DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59762) (comment: 00753_alter_attach.sql) (in query: ALTER TABLE partition_all MOVE PARTITION ALL TO TABLE partition_all2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4c75be in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4945: DB::MergeTreeData::checkAlterPartitionIsPossible(std::vector> const&, std::shared_ptr const&, DB::Settings const&) const @ 0x000000001deaf173 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:184: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da1b3 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:12.309330 [ 62321 ] {d3ba703a-f337-4b48-97df-dacc36727556} TCPHandler: Code: 344. DB::Exception: Only support DROP/DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4c75be in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4945: DB::MergeTreeData::checkAlterPartitionIsPossible(std::vector> const&, std::shared_ptr const&, DB::Settings const&) const @ 0x000000001deaf173 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:184: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da1b3 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:12.428699 [ 62321 ] {852931da-5310-4208-a70f-9d4cabade7c0} executeQuery: Code: 344. DB::Exception: Only Support DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59762) (comment: 00753_alter_attach.sql) (in query: ALTER TABLE partition_all2 CLEAR INDEX p IN PARTITION ALL;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25bebe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:5520: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de97344 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3223: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de93fc2 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:12.429432 [ 62321 ] {852931da-5310-4208-a70f-9d4cabade7c0} TCPHandler: Code: 344. DB::Exception: Only Support DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25bebe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:5520: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de97344 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3223: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de93fc2 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:12.440887 [ 62321 ] {89fbed68-798b-4942-84ff-8e3ff4cabc6a} executeQuery: Code: 344. DB::Exception: Only Support DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59762) (comment: 00753_alter_attach.sql) (in query: ALTER TABLE partition_all2 CLEAR COLUMN q IN PARTITION ALL;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25bebe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:5520: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de97344 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3223: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de93fc2 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:12.441581 [ 62321 ] {89fbed68-798b-4942-84ff-8e3ff4cabc6a} TCPHandler: Code: 344. DB::Exception: Only Support DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25bebe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:5520: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de97344 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3223: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de93fc2 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da55f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:12.552832 [ 62321 ] {fa64d3d5-713a-43f0-b5e9-044981680acd} executeQuery: Code: 344. DB::Exception: Only Support DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59762) (comment: 00753_alter_attach.sql) (in query: ALTER TABLE partition_all2 UPDATE q = q + 1 IN PARTITION ALL where p = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25bebe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:5520: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de97344 in /usr/bin/clickhouse 7. /build/src/Interpreters/MutationsInterpreter.cpp:226: DB::getPartitionAndPredicateExpressionForMutationCommand(DB::MutationCommand const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cc6a0a9 in /usr/bin/clickhouse 8. /build/src/Interpreters/MutationsInterpreter.cpp:1362: DB::MutationsInterpreter::getPartitionAndPredicateExpressionForMutationCommand(DB::MutationCommand const&) const @ 0x000000001cc71273 in /usr/bin/clickhouse 9. /build/src/Interpreters/MutationsInterpreter.cpp:623: DB::MutationsInterpreter::prepare(bool) @ 0x000000001cc6cc02 in /usr/bin/clickhouse 10. /build/src/Interpreters/MutationsInterpreter.cpp:365: DB::MutationsInterpreter::MutationsInterpreter(DB::MutationsInterpreter::Source, std::shared_ptr, DB::MutationCommands, std::vector>, std::shared_ptr, DB::MutationsInterpreter::Settings) @ 0x000000001cc6b4e1 in /usr/bin/clickhouse 11. /build/src/Interpreters/MutationsInterpreter.cpp:320: DB::MutationsInterpreter::MutationsInterpreter(std::shared_ptr, std::shared_ptr, DB::MutationCommands, std::shared_ptr, DB::MutationsInterpreter::Settings) @ 0x000000001cc6ace0 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterAlterQuery.cpp:178: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7d9f92 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:12.553870 [ 62321 ] {fa64d3d5-713a-43f0-b5e9-044981680acd} TCPHandler: Code: 344. DB::Exception: Only Support DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25bebe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:5520: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de97344 in /usr/bin/clickhouse 7. /build/src/Interpreters/MutationsInterpreter.cpp:226: DB::getPartitionAndPredicateExpressionForMutationCommand(DB::MutationCommand const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cc6a0a9 in /usr/bin/clickhouse 8. /build/src/Interpreters/MutationsInterpreter.cpp:1362: DB::MutationsInterpreter::getPartitionAndPredicateExpressionForMutationCommand(DB::MutationCommand const&) const @ 0x000000001cc71273 in /usr/bin/clickhouse 9. /build/src/Interpreters/MutationsInterpreter.cpp:623: DB::MutationsInterpreter::prepare(bool) @ 0x000000001cc6cc02 in /usr/bin/clickhouse 10. /build/src/Interpreters/MutationsInterpreter.cpp:365: DB::MutationsInterpreter::MutationsInterpreter(DB::MutationsInterpreter::Source, std::shared_ptr, DB::MutationCommands, std::vector>, std::shared_ptr, DB::MutationsInterpreter::Settings) @ 0x000000001cc6b4e1 in /usr/bin/clickhouse 11. /build/src/Interpreters/MutationsInterpreter.cpp:320: DB::MutationsInterpreter::MutationsInterpreter(std::shared_ptr, std::shared_ptr, DB::MutationCommands, std::shared_ptr, DB::MutationsInterpreter::Settings) @ 0x000000001cc6ace0 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterAlterQuery.cpp:178: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7d9f92 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:12.558977 [ 62321 ] {05ce38d1-2424-4d6c-b974-422325d2ed80} executeQuery: Code: 344. DB::Exception: Only support DROP/DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59762) (comment: 00753_alter_attach.sql) (in query: ALTER TABLE partition_all2 FREEZE PARTITION ALL;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4c75be in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4945: DB::MergeTreeData::checkAlterPartitionIsPossible(std::vector> const&, std::shared_ptr const&, DB::Settings const&) const @ 0x000000001deaf173 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:184: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da1b3 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:12.559531 [ 62321 ] {05ce38d1-2424-4d6c-b974-422325d2ed80} TCPHandler: Code: 344. DB::Exception: Only support DROP/DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4c75be in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4945: DB::MergeTreeData::checkAlterPartitionIsPossible(std::vector> const&, std::shared_ptr const&, DB::Settings const&) const @ 0x000000001deaf173 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:184: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da1b3 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:12.649476 [ 62321 ] {8d619f55-a6f9-4d13-9dcf-918d80c546e2} executeQuery: Code: 344. DB::Exception: Only Support DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59762) (comment: 00753_alter_attach.sql) (in query: CHECK TABLE partition_all2 PARTITION ALL;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25bebe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:5520: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de97344 in /usr/bin/clickhouse 7. /build/src/Storages/StorageMergeTree.cpp:2204: DB::StorageMergeTree::checkData(std::shared_ptr const&, std::shared_ptr) @ 0x000000001e3848ba in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCheckQuery.cpp:44: DB::InterpreterCheckQuery::execute() @ 0x000000001ca6f5e0 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:12.650310 [ 62321 ] {8d619f55-a6f9-4d13-9dcf-918d80c546e2} TCPHandler: Code: 344. DB::Exception: Only Support DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25bebe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:5520: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de97344 in /usr/bin/clickhouse 7. /build/src/Storages/StorageMergeTree.cpp:2204: DB::StorageMergeTree::checkData(std::shared_ptr const&, std::shared_ptr) @ 0x000000001e3848ba in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCheckQuery.cpp:44: DB::InterpreterCheckQuery::execute() @ 0x000000001ca6f5e0 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:12.737715 [ 62321 ] {c2acc011-f58e-47a0-888c-469d10ca2dc3} executeQuery: Code: 344. DB::Exception: Only Support DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59762) (comment: 00753_alter_attach.sql) (in query: OPTIMIZE TABLE partition_all2 PARTITION ALL;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25bebe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:5520: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de97344 in /usr/bin/clickhouse 7. /build/src/Storages/StorageMergeTree.cpp:1546: DB::StorageMergeTree::optimize(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr const&, bool, bool, std::vector> const&, bool, std::shared_ptr) @ 0x000000001e376153 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:82: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca981c5 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:12.738371 [ 62321 ] {c2acc011-f58e-47a0-888c-469d10ca2dc3} TCPHandler: Code: 344. DB::Exception: Only Support DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25bebe in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:5520: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de97344 in /usr/bin/clickhouse 7. /build/src/Storages/StorageMergeTree.cpp:1546: DB::StorageMergeTree::optimize(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr const&, bool, bool, std::vector> const&, bool, std::shared_ptr) @ 0x000000001e376153 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:82: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca981c5 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:14.452099 [ 12922 ] {1b94e8d0-f7d2-4540-a103-5e13f992ca83} executeQuery: Code: 417. DB::Exception: Expected ANY or ALL in JOIN section, because setting (join_default_strictness) is empty. (EXPECTED_ALL_OR_ANY) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59858) (comment: 00742_require_join_strictness.sql) (in query: SELECT * FROM system.one INNER JOIN (SELECT number AS k FROM system.numbers) js2 ON dummy = k;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [88]) @ 0x000000000b658abe in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:529: DB::(anonymous namespace)::setJoinStrictness(DB::ASTSelectQuery&, DB::JoinStrictness, bool, std::shared_ptr&) @ 0x000000001cfa4f02 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1247: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1990 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:14.452447 [ 50241 ] {6085009a-3f45-4b9f-9e09-6bdb90bc00a2} executeQuery: Code: 403. DB::Exception: JOIN (SELECT system.one.dummy AS val FROM system.one) AS s1 ANY LEFT JOIN (SELECT system.one.dummy AS val FROM system.one) AS s2 ON (s1.val + 0) = (s1.val * 1) cannot get JOIN keys. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59694) (comment: 00800_low_cardinality_merge_join.gen.sql) (in query: SELECT * FROM (SELECT dummy AS val FROM system.one) s1 ANY LEFT JOIN (SELECT dummy AS val FROM system.one) s2 ON val + 0 = val * 1 ORDER BY val;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Planner/PlannerJoins.cpp:443: DB::(anonymous namespace)::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::vector> const&, DB::JoinNode const&, std::shared_ptr const&) @ 0x000000001cbaa6de in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:511: DB::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cba9424 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:936: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb91fad in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:14.453121 [ 12922 ] {1b94e8d0-f7d2-4540-a103-5e13f992ca83} TCPHandler: Code: 417. DB::Exception: Expected ANY or ALL in JOIN section, because setting (join_default_strictness) is empty. (EXPECTED_ALL_OR_ANY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [88]) @ 0x000000000b658abe in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:529: DB::(anonymous namespace)::setJoinStrictness(DB::ASTSelectQuery&, DB::JoinStrictness, bool, std::shared_ptr&) @ 0x000000001cfa4f02 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1247: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1990 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:14.453980 [ 50241 ] {6085009a-3f45-4b9f-9e09-6bdb90bc00a2} TCPHandler: Code: 403. DB::Exception: JOIN (SELECT system.one.dummy AS val FROM system.one) AS s1 ANY LEFT JOIN (SELECT system.one.dummy AS val FROM system.one) AS s2 ON (s1.val + 0) = (s1.val * 1) cannot get JOIN keys. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Planner/PlannerJoins.cpp:443: DB::(anonymous namespace)::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::vector> const&, DB::JoinNode const&, std::shared_ptr const&) @ 0x000000001cbaa6de in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:511: DB::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cba9424 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:936: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb91fad in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb8cf45 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb6ea83 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb6ccd9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb6b0fd in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4912 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:16.671836 [ 62323 ] {e6bc1275-9511-43ee-8d36-88450e1c2632} executeQuery: Code: 319. DB::Exception: Unknown status, client must retry. Reason: Code: 159. DB::Exception: Timeout while waiting for quorum. (TIMEOUT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)). (UNKNOWN_STATUS_OF_INSERT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59880) (comment: 00732_quorum_insert_lost_part_zookeeper_long.sql) (in query: INSERT INTO quorum2 VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:1148: DB::ReplicatedMergeTreeSinkImpl::waitForQuorum(std::shared_ptr const&, String const&, String const&, int, unsigned long) const @ 0x000000001e327096 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:1069: DB::ReplicatedMergeTreeSinkImpl::commitPart(std::shared_ptr const&, std::shared_ptr&, String const&, unsigned long, bool) @ 0x000000001e325618 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:423: DB::ReplicatedMergeTreeSinkImpl::finishDelayedChunk(std::shared_ptr const&) @ 0x000000001e31a2d1 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:400: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e324558 in /usr/bin/clickhouse 10. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:23:16.673592 [ 62323 ] {e6bc1275-9511-43ee-8d36-88450e1c2632} TCPHandler: Code: 319. DB::Exception: Unknown status, client must retry. Reason: Code: 159. DB::Exception: Timeout while waiting for quorum. (TIMEOUT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)). (UNKNOWN_STATUS_OF_INSERT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:1148: DB::ReplicatedMergeTreeSinkImpl::waitForQuorum(std::shared_ptr const&, String const&, String const&, int, unsigned long) const @ 0x000000001e327096 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:1069: DB::ReplicatedMergeTreeSinkImpl::commitPart(std::shared_ptr const&, std::shared_ptr&, String const&, unsigned long, bool) @ 0x000000001e325618 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:423: DB::ReplicatedMergeTreeSinkImpl::finishDelayedChunk(std::shared_ptr const&) @ 0x000000001e31a2d1 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:400: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e324558 in /usr/bin/clickhouse 10. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:23:19.864377 [ 62323 ] {7be05d80-5fdb-4fc0-8d1a-8ede80a8636c} executeQuery: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37130) (comment: 00717_merge_and_distributed.sql) (in query: SELECT * FROM merge(currentDatabase(), 'test_local_1') PREWHERE _table = 'test_local_1';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001cab6c11 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab08f9 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:19.865220 [ 62323 ] {7be05d80-5fdb-4fc0-8d1a-8ede80a8636c} TCPHandler: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001cab6c11 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab08f9 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:19.913714 [ 62323 ] {e911c45e-89a6-4a81-be01-418778cb3418} executeQuery: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37130) (comment: 00717_merge_and_distributed.sql) (in query: SELECT * FROM merge(currentDatabase(), 'test_local_1') PREWHERE _table in ('test_local_1', 'test_local_2');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001cab6c11 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab08f9 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:19.914412 [ 62323 ] {e911c45e-89a6-4a81-be01-418778cb3418} TCPHandler: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001cab6c11 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab08f9 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:20.137628 [ 62323 ] {207f010a-ae57-48cc-9915-61e3e3cc81bb} executeQuery: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37130) (comment: 00717_merge_and_distributed.sql) (in query: SELECT * FROM merge(currentDatabase(), 'test_distributed_1') PREWHERE _table = 'test_distributed_1';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001cab6c11 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab08f9 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:20.138364 [ 62323 ] {207f010a-ae57-48cc-9915-61e3e3cc81bb} TCPHandler: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001cab6c11 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab08f9 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:20.198974 [ 62323 ] {30891050-adde-4c02-a579-58e9831747e8} executeQuery: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37130) (comment: 00717_merge_and_distributed.sql) (in query: SELECT * FROM merge(currentDatabase(), 'test_distributed_1') PREWHERE _table in ('test_distributed_1', 'test_distributed_2');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001cab6c11 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab08f9 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:20.199906 [ 62323 ] {30891050-adde-4c02-a579-58e9831747e8} TCPHandler: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001cab6c11 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab08f9 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:20.406303 [ 62323 ] {0f0e413b-2d96-4d3a-b315-12de9d927161} executeQuery: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37130) (comment: 00717_merge_and_distributed.sql) (in query: SELECT * FROM merge(currentDatabase(), 'test_local_1|test_local_2') PREWHERE _table = 'test_local_1';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001cab6c11 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab08f9 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:20.406988 [ 62323 ] {0f0e413b-2d96-4d3a-b315-12de9d927161} TCPHandler: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001cab6c11 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab08f9 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:20.476070 [ 62323 ] {6e67be57-259f-44f4-b7bd-061503efc819} executeQuery: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37130) (comment: 00717_merge_and_distributed.sql) (in query: SELECT * FROM merge(currentDatabase(), 'test_local_1|test_local_2') PREWHERE _table in ('test_local_1', 'test_local_2') ORDER BY value;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001cab6c11 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab08f9 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:20.477005 [ 62323 ] {6e67be57-259f-44f4-b7bd-061503efc819} TCPHandler: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001cab6c11 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab08f9 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:20.808241 [ 62323 ] {87282b97-620c-4132-90b4-648765d7665e} executeQuery: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37130) (comment: 00717_merge_and_distributed.sql) (in query: SELECT * FROM merge(currentDatabase(), 'test_local_1|test_distributed_2') PREWHERE _table = 'test_local_1';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001cab6c11 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab08f9 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:20.808978 [ 62323 ] {87282b97-620c-4132-90b4-648765d7665e} TCPHandler: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001cab6c11 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab08f9 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:20.895278 [ 62323 ] {56925006-6b08-44fe-aba5-802b0d854b25} executeQuery: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37130) (comment: 00717_merge_and_distributed.sql) (in query: SELECT * FROM merge(currentDatabase(), 'test_local_1|test_distributed_2') PREWHERE _table in ('test_local_1', 'test_distributed_2') ORDER BY value;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001cab6c11 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab08f9 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:20.895976 [ 62323 ] {56925006-6b08-44fe-aba5-802b0d854b25} TCPHandler: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001cab6c11 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab08f9 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:21.190997 [ 62323 ] {9273dc38-39b1-4e85-9c08-184981ccc876} executeQuery: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37130) (comment: 00717_merge_and_distributed.sql) (in query: SELECT * FROM merge(currentDatabase(), 'test_distributed_1|test_distributed_2') PREWHERE _table = 'test_distributed_1';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001cab6c11 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab08f9 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:21.191688 [ 62323 ] {9273dc38-39b1-4e85-9c08-184981ccc876} TCPHandler: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001cab6c11 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab08f9 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:21.284503 [ 62323 ] {4acab1a7-8ab7-459b-bbb2-4439f559dc19} executeQuery: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37130) (comment: 00717_merge_and_distributed.sql) (in query: SELECT * FROM merge(currentDatabase(), 'test_distributed_1|test_distributed_2') PREWHERE _table in ('test_distributed_1', 'test_distributed_2') ORDER BY value;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001cab6c11 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab08f9 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:21.285207 [ 62323 ] {4acab1a7-8ab7-459b-bbb2-4439f559dc19} TCPHandler: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001cab6c11 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cab08f9 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:22.688601 [ 62462 ] {f711d536-ad38-48de-a902-d79c0994eebf} executeQuery: Code: 43. DB::Exception: Illegal type Float64 of first argument of function toDecimal32OrZero. Conversion functions with postfix 'OrZero' or 'OrNull' should take String argument: While processing toDecimal32OrZero(1.1, 0). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37240) (comment: 00700_to_decimal_or_something.sql) (in query: SELECT toDecimal32OrZero(1.1, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2183: DB::FunctionConvertFromString>, DB::NameToDecimal32OrZero, (DB::ConvertFromStringExceptionMode)1, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bb59d6c in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:23:22.689568 [ 62462 ] {f711d536-ad38-48de-a902-d79c0994eebf} TCPHandler: Code: 43. DB::Exception: Illegal type Float64 of first argument of function toDecimal32OrZero. Conversion functions with postfix 'OrZero' or 'OrNull' should take String argument: While processing toDecimal32OrZero(1.1, 0). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2183: DB::FunctionConvertFromString>, DB::NameToDecimal32OrZero, (DB::ConvertFromStringExceptionMode)1, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bb59d6c in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:23:22.952298 [ 62462 ] {8cb3def8-8b2c-40f1-bbbc-e59a660a5139} executeQuery: Code: 44. DB::Exception: Second argument for function toDecimal32OrZero must be constant: While processing toDecimal32OrZero('1', rowNumberInBlock()). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37240) (comment: 00700_to_decimal_or_something.sql) (in query: SELECT toDecimal32OrZero('1', rowNumberInBlock());), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>, DB::NameToDecimal32OrZero, (DB::ConvertFromStringExceptionMode)1, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bb5a204 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:23:22.953479 [ 62462 ] {8cb3def8-8b2c-40f1-bbbc-e59a660a5139} TCPHandler: Code: 44. DB::Exception: Second argument for function toDecimal32OrZero must be constant: While processing toDecimal32OrZero('1', rowNumberInBlock()). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>, DB::NameToDecimal32OrZero, (DB::ConvertFromStringExceptionMode)1, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bb5a204 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:23:23.081442 [ 62462 ] {8723b89a-9d93-44ff-8cba-f8283577eb29} executeQuery: Code: 44. DB::Exception: Second argument for function toDecimal64OrZero must be constant: While processing toDecimal64OrZero('1', rowNumberInBlock()). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37240) (comment: 00700_to_decimal_or_something.sql) (in query: SELECT toDecimal64OrZero('1', rowNumberInBlock());), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>, DB::NameToDecimal64OrZero, (DB::ConvertFromStringExceptionMode)1, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bb5d564 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:23:23.202456 [ 62464 ] {e6b51974-7551-4f0c-9d6b-67f7a4904015} executeQuery: Code: 43. DB::Exception: Illegal type Decimal(9, 1) of argument of function pow: While processing toDecimal32('4.2', 1) AS x, pow(x, 2), pow(x, 0.5). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37228) (comment: 00700_decimal_math.sql) (in query: SELECT toDecimal32('4.2', 1) AS x, pow(x, 2), pow(x, 0.5);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionMathBinaryFloat64.h:45: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x00000000123efbc7 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionMathBinaryFloat64.h:50: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000012347b39 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:23:23.202467 [ 62462 ] {8723b89a-9d93-44ff-8cba-f8283577eb29} TCPHandler: Code: 44. DB::Exception: Second argument for function toDecimal64OrZero must be constant: While processing toDecimal64OrZero('1', rowNumberInBlock()). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>, DB::NameToDecimal64OrZero, (DB::ConvertFromStringExceptionMode)1, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bb5d564 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:23:23.203446 [ 62464 ] {e6b51974-7551-4f0c-9d6b-67f7a4904015} TCPHandler: Code: 43. DB::Exception: Illegal type Decimal(9, 1) of argument of function pow: While processing toDecimal32('4.2', 1) AS x, pow(x, 2), pow(x, 0.5). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionMathBinaryFloat64.h:45: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x00000000123efbc7 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionMathBinaryFloat64.h:50: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000012347b39 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:23:23.350313 [ 62462 ] {78a3307c-6b2d-4239-b190-21c649242bd9} executeQuery: Code: 44. DB::Exception: Second argument for function toDecimal128OrZero must be constant: While processing toDecimal128OrZero('1', rowNumberInBlock()). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37240) (comment: 00700_to_decimal_or_something.sql) (in query: SELECT toDecimal128OrZero('1', rowNumberInBlock());), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>>, DB::NameToDecimal128OrZero, (DB::ConvertFromStringExceptionMode)1, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bb60744 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:23:23.350670 [ 62464 ] {fcb2fa2e-0323-4013-9592-d14a7a1b3a59} executeQuery: Code: 43. DB::Exception: Illegal type Decimal(18, 1) of argument of function pow: While processing toDecimal64('4.2', 1) AS x, pow(x, 2), pow(x, 0.5). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37228) (comment: 00700_decimal_math.sql) (in query: SELECT toDecimal64('4.2', 1) AS x, pow(x, 2), pow(x, 0.5);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionMathBinaryFloat64.h:45: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x00000000123efbc7 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionMathBinaryFloat64.h:50: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000012347b39 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:23:23.364085 [ 62462 ] {78a3307c-6b2d-4239-b190-21c649242bd9} TCPHandler: Code: 44. DB::Exception: Second argument for function toDecimal128OrZero must be constant: While processing toDecimal128OrZero('1', rowNumberInBlock()). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>>, DB::NameToDecimal128OrZero, (DB::ConvertFromStringExceptionMode)1, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bb60744 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:23:23.364551 [ 62464 ] {fcb2fa2e-0323-4013-9592-d14a7a1b3a59} TCPHandler: Code: 43. DB::Exception: Illegal type Decimal(18, 1) of argument of function pow: While processing toDecimal64('4.2', 1) AS x, pow(x, 2), pow(x, 0.5). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionMathBinaryFloat64.h:45: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x00000000123efbc7 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionMathBinaryFloat64.h:50: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000012347b39 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:23:23.374796 [ 62464 ] {441d5308-edc5-42fc-9a2e-3b5aee4ee15d} executeQuery: Code: 43. DB::Exception: Illegal type Decimal(38, 1) of argument of function pow: While processing toDecimal128('4.2', 1) AS x, pow(x, 2), pow(x, 0.5). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37228) (comment: 00700_decimal_math.sql) (in query: SELECT toDecimal128('4.2', 1) AS x, pow(x, 2), pow(x, 0.5);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionMathBinaryFloat64.h:45: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x00000000123efbc7 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionMathBinaryFloat64.h:50: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000012347b39 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:23:23.375657 [ 62464 ] {441d5308-edc5-42fc-9a2e-3b5aee4ee15d} TCPHandler: Code: 43. DB::Exception: Illegal type Decimal(38, 1) of argument of function pow: While processing toDecimal128('4.2', 1) AS x, pow(x, 2), pow(x, 0.5). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionMathBinaryFloat64.h:45: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x00000000123efbc7 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionMathBinaryFloat64.h:50: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000012347b39 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b19cbac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:23:23.537827 [ 62462 ] {1743c2db-f471-4fdf-bcca-cc6ac23a7e82} executeQuery: Code: 43. DB::Exception: Illegal type Float64 of first argument of function toDecimal32OrNull. Conversion functions with postfix 'OrZero' or 'OrNull' should take String argument: While processing toDecimal32OrNull(1.1, 0). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37240) (comment: 00700_to_decimal_or_something.sql) (in query: SELECT toDecimal32OrNull(1.1, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2183: DB::FunctionConvertFromString>, DB::NameToDecimal32OrNull, (DB::ConvertFromStringExceptionMode)2, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bbd40ec in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:23:23.538851 [ 62462 ] {1743c2db-f471-4fdf-bcca-cc6ac23a7e82} TCPHandler: Code: 43. DB::Exception: Illegal type Float64 of first argument of function toDecimal32OrNull. Conversion functions with postfix 'OrZero' or 'OrNull' should take String argument: While processing toDecimal32OrNull(1.1, 0). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2183: DB::FunctionConvertFromString>, DB::NameToDecimal32OrNull, (DB::ConvertFromStringExceptionMode)2, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bbd40ec in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:23:23.849590 [ 62462 ] {b39e0903-a8b5-4731-ae00-9658d795b9e1} executeQuery: Code: 44. DB::Exception: Second argument for function toDecimal32OrNull must be constant: While processing toDecimal32OrNull('1', rowNumberInBlock()). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37240) (comment: 00700_to_decimal_or_something.sql) (in query: SELECT toDecimal32OrNull('1', rowNumberInBlock());), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>, DB::NameToDecimal32OrNull, (DB::ConvertFromStringExceptionMode)2, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bbd4584 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:23:23.850796 [ 62462 ] {b39e0903-a8b5-4731-ae00-9658d795b9e1} TCPHandler: Code: 44. DB::Exception: Second argument for function toDecimal32OrNull must be constant: While processing toDecimal32OrNull('1', rowNumberInBlock()). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>, DB::NameToDecimal32OrNull, (DB::ConvertFromStringExceptionMode)2, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bbd4584 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:23:24.012626 [ 62462 ] {ac2adf30-ed3e-4e21-8db7-d8e7ed29acbf} executeQuery: Code: 44. DB::Exception: Second argument for function toDecimal64OrNull must be constant: While processing toDecimal64OrNull('1', rowNumberInBlock()). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37240) (comment: 00700_to_decimal_or_something.sql) (in query: SELECT toDecimal64OrNull('1', rowNumberInBlock());), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>, DB::NameToDecimal64OrNull, (DB::ConvertFromStringExceptionMode)2, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bbd7844 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:23:24.206219 [ 62323 ] {1ac273a2-937b-4876-b4be-339ebea78260} executeQuery: Code: 69. DB::Exception: Scale 36 is out of bounds (max scale: 18): While processing e + e, e - e, e * e, e / e, intDiv(e, e), intDivOrZero(e, e). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37270) (comment: 00700_decimal_arithm.sql) (in query: SELECT e + e, e - e, e * e, e / e, intDiv(e, e), intDivOrZero(e, e) FROM decimal WHERE e > 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x000000000b2361ec in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeDecimalBase.h:78: DB::DataTypeDecimalBase>::DataTypeDecimalBase(unsigned int, unsigned int) @ 0x000000000b4fe83b in /usr/bin/clickhouse 7. /build/src/DataTypes/DataTypesDecimal.h:37: DB::DataTypeDecimal>::DataTypeDecimal(unsigned int, unsigned int) @ 0x000000000b4fe465 in /usr/bin/clickhouse 8. /build/src/DataTypes/DataTypeDecimalBase.h:174: auto DB::decimalResultType, DB::Decimal, DB::DataTypeDecimal>(DB::DataTypeDecimal> const&, DB::Decimal> const&) @ 0x00000000112ca4ff in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:1584: auto DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)::operator()>, DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x00000000114a145a in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x00000000114a0ae4 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)&&) @ 0x00000000114a038d in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000001149ff7d in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000001148e153 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000001148d9ed in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000001148d5dd in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000001148d5b1 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:1506: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001148d2fe in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001119fb0f in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 2024.10.22 10:23:24.206167 [ 62462 ] {ac2adf30-ed3e-4e21-8db7-d8e7ed29acbf} TCPHandler: Code: 44. DB::Exception: Second argument for function toDecimal64OrNull must be constant: While processing toDecimal64OrNull('1', rowNumberInBlock()). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>, DB::NameToDecimal64OrNull, (DB::ConvertFromStringExceptionMode)2, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bbd7844 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:23:24.207789 [ 62323 ] {1ac273a2-937b-4876-b4be-339ebea78260} TCPHandler: Code: 69. DB::Exception: Scale 36 is out of bounds (max scale: 18): While processing e + e, e - e, e * e, e / e, intDiv(e, e), intDivOrZero(e, e). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x000000000b2361ec in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeDecimalBase.h:78: DB::DataTypeDecimalBase>::DataTypeDecimalBase(unsigned int, unsigned int) @ 0x000000000b4fe83b in /usr/bin/clickhouse 7. /build/src/DataTypes/DataTypesDecimal.h:37: DB::DataTypeDecimal>::DataTypeDecimal(unsigned int, unsigned int) @ 0x000000000b4fe465 in /usr/bin/clickhouse 8. /build/src/DataTypes/DataTypeDecimalBase.h:174: auto DB::decimalResultType, DB::Decimal, DB::DataTypeDecimal>(DB::DataTypeDecimal> const&, DB::Decimal> const&) @ 0x00000000112ca4ff in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:1584: auto DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)::operator()>, DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x00000000114a145a in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x00000000114a0ae4 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)&&) @ 0x00000000114a038d in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000001149ff7d in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000001148e153 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000001148d9ed in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000001148d5dd in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000001148d5b1 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:1506: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001148d2fe in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001119fb0f in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 2024.10.22 10:23:24.346551 [ 62462 ] {1b417785-79f4-4f1f-906d-2578479c2c2a} executeQuery: Code: 44. DB::Exception: Second argument for function toDecimal128OrNull must be constant: While processing toDecimal128OrNull('1', rowNumberInBlock()). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37240) (comment: 00700_to_decimal_or_something.sql) (in query: SELECT toDecimal128OrNull('1', rowNumberInBlock());), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>>, DB::NameToDecimal128OrNull, (DB::ConvertFromStringExceptionMode)2, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bbdab04 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:23:24.549382 [ 62462 ] {1b417785-79f4-4f1f-906d-2578479c2c2a} TCPHandler: Code: 44. DB::Exception: Second argument for function toDecimal128OrNull must be constant: While processing toDecimal128OrNull('1', rowNumberInBlock()). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>>, DB::NameToDecimal128OrNull, (DB::ConvertFromStringExceptionMode)2, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bbdab04 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 2024.10.22 10:23:24.549494 [ 62323 ] {d2a89cc6-8efa-4ca8-99c5-b11e1d5b4147} executeQuery: Code: 69. DB::Exception: Scale 76 is out of bounds (max scale: 38): While processing f + f, f - f, f * f, f / f, intDiv(f, f), intDivOrZero(f, f). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37270) (comment: 00700_decimal_arithm.sql) (in query: SELECT f + f, f - f, f * f, f / f, intDiv(f, f), intDivOrZero(f, f) FROM decimal WHERE f > 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x000000000b2361ec in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeDecimalBase.h:78: DB::DataTypeDecimalBase>>::DataTypeDecimalBase(unsigned int, unsigned int) @ 0x000000000b51727b in /usr/bin/clickhouse 7. /build/src/DataTypes/DataTypesDecimal.h:37: DB::DataTypeDecimal>>::DataTypeDecimal(unsigned int, unsigned int) @ 0x000000000b516ea5 in /usr/bin/clickhouse 8. /build/src/DataTypes/DataTypeDecimalBase.h:174: auto DB::decimalResultType>, DB::Decimal>, DB::DataTypeDecimal>(DB::DataTypeDecimal>> const&, DB::Decimal>>> const&) @ 0x00000000112f20ff in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:1584: auto DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)::operator()>>, DB::DataTypeDecimal>>>(auto const&, auto const&) const @ 0x00000000114a2dfa in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x00000000114a23e4 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)&&) @ 0x00000000114a1c9c in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x00000000114a183d in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000001148e193 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000001148da3c in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000001148d5dd in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000001148d5b1 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:1506: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001148d2fe in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001119fb0f in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 2024.10.22 10:23:24.551080 [ 62323 ] {d2a89cc6-8efa-4ca8-99c5-b11e1d5b4147} TCPHandler: Code: 69. DB::Exception: Scale 76 is out of bounds (max scale: 38): While processing f + f, f - f, f * f, f / f, intDiv(f, f), intDivOrZero(f, f). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x000000000b2361ec in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeDecimalBase.h:78: DB::DataTypeDecimalBase>>::DataTypeDecimalBase(unsigned int, unsigned int) @ 0x000000000b51727b in /usr/bin/clickhouse 7. /build/src/DataTypes/DataTypesDecimal.h:37: DB::DataTypeDecimal>>::DataTypeDecimal(unsigned int, unsigned int) @ 0x000000000b516ea5 in /usr/bin/clickhouse 8. /build/src/DataTypes/DataTypeDecimalBase.h:174: auto DB::decimalResultType>, DB::Decimal>, DB::DataTypeDecimal>(DB::DataTypeDecimal>> const&, DB::Decimal>>> const&) @ 0x00000000112f20ff in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:1584: auto DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)::operator()>>, DB::DataTypeDecimal>>>(auto const&, auto const&) const @ 0x00000000114a2dfa in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x00000000114a23e4 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)&&) @ 0x00000000114a1c9c in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x00000000114a183d in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000001148e193 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000001148da3c in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000001148d5dd in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000001148d5b1 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:1506: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001148d2fe in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001119fb0f in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 2024.10.22 10:23:24.810535 [ 62323 ] {e7ce93ee-3cf0-4684-8d78-b92d13ed549c} executeQuery: Code: 407. DB::Exception: Decimal math overflow: while executing 'FUNCTION multiply(h : 0, h : 0) -> multiply(h, h) Decimal(18, 18) : 3'. (DECIMAL_OVERFLOW) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37270) (comment: 00700_decimal_arithm.sql) (in query: SELECT h + h, h - h, h * h, h / h, intDiv(h, h), intDivOrZero(h, h) FROM decimal WHERE h > 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b244b5e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:678: DB::impl_::DecimalBinaryOperation, true>::apply(long, long) @ 0x00000000111b2b57 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:593: auto void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)0, true, true, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*)::'lambda'(auto const&, auto const&)::operator()(auto const&, auto const&) const @ 0x00000000112cab47 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:643: void DB::impl_::DecimalBinaryOperation, true>::processWithRightNullmapImpl<(DB::impl_::OpCase)0, void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)0, true, true, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*)::'lambda'(auto const&, auto const&), DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, unsigned long, DB::PODArray, 63ul, 64ul> const*, auto) @ 0x00000000112caabd in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:597: void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)0, true, true, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*) @ 0x00000000112ca7c8 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:1246: void DB::FunctionBinaryArithmetic::helperInvokeEither<(DB::impl_::OpCase)0, true, true, DB::impl_::DecimalBinaryOperation, false>, DB::impl_::DecimalBinaryOperation, true>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::Decimal, DB::Decimal>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, DB::Decimal, DB::Decimal, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000001144ad3c in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1325: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::ColumnDecimal>, DB::ColumnDecimal>>(DB::DataTypeDecimal> const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnDecimal> const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000001144aaa5 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric>, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeDecimal> const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000001144a584 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator()>, DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000001144a39b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x0000000011440e24 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)&&) @ 0x00000000114406cd in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x00000000114402bd in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x00000000113b4a33 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x00000000113b42cd in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x00000000113b3ebd in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x00000000113b32f1 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x00000000113b2fbf in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000113b0a16 in /usr/bin/clickhouse 23. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 29. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 30. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 31. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 2024.10.22 10:23:24.957641 [ 62464 ] {59233743-347b-4ee0-b76b-2a82dab369d6} executeQuery: Code: 6. DB::Exception: Cannot parse string 'x123' as Decimal(9, 4): syntax error at begin of string: While processing toDecimal32('x123', 4). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal32 ('x123', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56d10 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:24.957943 [ 62323 ] {e7ce93ee-3cf0-4684-8d78-b92d13ed549c} TCPHandler: Code: 407. DB::Exception: Decimal math overflow: while executing 'FUNCTION multiply(h : 0, h : 0) -> multiply(h, h) Decimal(18, 18) : 3'. (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b244b5e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:678: DB::impl_::DecimalBinaryOperation, true>::apply(long, long) @ 0x00000000111b2b57 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:593: auto void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)0, true, true, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*)::'lambda'(auto const&, auto const&)::operator()(auto const&, auto const&) const @ 0x00000000112cab47 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:643: void DB::impl_::DecimalBinaryOperation, true>::processWithRightNullmapImpl<(DB::impl_::OpCase)0, void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)0, true, true, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*)::'lambda'(auto const&, auto const&), DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, unsigned long, DB::PODArray, 63ul, 64ul> const*, auto) @ 0x00000000112caabd in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:597: void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)0, true, true, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*) @ 0x00000000112ca7c8 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:1246: void DB::FunctionBinaryArithmetic::helperInvokeEither<(DB::impl_::OpCase)0, true, true, DB::impl_::DecimalBinaryOperation, false>, DB::impl_::DecimalBinaryOperation, true>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::Decimal, DB::Decimal>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, DB::Decimal, DB::Decimal, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000001144ad3c in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1325: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::ColumnDecimal>, DB::ColumnDecimal>>(DB::DataTypeDecimal> const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnDecimal> const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000001144aaa5 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric>, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeDecimal> const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000001144a584 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator()>, DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000001144a39b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x0000000011440e24 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)&&) @ 0x00000000114406cd in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x00000000114402bd in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x00000000113b4a33 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x00000000113b42cd in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x00000000113b3ebd in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x00000000113b32f1 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x00000000113b2fbf in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000113b0a16 in /usr/bin/clickhouse 23. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 29. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 30. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 31. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 2024.10.22 10:23:24.958892 [ 62464 ] {59233743-347b-4ee0-b76b-2a82dab369d6} TCPHandler: Code: 6. DB::Exception: Cannot parse string 'x123' as Decimal(9, 4): syntax error at begin of string: While processing toDecimal32('x123', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56d10 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:25.122872 [ 62464 ] {7ea962c3-233e-4d0c-9389-7db379c08ad6} executeQuery: Code: 32. DB::Exception: Attempt to read after eof: Cannot parse Decimal(9, 4) from String, because value is too short: While processing toDecimal32('', 4). (ATTEMPT_TO_READ_AFTER_EOF) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal32 ('', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5e521e in /usr/bin/clickhouse 6. /build/src/IO/VarInt.cpp:13: DB::throwReadAfterEOF() @ 0x000000001399e351 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:41: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b407018 in /usr/bin/clickhouse 8. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9af966 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3ef5e in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56cc7 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 12. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 2024.10.22 10:23:25.124291 [ 62464 ] {7ea962c3-233e-4d0c-9389-7db379c08ad6} TCPHandler: Code: 32. DB::Exception: Attempt to read after eof: Cannot parse Decimal(9, 4) from String, because value is too short: While processing toDecimal32('', 4). (ATTEMPT_TO_READ_AFTER_EOF), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5e521e in /usr/bin/clickhouse 6. /build/src/IO/VarInt.cpp:13: DB::throwReadAfterEOF() @ 0x000000001399e351 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:41: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b407018 in /usr/bin/clickhouse 8. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9af966 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3ef5e in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56cc7 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 12. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 2024.10.22 10:23:25.136166 [ 62464 ] {8bf420e4-2e52-4e28-a4a5-710f13dc2293} executeQuery: Code: 6. DB::Exception: Cannot parse string '\0' as Decimal(9, 4): syntax error at begin of string: While processing toDecimal32('\0', 4). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal32 ('\0', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56d10 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:25.137374 [ 62464 ] {8bf420e4-2e52-4e28-a4a5-710f13dc2293} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\0' as Decimal(9, 4): syntax error at begin of string: While processing toDecimal32('\0', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56d10 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:25.147780 [ 62464 ] {08f6509a-8031-4870-951b-0802c64f4367} executeQuery: Code: 6. DB::Exception: Cannot parse string '\0\0\0\0\0' as Decimal(9, 4): syntax error at begin of string: While processing toDecimal32('\0\0\0\0\0', 4). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal32 ('\0\0\0\0\0', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56d10 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:25.149408 [ 62464 ] {08f6509a-8031-4870-951b-0802c64f4367} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\0\0\0\0\0' as Decimal(9, 4): syntax error at begin of string: While processing toDecimal32('\0\0\0\0\0', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56d10 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:25.160083 [ 62464 ] {185a773f-75f7-42f1-92bb-97d5de2ce390} executeQuery: Code: 6. DB::Exception: Cannot parse string '\n\t\r' as Decimal(9, 4): syntax error at begin of string: While processing toDecimal32('\n\t\r', 4). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal32 ('\n\t\r', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56d10 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:25.161332 [ 62464 ] {185a773f-75f7-42f1-92bb-97d5de2ce390} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\n\t\r' as Decimal(9, 4): syntax error at begin of string: While processing toDecimal32('\n\t\r', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56d10 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:25.171395 [ 62464 ] {aa36e1a5-91b1-44e7-8cef-558b4c4bb47e} executeQuery: Code: 6. DB::Exception: Cannot parse string '\'' as Decimal(9, 4): syntax error at begin of string: While processing toDecimal32('\'', 4). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal32 ('\'', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56d10 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:25.172287 [ 62464 ] {aa36e1a5-91b1-44e7-8cef-558b4c4bb47e} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\'' as Decimal(9, 4): syntax error at begin of string: While processing toDecimal32('\'', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56d10 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:25.393721 [ 62323 ] {bacdb472-e830-4899-99aa-983a11016c52} executeQuery: Code: 407. DB::Exception: Decimal math overflow: while executing 'FUNCTION plus(e : 0, 21 : 1) -> plus(e, 21) Decimal(18, 18) : 4'. (DECIMAL_OVERFLOW) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37270) (comment: 00700_decimal_arithm.sql) (in query: SELECT e + 21, e - 21, e - 84, e * 21, e * -21, e / 21, e / 84 FROM decimal WHERE e > 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b244b5e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:706: long DB::impl_::DecimalBinaryOperation, true>::applyScaled(long, long, long) @ 0x0000000011973021 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:550: void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)2, true, false, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, long>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*) @ 0x0000000011a8188a in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1246: void DB::FunctionBinaryArithmetic::helperInvokeEither<(DB::impl_::OpCase)2, true, false, DB::impl_::DecimalBinaryOperation, false>, DB::impl_::DecimalBinaryOperation, true>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::Decimal, DB::Decimal>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, DB::Decimal, DB::Decimal, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011c261dc in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:1341: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::ColumnDecimal>, DB::ColumnVector>(DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnDecimal> const*, DB::ColumnVector const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011c25e7a in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric>, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011c25784 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator()>, DB::DataTypeNumber>(auto const&, auto const&) const @ 0x0000000011c2559b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x0000000011c24fc4 in /usr/bin/clickhouse 13. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)&&) @ 0x0000000011c24807 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000011c2479d in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x0000000011b8f933 in /usr/bin/clickhouse 16. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x0000000011b8f1cd in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000011b8edbd in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x0000000011b8e1f1 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b8debf in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b8b1f6 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b89dec in /usr/bin/clickhouse 22. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 28. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 29. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 30. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 2024.10.22 10:23:25.515107 [ 62464 ] {abe96df7-9a01-4656-9c15-2605a9b04002} executeQuery: Code: 6. DB::Exception: Cannot parse string 'x123' as Decimal(18, 4): syntax error at begin of string: While processing toDecimal64('x123', 4). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal64 ('x123', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75890 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:25.515260 [ 62323 ] {bacdb472-e830-4899-99aa-983a11016c52} TCPHandler: Code: 407. DB::Exception: Decimal math overflow: while executing 'FUNCTION plus(e : 0, 21 : 1) -> plus(e, 21) Decimal(18, 18) : 4'. (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b244b5e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:706: long DB::impl_::DecimalBinaryOperation, true>::applyScaled(long, long, long) @ 0x0000000011973021 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:550: void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)2, true, false, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, long>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*) @ 0x0000000011a8188a in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1246: void DB::FunctionBinaryArithmetic::helperInvokeEither<(DB::impl_::OpCase)2, true, false, DB::impl_::DecimalBinaryOperation, false>, DB::impl_::DecimalBinaryOperation, true>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::Decimal, DB::Decimal>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, DB::Decimal, DB::Decimal, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011c261dc in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:1341: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::ColumnDecimal>, DB::ColumnVector>(DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnDecimal> const*, DB::ColumnVector const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011c25e7a in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric>, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011c25784 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator()>, DB::DataTypeNumber>(auto const&, auto const&) const @ 0x0000000011c2559b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x0000000011c24fc4 in /usr/bin/clickhouse 13. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)&&) @ 0x0000000011c24807 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000011c2479d in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x0000000011b8f933 in /usr/bin/clickhouse 16. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x0000000011b8f1cd in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000011b8edbd in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x0000000011b8e1f1 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b8debf in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b8b1f6 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b89dec in /usr/bin/clickhouse 22. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 28. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 29. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 30. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 2024.10.22 10:23:25.516087 [ 62464 ] {abe96df7-9a01-4656-9c15-2605a9b04002} TCPHandler: Code: 6. DB::Exception: Cannot parse string 'x123' as Decimal(18, 4): syntax error at begin of string: While processing toDecimal64('x123', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75890 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:25.647953 [ 62464 ] {ad588272-1c73-4ece-9845-7dd243b076e8} executeQuery: Code: 32. DB::Exception: Attempt to read after eof: Cannot parse Decimal(18, 4) from String, because value is too short: While processing toDecimal64('', 4). (ATTEMPT_TO_READ_AFTER_EOF) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal64 ('', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5e521e in /usr/bin/clickhouse 6. /build/src/IO/VarInt.cpp:13: DB::throwReadAfterEOF() @ 0x000000001399e351 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:41: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b4077dc in /usr/bin/clickhouse 8. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0106 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3f63e in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75847 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 12. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 2024.10.22 10:23:25.648832 [ 62464 ] {ad588272-1c73-4ece-9845-7dd243b076e8} TCPHandler: Code: 32. DB::Exception: Attempt to read after eof: Cannot parse Decimal(18, 4) from String, because value is too short: While processing toDecimal64('', 4). (ATTEMPT_TO_READ_AFTER_EOF), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5e521e in /usr/bin/clickhouse 6. /build/src/IO/VarInt.cpp:13: DB::throwReadAfterEOF() @ 0x000000001399e351 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:41: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b4077dc in /usr/bin/clickhouse 8. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0106 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3f63e in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75847 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 12. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 2024.10.22 10:23:25.657237 [ 62464 ] {356da443-fbff-4310-a59f-bcdacba61d48} executeQuery: Code: 6. DB::Exception: Cannot parse string '\0' as Decimal(18, 4): syntax error at begin of string: While processing toDecimal64('\0', 4). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal64 ('\0', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75890 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:25.658093 [ 62464 ] {356da443-fbff-4310-a59f-bcdacba61d48} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\0' as Decimal(18, 4): syntax error at begin of string: While processing toDecimal64('\0', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75890 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:25.665765 [ 62464 ] {90d7afb0-4be4-4d09-85f4-805ab4139a8c} executeQuery: Code: 6. DB::Exception: Cannot parse string '\0\0\0\0\0' as Decimal(18, 4): syntax error at begin of string: While processing toDecimal64('\0\0\0\0\0', 4). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal64 ('\0\0\0\0\0', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75890 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:25.666718 [ 62464 ] {90d7afb0-4be4-4d09-85f4-805ab4139a8c} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\0\0\0\0\0' as Decimal(18, 4): syntax error at begin of string: While processing toDecimal64('\0\0\0\0\0', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75890 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:25.674635 [ 62464 ] {5a3b7073-a7fc-426c-ba03-d5a0307ac67a} executeQuery: Code: 6. DB::Exception: Cannot parse string '\n\t\r' as Decimal(18, 4): syntax error at begin of string: While processing toDecimal64('\n\t\r', 4). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal64 ('\n\t\r', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75890 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:25.675425 [ 62464 ] {5a3b7073-a7fc-426c-ba03-d5a0307ac67a} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\n\t\r' as Decimal(18, 4): syntax error at begin of string: While processing toDecimal64('\n\t\r', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75890 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:25.682966 [ 62464 ] {87afad0d-fa50-4877-9d6e-c773e0cced44} executeQuery: Code: 6. DB::Exception: Cannot parse string '\'' as Decimal(18, 4): syntax error at begin of string: While processing toDecimal64('\'', 4). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal64 ('\'', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75890 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:25.683712 [ 62464 ] {87afad0d-fa50-4877-9d6e-c773e0cced44} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\'' as Decimal(18, 4): syntax error at begin of string: While processing toDecimal64('\'', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75890 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:25.843496 [ 62464 ] {aed463bd-caae-4057-86e0-4feb59ac42b5} executeQuery: Code: 6. DB::Exception: Cannot parse string 'x123' as Decimal(38, 4): syntax error at begin of string: While processing toDecimal128('x123', 4). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal128 ('x123', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94890 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:26.027437 [ 62464 ] {aed463bd-caae-4057-86e0-4feb59ac42b5} TCPHandler: Code: 6. DB::Exception: Cannot parse string 'x123' as Decimal(38, 4): syntax error at begin of string: While processing toDecimal128('x123', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94890 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:26.027517 [ 62323 ] {38294467-513c-4cdf-8af9-2cab3a5e4d9c} executeQuery: Code: 407. DB::Exception: Decimal math overflow: while executing 'FUNCTION plus(21 : 1, e : 0) -> plus(21, e) Decimal(18, 18) : 4'. (DECIMAL_OVERFLOW) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37270) (comment: 00700_decimal_arithm.sql) (in query: SELECT 21 + e, 21 - e, 84 - e, 21 * e, -21 * e, 21 / e, 84 / e FROM decimal WHERE e > 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b244b5e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:706: long DB::impl_::DecimalBinaryOperation, true>::applyScaled(long, long, long) @ 0x0000000011972f21 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:541: void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)1, false, true, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*) @ 0x0000000011973a7f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1246: void DB::FunctionBinaryArithmetic::helperInvokeEither<(DB::impl_::OpCase)1, false, true, DB::impl_::DecimalBinaryOperation, false>, DB::impl_::DecimalBinaryOperation, true>, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::Decimal, DB::Decimal>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, DB::Decimal, DB::Decimal, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b9759c in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:1333: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b971df in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b96ba4 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x0000000011b969bb in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x0000000011b90704 in /usr/bin/clickhouse 13. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x0000000011b8ffad in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000011b8fb9d in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x0000000011b8f5f3 in /usr/bin/clickhouse 16. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x0000000011b8ee27 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000011b8edbd in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x0000000011b8e1f1 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b8debf in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b8b1f6 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b89dec in /usr/bin/clickhouse 22. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 28. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 29. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 30. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 2024.10.22 10:23:26.029879 [ 62323 ] {38294467-513c-4cdf-8af9-2cab3a5e4d9c} TCPHandler: Code: 407. DB::Exception: Decimal math overflow: while executing 'FUNCTION plus(21 : 1, e : 0) -> plus(21, e) Decimal(18, 18) : 4'. (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b244b5e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:706: long DB::impl_::DecimalBinaryOperation, true>::applyScaled(long, long, long) @ 0x0000000011972f21 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:541: void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)1, false, true, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*) @ 0x0000000011973a7f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1246: void DB::FunctionBinaryArithmetic::helperInvokeEither<(DB::impl_::OpCase)1, false, true, DB::impl_::DecimalBinaryOperation, false>, DB::impl_::DecimalBinaryOperation, true>, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::Decimal, DB::Decimal>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, DB::Decimal, DB::Decimal, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b9759c in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:1333: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b971df in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b96ba4 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x0000000011b969bb in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x0000000011b90704 in /usr/bin/clickhouse 13. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x0000000011b8ffad in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000011b8fb9d in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x0000000011b8f5f3 in /usr/bin/clickhouse 16. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x0000000011b8ee27 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000011b8edbd in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x0000000011b8e1f1 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b8debf in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b8b1f6 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b89dec in /usr/bin/clickhouse 22. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 28. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 29. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 30. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 2024.10.22 10:23:26.166378 [ 62464 ] {235351d1-3636-4741-a36f-1733220cc1ee} executeQuery: Code: 32. DB::Exception: Attempt to read after eof: Cannot parse Decimal(38, 4) from String, because value is too short: While processing toDecimal128('', 4). (ATTEMPT_TO_READ_AFTER_EOF) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal128 ('', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5e521e in /usr/bin/clickhouse 6. /build/src/IO/VarInt.cpp:13: DB::throwReadAfterEOF() @ 0x000000001399e351 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:41: bool DB::readDigits>>(DB::ReadBuffer&, DB::Decimal>&, unsigned int&, int&, bool) @ 0x000000001b407ffb in /usr/bin/clickhouse 8. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9b08e6 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3fd5e in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94847 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 12. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 2024.10.22 10:23:26.322370 [ 62464 ] {235351d1-3636-4741-a36f-1733220cc1ee} TCPHandler: Code: 32. DB::Exception: Attempt to read after eof: Cannot parse Decimal(38, 4) from String, because value is too short: While processing toDecimal128('', 4). (ATTEMPT_TO_READ_AFTER_EOF), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5e521e in /usr/bin/clickhouse 6. /build/src/IO/VarInt.cpp:13: DB::throwReadAfterEOF() @ 0x000000001399e351 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:41: bool DB::readDigits>>(DB::ReadBuffer&, DB::Decimal>&, unsigned int&, int&, bool) @ 0x000000001b407ffb in /usr/bin/clickhouse 8. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9b08e6 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3fd5e in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94847 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 12. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 2024.10.22 10:23:26.322437 [ 62323 ] {4d046995-28e2-457a-ac7c-495a9ab6c57d} executeQuery: Code: 407. DB::Exception: Decimal math overflow: while executing 'FUNCTION divide(21 :: 1, h : 0) -> divide(21, h) Decimal(18, 9) : 7'. (DECIMAL_OVERFLOW) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37270) (comment: 00700_decimal_arithm.sql) (in query: SELECT 21 + h, 21 - h, 84 - h, 21 * h, -21 * h, 21 / h, 84 / h FROM decimal WHERE h > 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b244b5e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:732: long DB::impl_::DecimalBinaryOperation, true>::applyScaledDiv(long, long, long) @ 0x000000000da22541 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:583: auto void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)1, false, true, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*)::'lambda'(auto const&, auto const&)::operator()(auto const&, auto const&) const @ 0x000000000da230b1 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:643: void DB::impl_::DecimalBinaryOperation, true>::processWithRightNullmapImpl<(DB::impl_::OpCase)1, void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)1, false, true, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*)::'lambda'(auto const&, auto const&), long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(long const&, long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, unsigned long, DB::PODArray, 63ul, 64ul> const*, auto) @ 0x000000000da2301d in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:586: void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)1, false, true, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*) @ 0x000000000da22e52 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:1246: void DB::FunctionBinaryArithmetic::helperInvokeEither<(DB::impl_::OpCase)1, false, true, DB::impl_::DecimalBinaryOperation, false>, DB::impl_::DecimalBinaryOperation, true>, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::Decimal, DB::Decimal>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, DB::Decimal, DB::Decimal, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc664bc in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1333: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc660fa in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc65ac4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000000dc658db in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc5f584 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5ee2d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5ea1d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc5e473 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5dca7 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5dc3d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc5d071 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5cd3f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc5a8d6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc592cc in /usr/bin/clickhouse 24. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 31. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 2024.10.22 10:23:26.325097 [ 62323 ] {4d046995-28e2-457a-ac7c-495a9ab6c57d} TCPHandler: Code: 407. DB::Exception: Decimal math overflow: while executing 'FUNCTION divide(21 :: 1, h : 0) -> divide(21, h) Decimal(18, 9) : 7'. (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b244b5e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:732: long DB::impl_::DecimalBinaryOperation, true>::applyScaledDiv(long, long, long) @ 0x000000000da22541 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:583: auto void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)1, false, true, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*)::'lambda'(auto const&, auto const&)::operator()(auto const&, auto const&) const @ 0x000000000da230b1 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:643: void DB::impl_::DecimalBinaryOperation, true>::processWithRightNullmapImpl<(DB::impl_::OpCase)1, void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)1, false, true, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*)::'lambda'(auto const&, auto const&), long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(long const&, long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, unsigned long, DB::PODArray, 63ul, 64ul> const*, auto) @ 0x000000000da2301d in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:586: void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)1, false, true, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*) @ 0x000000000da22e52 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:1246: void DB::FunctionBinaryArithmetic::helperInvokeEither<(DB::impl_::OpCase)1, false, true, DB::impl_::DecimalBinaryOperation, false>, DB::impl_::DecimalBinaryOperation, true>, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::Decimal, DB::Decimal>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, DB::Decimal, DB::Decimal, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc664bc in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1333: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc660fa in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc65ac4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000000dc658db in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc5f584 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5ee2d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5ea1d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc5e473 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5dca7 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5dc3d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc5d071 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5cd3f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc5a8d6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc592cc in /usr/bin/clickhouse 24. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 31. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 2024.10.22 10:23:26.332371 [ 62464 ] {f4484c9c-79b4-4c2a-bcaa-95644aacf08e} executeQuery: Code: 6. DB::Exception: Cannot parse string '\0' as Decimal(38, 4): syntax error at begin of string: While processing toDecimal128('\0', 4). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal128 ('\0', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94890 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:26.333356 [ 62464 ] {f4484c9c-79b4-4c2a-bcaa-95644aacf08e} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\0' as Decimal(38, 4): syntax error at begin of string: While processing toDecimal128('\0', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94890 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:26.342459 [ 62464 ] {3be18b6b-fbd7-4a92-a950-663fc5056b28} executeQuery: Code: 6. DB::Exception: Cannot parse string '\0\0\0\0\0' as Decimal(38, 4): syntax error at begin of string: While processing toDecimal128('\0\0\0\0\0', 4). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal128 ('\0\0\0\0\0', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94890 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:26.343636 [ 62464 ] {3be18b6b-fbd7-4a92-a950-663fc5056b28} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\0\0\0\0\0' as Decimal(38, 4): syntax error at begin of string: While processing toDecimal128('\0\0\0\0\0', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94890 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:26.352793 [ 62464 ] {c606fab5-e410-4ab0-8d39-0eb4955ded68} executeQuery: Code: 6. DB::Exception: Cannot parse string '\n\t\r' as Decimal(38, 4): syntax error at begin of string: While processing toDecimal128('\n\t\r', 4). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal128 ('\n\t\r', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94890 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:26.353770 [ 62464 ] {c606fab5-e410-4ab0-8d39-0eb4955ded68} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\n\t\r' as Decimal(38, 4): syntax error at begin of string: While processing toDecimal128('\n\t\r', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94890 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:26.362683 [ 62464 ] {15d00197-2b28-4e20-b611-c7ebefab2cb3} executeQuery: Code: 6. DB::Exception: Cannot parse string '\'' as Decimal(38, 4): syntax error at begin of string: While processing toDecimal128('\'', 4). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal128 ('\'', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94890 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:26.363620 [ 62464 ] {15d00197-2b28-4e20-b611-c7ebefab2cb3} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\'' as Decimal(38, 4): syntax error at begin of string: While processing toDecimal128('\'', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94890 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:26.526911 [ 62464 ] {b823ea51-1b5e-4fee-8218-801e4c12e073} executeQuery: Code: 6. DB::Exception: Cannot parse string 'x123' as Decimal(76, 4): syntax error at begin of string: While processing toDecimal256('x123', 4). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal256 ('x123', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bab38b0 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baadab6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba99319 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba98648 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba9785e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:26.527796 [ 62464 ] {b823ea51-1b5e-4fee-8218-801e4c12e073} TCPHandler: Code: 6. DB::Exception: Cannot parse string 'x123' as Decimal(76, 4): syntax error at begin of string: While processing toDecimal256('x123', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bab38b0 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baadab6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba99319 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba98648 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba9785e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:26.662629 [ 62464 ] {2086b4a5-926d-4ec7-8225-09d57baeffa7} executeQuery: Code: 32. DB::Exception: Attempt to read after eof: Cannot parse Decimal(76, 4) from String, because value is too short: While processing toDecimal256('', 4). (ATTEMPT_TO_READ_AFTER_EOF) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal256 ('', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5e521e in /usr/bin/clickhouse 6. /build/src/IO/VarInt.cpp:13: DB::throwReadAfterEOF() @ 0x000000001399e351 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:41: bool DB::readDigits>>(DB::ReadBuffer&, DB::Decimal>&, unsigned int&, int&, bool) @ 0x000000001b408919 in /usr/bin/clickhouse 8. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9b11a6 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba40501 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bab3867 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baadab6 in /usr/bin/clickhouse 12. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba99319 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba98648 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba9785e in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 2024.10.22 10:23:26.806007 [ 62323 ] {d69b4cf8-a123-413d-8c81-3fb9cb414e34} executeQuery: Code: 153. DB::Exception: Division by zero: While processing 1 / toDecimal32(0, 0). (ILLEGAL_DIVISION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37270) (comment: 00700_decimal_arithm.sql) (in query: SELECT 1 / toDecimal32(0, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(int, int) @ 0x000000000da201f6 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(int, int) @ 0x000000000da20179 in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: int DB::DivideIntegralImpl::apply(int, int) @ 0x000000000da20159 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: int DB::impl_::DecimalBinaryOperation, false>::applyScaledDiv(int, int, int) @ 0x000000000da20310 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(int, int, int, int) @ 0x000000000da1fba2 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc6508b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc64dc4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000000dc64bdb in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc5f544 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5eddc in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5ea1d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc5e473 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5dca7 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5dc3d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc5d071 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5cd3f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc5a8d6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc592cc in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 2024.10.22 10:23:26.923113 [ 50242 ] {9f6ca9da-a79e-473a-93c8-ff6d9e056906} executeQuery: Code: 69. DB::Exception: Too many digits (10 > 9) in decimal value: While processing '1000000000' AS x, toDecimal32(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '1000000000' AS x, toDecimal32(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b407286 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9af966 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3ef5e in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56cc7 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 2024.10.22 10:23:26.923171 [ 62464 ] {2086b4a5-926d-4ec7-8225-09d57baeffa7} TCPHandler: Code: 32. DB::Exception: Attempt to read after eof: Cannot parse Decimal(76, 4) from String, because value is too short: While processing toDecimal256('', 4). (ATTEMPT_TO_READ_AFTER_EOF), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5e521e in /usr/bin/clickhouse 6. /build/src/IO/VarInt.cpp:13: DB::throwReadAfterEOF() @ 0x000000001399e351 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:41: bool DB::readDigits>>(DB::ReadBuffer&, DB::Decimal>&, unsigned int&, int&, bool) @ 0x000000001b408919 in /usr/bin/clickhouse 8. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9b11a6 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba40501 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bab3867 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baadab6 in /usr/bin/clickhouse 12. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba99319 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba98648 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba9785e in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 2024.10.22 10:23:26.923403 [ 62323 ] {d69b4cf8-a123-413d-8c81-3fb9cb414e34} TCPHandler: Code: 153. DB::Exception: Division by zero: While processing 1 / toDecimal32(0, 0). (ILLEGAL_DIVISION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(int, int) @ 0x000000000da201f6 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(int, int) @ 0x000000000da20179 in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: int DB::DivideIntegralImpl::apply(int, int) @ 0x000000000da20159 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: int DB::impl_::DecimalBinaryOperation, false>::applyScaledDiv(int, int, int) @ 0x000000000da20310 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(int, int, int, int) @ 0x000000000da1fba2 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc6508b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc64dc4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000000dc64bdb in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc5f544 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5eddc in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5ea1d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc5e473 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5dca7 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5dc3d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc5d071 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5cd3f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc5a8d6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc592cc in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 2024.10.22 10:23:26.924056 [ 50242 ] {9f6ca9da-a79e-473a-93c8-ff6d9e056906} TCPHandler: Code: 69. DB::Exception: Too many digits (10 > 9) in decimal value: While processing '1000000000' AS x, toDecimal32(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b407286 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9af966 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3ef5e in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56cc7 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 2024.10.22 10:23:27.077438 [ 62464 ] {313187aa-89e7-40e2-b645-f8f5e15727e3} executeQuery: Code: 6. DB::Exception: Cannot parse string '\0' as Decimal(76, 4): syntax error at begin of string: While processing toDecimal256('\0', 4). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal256 ('\0', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bab38b0 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baadab6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba99319 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba98648 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba9785e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:27.077445 [ 62323 ] {12f50817-3228-4c39-8221-6d0cebdf6286} executeQuery: Code: 153. DB::Exception: Division by zero: While processing 1 / toDecimal64(0, 1). (ILLEGAL_DIVISION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37270) (comment: 00700_decimal_arithm.sql) (in query: SELECT 1 / toDecimal64(0, 1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(long, long) @ 0x000000000da22676 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(long, long) @ 0x000000000da225fd in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: long DB::DivideIntegralImpl::apply(long, long) @ 0x000000000da225bd in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: long DB::impl_::DecimalBinaryOperation, false>::applyScaledDiv(long, long, long) @ 0x000000000da2279b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(long, long, long, long) @ 0x000000000da21fe9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc65db5 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc65ac4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000000dc658db in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc5f584 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5ee2d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5ea1d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc5e473 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5dca7 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5dc3d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc5d071 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5cd3f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc5a8d6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc592cc in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 2024.10.22 10:23:27.078889 [ 62464 ] {313187aa-89e7-40e2-b645-f8f5e15727e3} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\0' as Decimal(76, 4): syntax error at begin of string: While processing toDecimal256('\0', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bab38b0 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baadab6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba99319 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba98648 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba9785e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:27.078841 [ 62323 ] {12f50817-3228-4c39-8221-6d0cebdf6286} TCPHandler: Code: 153. DB::Exception: Division by zero: While processing 1 / toDecimal64(0, 1). (ILLEGAL_DIVISION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(long, long) @ 0x000000000da22676 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(long, long) @ 0x000000000da225fd in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: long DB::DivideIntegralImpl::apply(long, long) @ 0x000000000da225bd in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: long DB::impl_::DecimalBinaryOperation, false>::applyScaledDiv(long, long, long) @ 0x000000000da2279b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(long, long, long, long) @ 0x000000000da21fe9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc65db5 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc65ac4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000000dc658db in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc5f584 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5ee2d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5ea1d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc5e473 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5dca7 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5dc3d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc5d071 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5cd3f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc5a8d6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc592cc in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 2024.10.22 10:23:27.079303 [ 50242 ] {37c6256d-3d88-47c3-b9e3-26228d237949} executeQuery: Code: 69. DB::Exception: Too many digits (10 > 9) in decimal value: While processing '-1000000000' AS x, toDecimal32(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '-1000000000' AS x, toDecimal32(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b407286 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9af966 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3ef5e in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56cc7 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 2024.10.22 10:23:27.080279 [ 50242 ] {37c6256d-3d88-47c3-b9e3-26228d237949} TCPHandler: Code: 69. DB::Exception: Too many digits (10 > 9) in decimal value: While processing '-1000000000' AS x, toDecimal32(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b407286 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9af966 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3ef5e in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56cc7 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 2024.10.22 10:23:27.088141 [ 62464 ] {97eb9ee8-f957-4a1a-b096-4db359e824b5} executeQuery: Code: 6. DB::Exception: Cannot parse string '\0\0\0\0\0' as Decimal(76, 4): syntax error at begin of string: While processing toDecimal256('\0\0\0\0\0', 4). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal256 ('\0\0\0\0\0', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bab38b0 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baadab6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba99319 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba98648 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba9785e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:27.230995 [ 62464 ] {97eb9ee8-f957-4a1a-b096-4db359e824b5} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\0\0\0\0\0' as Decimal(76, 4): syntax error at begin of string: While processing toDecimal256('\0\0\0\0\0', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bab38b0 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baadab6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba99319 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba98648 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba9785e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:27.231037 [ 62323 ] {145564f9-1bde-4bb7-a987-b1844c466ba9} executeQuery: Code: 153. DB::Exception: Division by zero: While processing 1 / toDecimal128(0, 2). (ILLEGAL_DIVISION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37270) (comment: 00700_decimal_arithm.sql) (in query: SELECT 1 / toDecimal128(0, 2);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da25026 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:48: auto DB::checkedDivision, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da24f9d in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: wide::integer<128ul, int> DB::DivideIntegralImpl, wide::integer<128ul, int>>::apply>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da24f3d in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: wide::integer<128ul, int> DB::impl_::DecimalBinaryOperation>, false>::applyScaledDiv(wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da251a2 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal> DB::impl_::DecimalBinaryOperation>, false>::process, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da246f8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeNumber, DB::DataTypeDecimal>>, DB::ColumnVector, DB::ColumnDecimal>>>(DB::DataTypeNumber const&, DB::DataTypeDecimal>> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal>> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc66bd2 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal>> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc66824 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>>(auto const&, auto const&) const @ 0x000000000dc6663b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dc5f5c4 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5ee7c in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5ea1d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc5e473 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5dca7 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5dc3d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc5d071 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5cd3f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc5a8d6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc592cc in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 2024.10.22 10:23:27.362224 [ 50242 ] {a8ed29d5-d049-4be7-8c76-15ead910b330} executeQuery: Code: 69. DB::Exception: Too many digits (19 > 18) in decimal value: While processing '1000000000000000000' AS x, toDecimal64(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '1000000000000000000' AS x, toDecimal64(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b407a5d in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0106 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3f63e in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75847 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 2024.10.22 10:23:27.362404 [ 62323 ] {145564f9-1bde-4bb7-a987-b1844c466ba9} TCPHandler: Code: 153. DB::Exception: Division by zero: While processing 1 / toDecimal128(0, 2). (ILLEGAL_DIVISION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da25026 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:48: auto DB::checkedDivision, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da24f9d in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: wide::integer<128ul, int> DB::DivideIntegralImpl, wide::integer<128ul, int>>::apply>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da24f3d in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: wide::integer<128ul, int> DB::impl_::DecimalBinaryOperation>, false>::applyScaledDiv(wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da251a2 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal> DB::impl_::DecimalBinaryOperation>, false>::process, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da246f8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeNumber, DB::DataTypeDecimal>>, DB::ColumnVector, DB::ColumnDecimal>>>(DB::DataTypeNumber const&, DB::DataTypeDecimal>> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal>> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc66bd2 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal>> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc66824 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>>(auto const&, auto const&) const @ 0x000000000dc6663b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dc5f5c4 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5ee7c in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5ea1d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc5e473 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5dca7 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5dc3d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc5d071 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5cd3f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc5a8d6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc592cc in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 2024.10.22 10:23:27.363424 [ 50242 ] {a8ed29d5-d049-4be7-8c76-15ead910b330} TCPHandler: Code: 69. DB::Exception: Too many digits (19 > 18) in decimal value: While processing '1000000000000000000' AS x, toDecimal64(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b407a5d in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0106 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3f63e in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75847 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 2024.10.22 10:23:27.370327 [ 62464 ] {63f002e9-1570-4a59-81a2-0e3498550917} executeQuery: Code: 6. DB::Exception: Cannot parse string '\n\t\r' as Decimal(76, 4): syntax error at begin of string: While processing toDecimal256('\n\t\r', 4). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal256 ('\n\t\r', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bab38b0 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baadab6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba99319 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba98648 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba9785e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:27.371370 [ 62464 ] {63f002e9-1570-4a59-81a2-0e3498550917} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\n\t\r' as Decimal(76, 4): syntax error at begin of string: While processing toDecimal256('\n\t\r', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bab38b0 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baadab6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba99319 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba98648 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba9785e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:27.372421 [ 62323 ] {5420ff3d-7aef-482a-b493-ed517a94608b} executeQuery: Code: 153. DB::Exception: Division by zero: While processing 0 / toDecimal32(0, 3). (ILLEGAL_DIVISION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37270) (comment: 00700_decimal_arithm.sql) (in query: SELECT 0 / toDecimal32(0, 3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(int, int) @ 0x000000000da201f6 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(int, int) @ 0x000000000da20179 in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: int DB::DivideIntegralImpl::apply(int, int) @ 0x000000000da20159 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: int DB::impl_::DecimalBinaryOperation, false>::applyScaledDiv(int, int, int) @ 0x000000000da20310 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(int, int, int, int) @ 0x000000000da1fba2 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc6508b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc64dc4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000000dc64bdb in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc5f544 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5eddc in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5ea1d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc5e473 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5dca7 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5dc3d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc5d071 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5cd3f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc5a8d6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc592cc in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 2024.10.22 10:23:27.373950 [ 62323 ] {5420ff3d-7aef-482a-b493-ed517a94608b} TCPHandler: Code: 153. DB::Exception: Division by zero: While processing 0 / toDecimal32(0, 3). (ILLEGAL_DIVISION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(int, int) @ 0x000000000da201f6 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(int, int) @ 0x000000000da20179 in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: int DB::DivideIntegralImpl::apply(int, int) @ 0x000000000da20159 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: int DB::impl_::DecimalBinaryOperation, false>::applyScaledDiv(int, int, int) @ 0x000000000da20310 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(int, int, int, int) @ 0x000000000da1fba2 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc6508b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc64dc4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000000dc64bdb in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc5f544 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5eddc in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5ea1d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc5e473 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5dca7 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5dc3d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc5d071 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5cd3f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc5a8d6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc592cc in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 2024.10.22 10:23:27.375372 [ 50242 ] {738b7d14-5bbb-4775-9dc2-91289b017a29} executeQuery: Code: 69. DB::Exception: Too many digits (19 > 18) in decimal value: While processing '-1000000000000000000' AS x, toDecimal64(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '-1000000000000000000' AS x, toDecimal64(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b407a5d in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0106 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3f63e in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75847 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 2024.10.22 10:23:27.376212 [ 50242 ] {738b7d14-5bbb-4775-9dc2-91289b017a29} TCPHandler: Code: 69. DB::Exception: Too many digits (19 > 18) in decimal value: While processing '-1000000000000000000' AS x, toDecimal64(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b407a5d in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0106 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3f63e in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75847 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 2024.10.22 10:23:27.379581 [ 62464 ] {af6b1710-ceaf-47b4-af17-164613ea0a17} executeQuery: Code: 6. DB::Exception: Cannot parse string '\'' as Decimal(76, 4): syntax error at begin of string: While processing toDecimal256('\'', 4). (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37302) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal256 ('\'', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bab38b0 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baadab6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba99319 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba98648 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba9785e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:27.380377 [ 62464 ] {af6b1710-ceaf-47b4-af17-164613ea0a17} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\'' as Decimal(76, 4): syntax error at begin of string: While processing toDecimal256('\'', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bab38b0 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baadab6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba99319 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba98648 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba9785e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:27.383394 [ 62323 ] {1d0dd1c0-32fa-47a8-982d-c939dfdb62ab} executeQuery: Code: 153. DB::Exception: Division by zero: While processing 0 / toDecimal64(0, 4). (ILLEGAL_DIVISION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37270) (comment: 00700_decimal_arithm.sql) (in query: SELECT 0 / toDecimal64(0, 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(long, long) @ 0x000000000da22676 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(long, long) @ 0x000000000da225fd in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: long DB::DivideIntegralImpl::apply(long, long) @ 0x000000000da225bd in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: long DB::impl_::DecimalBinaryOperation, false>::applyScaledDiv(long, long, long) @ 0x000000000da2279b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(long, long, long, long) @ 0x000000000da21fe9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc65db5 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc65ac4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000000dc658db in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc5f584 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5ee2d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5ea1d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc5e473 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5dca7 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5dc3d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc5d071 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5cd3f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc5a8d6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc592cc in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 2024.10.22 10:23:27.384814 [ 62323 ] {1d0dd1c0-32fa-47a8-982d-c939dfdb62ab} TCPHandler: Code: 153. DB::Exception: Division by zero: While processing 0 / toDecimal64(0, 4). (ILLEGAL_DIVISION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(long, long) @ 0x000000000da22676 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(long, long) @ 0x000000000da225fd in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: long DB::DivideIntegralImpl::apply(long, long) @ 0x000000000da225bd in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: long DB::impl_::DecimalBinaryOperation, false>::applyScaledDiv(long, long, long) @ 0x000000000da2279b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(long, long, long, long) @ 0x000000000da21fe9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc65db5 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc65ac4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000000dc658db in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc5f584 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5ee2d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5ea1d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc5e473 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5dca7 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5dc3d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc5d071 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5cd3f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc5a8d6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc592cc in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 2024.10.22 10:23:27.518398 [ 50242 ] {b6d43e19-c29c-42c2-98e9-3703b650a494} executeQuery: Code: 69. DB::Exception: Too many digits (39 > 38) in decimal value: While processing '100000000000000000000000000000000000000' AS x, toDecimal128(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '100000000000000000000000000000000000000' AS x, toDecimal128(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>>(DB::ReadBuffer&, DB::Decimal>&, unsigned int&, int&, bool) @ 0x000000001b4082a5 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9b08e6 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3fd5e in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94847 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 2024.10.22 10:23:27.518697 [ 62323 ] {854cb802-446d-4420-bc78-acc69ad816b4} executeQuery: Code: 153. DB::Exception: Division by zero: While processing 0 / toDecimal128(0, 5). (ILLEGAL_DIVISION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37270) (comment: 00700_decimal_arithm.sql) (in query: SELECT 0 / toDecimal128(0, 5);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da25026 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:48: auto DB::checkedDivision, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da24f9d in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: wide::integer<128ul, int> DB::DivideIntegralImpl, wide::integer<128ul, int>>::apply>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da24f3d in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: wide::integer<128ul, int> DB::impl_::DecimalBinaryOperation>, false>::applyScaledDiv(wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da251a2 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal> DB::impl_::DecimalBinaryOperation>, false>::process, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da246f8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeNumber, DB::DataTypeDecimal>>, DB::ColumnVector, DB::ColumnDecimal>>>(DB::DataTypeNumber const&, DB::DataTypeDecimal>> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal>> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc66bd2 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal>> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc66824 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>>(auto const&, auto const&) const @ 0x000000000dc6663b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dc5f5c4 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5ee7c in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5ea1d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc5e473 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5dca7 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5dc3d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc5d071 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5cd3f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc5a8d6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc592cc in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 2024.10.22 10:23:27.519470 [ 50242 ] {b6d43e19-c29c-42c2-98e9-3703b650a494} TCPHandler: Code: 69. DB::Exception: Too many digits (39 > 38) in decimal value: While processing '100000000000000000000000000000000000000' AS x, toDecimal128(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>>(DB::ReadBuffer&, DB::Decimal>&, unsigned int&, int&, bool) @ 0x000000001b4082a5 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9b08e6 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3fd5e in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94847 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 2024.10.22 10:23:27.519928 [ 62323 ] {854cb802-446d-4420-bc78-acc69ad816b4} TCPHandler: Code: 153. DB::Exception: Division by zero: While processing 0 / toDecimal128(0, 5). (ILLEGAL_DIVISION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da25026 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:48: auto DB::checkedDivision, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da24f9d in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: wide::integer<128ul, int> DB::DivideIntegralImpl, wide::integer<128ul, int>>::apply>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da24f3d in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: wide::integer<128ul, int> DB::impl_::DecimalBinaryOperation>, false>::applyScaledDiv(wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da251a2 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal> DB::impl_::DecimalBinaryOperation>, false>::process, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da246f8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeNumber, DB::DataTypeDecimal>>, DB::ColumnVector, DB::ColumnDecimal>>>(DB::DataTypeNumber const&, DB::DataTypeDecimal>> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal>> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc66bd2 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal>> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc66824 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>>(auto const&, auto const&) const @ 0x000000000dc6663b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dc5f5c4 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5ee7c in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5ea1d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc5e473 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5dca7 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5dc3d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc5d071 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5cd3f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc5a8d6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc592cc in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 2024.10.22 10:23:27.710548 [ 50242 ] {b7433ad1-3b8d-4534-a809-092e3fb6ccf0} executeQuery: Code: 69. DB::Exception: Too many digits (39 > 38) in decimal value: While processing '-100000000000000000000000000000000000000' AS x, toDecimal128(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '-100000000000000000000000000000000000000' AS x, toDecimal128(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>>(DB::ReadBuffer&, DB::Decimal>&, unsigned int&, int&, bool) @ 0x000000001b4082a5 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9b08e6 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3fd5e in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94847 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 2024.10.22 10:23:27.710718 [ 62323 ] {c4bee12f-8d5f-4060-b8b8-803f56d01108} executeQuery: Code: 153. DB::Exception: Division by zero: While processing toDecimal32(0, 0) / toInt8(0). (ILLEGAL_DIVISION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37270) (comment: 00700_decimal_arithm.sql) (in query: SELECT toDecimal32(0, 0) / toInt8(0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(int, int) @ 0x000000000da201f6 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(int, int) @ 0x000000000da20179 in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: int DB::DivideIntegralImpl::apply(int, int) @ 0x000000000da20159 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:682: DB::impl_::DecimalBinaryOperation, false>::apply(int, int) @ 0x000000000daf16b9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:613: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(int, int, int, int) @ 0x000000000daf131f in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::ColumnDecimal>, DB::ColumnVector>(DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnDecimal> const*, DB::ColumnVector const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dce7b5a in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric>, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dce7884 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator()>, DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000dce769b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dce2ae4 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dce232d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dce213d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc5e773 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5dffc in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5dc3d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc5d071 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5cd3f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc5a8d6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc592cc in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 2024.10.22 10:23:27.711470 [ 50242 ] {b7433ad1-3b8d-4534-a809-092e3fb6ccf0} TCPHandler: Code: 69. DB::Exception: Too many digits (39 > 38) in decimal value: While processing '-100000000000000000000000000000000000000' AS x, toDecimal128(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>>(DB::ReadBuffer&, DB::Decimal>&, unsigned int&, int&, bool) @ 0x000000001b4082a5 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9b08e6 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3fd5e in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94847 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 2024.10.22 10:23:27.712243 [ 62323 ] {c4bee12f-8d5f-4060-b8b8-803f56d01108} TCPHandler: Code: 153. DB::Exception: Division by zero: While processing toDecimal32(0, 0) / toInt8(0). (ILLEGAL_DIVISION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(int, int) @ 0x000000000da201f6 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(int, int) @ 0x000000000da20179 in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: int DB::DivideIntegralImpl::apply(int, int) @ 0x000000000da20159 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:682: DB::impl_::DecimalBinaryOperation, false>::apply(int, int) @ 0x000000000daf16b9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:613: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(int, int, int, int) @ 0x000000000daf131f in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::ColumnDecimal>, DB::ColumnVector>(DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnDecimal> const*, DB::ColumnVector const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dce7b5a in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric>, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dce7884 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator()>, DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000dce769b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dce2ae4 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dce232d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dce213d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc5e773 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5dffc in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5dc3d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc5d071 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5cd3f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc5a8d6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc592cc in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 2024.10.22 10:23:27.877882 [ 62323 ] {a94bf4c1-3e59-458b-aba3-0c7efcad8057} executeQuery: Code: 153. DB::Exception: Division by zero: While processing toDecimal64(0, 1) / toInt32(0). (ILLEGAL_DIVISION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37270) (comment: 00700_decimal_arithm.sql) (in query: SELECT toDecimal64(0, 1) / toInt32(0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(long, long) @ 0x000000000da22676 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(long, long) @ 0x000000000da225fd in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: long DB::DivideIntegralImpl::apply(long, long) @ 0x000000000da225bd in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:682: DB::impl_::DecimalBinaryOperation, false>::apply(long, long) @ 0x000000000db0dc3d in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:613: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(long, long, long, long) @ 0x000000000db0d885 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::ColumnDecimal>, DB::ColumnVector>(DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnDecimal> const*, DB::ColumnVector const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dcf7ea6 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric>, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dcf7ba4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator()>, DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000dcf79bb in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dcf14a4 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dcf0cfc in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dcf0a7d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc5e7b3 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5e04d in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5dc3d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc5d071 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5cd3f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc5a8d6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc592cc in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 2024.10.22 10:23:28.002576 [ 50242 ] {28f3d075-465f-4227-959d-f597e4f8cbed} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 9 and precision 9: While processing '1' AS x, toDecimal32(x, 9). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '1' AS x, toDecimal32(x, 9);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b2ffa in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9af9f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3ef5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56cc7 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:28.002849 [ 62323 ] {a94bf4c1-3e59-458b-aba3-0c7efcad8057} TCPHandler: Code: 153. DB::Exception: Division by zero: While processing toDecimal64(0, 1) / toInt32(0). (ILLEGAL_DIVISION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(long, long) @ 0x000000000da22676 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(long, long) @ 0x000000000da225fd in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: long DB::DivideIntegralImpl::apply(long, long) @ 0x000000000da225bd in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:682: DB::impl_::DecimalBinaryOperation, false>::apply(long, long) @ 0x000000000db0dc3d in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:613: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(long, long, long, long) @ 0x000000000db0d885 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::ColumnDecimal>, DB::ColumnVector>(DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnDecimal> const*, DB::ColumnVector const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dcf7ea6 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric>, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dcf7ba4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator()>, DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000dcf79bb in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dcf14a4 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dcf0cfc in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dcf0a7d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc5e7b3 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5e04d in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5dc3d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc5d071 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5cd3f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc5a8d6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc592cc in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 2024.10.22 10:23:28.003480 [ 50242 ] {28f3d075-465f-4227-959d-f597e4f8cbed} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 9 and precision 9: While processing '1' AS x, toDecimal32(x, 9). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b2ffa in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9af9f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3ef5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56cc7 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:28.013120 [ 50242 ] {86c2d007-2723-44af-b48d-f79f64d98a79} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 9 and precision 9: While processing '-1' AS x, toDecimal32(x, 9). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '-1' AS x, toDecimal32(x, 9);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b2ffa in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9af9f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3ef5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56cc7 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:28.013964 [ 50242 ] {86c2d007-2723-44af-b48d-f79f64d98a79} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 9 and precision 9: While processing '-1' AS x, toDecimal32(x, 9). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b2ffa in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9af9f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3ef5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56cc7 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:28.200719 [ 62323 ] {f2f24f02-b6f4-4d6c-8b26-924057e568be} executeQuery: Code: 153. DB::Exception: Division by zero: While processing toDecimal128(0, 2) / toInt64(0). (ILLEGAL_DIVISION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37270) (comment: 00700_decimal_arithm.sql) (in query: SELECT toDecimal128(0, 2) / toInt64(0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da25026 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:48: auto DB::checkedDivision, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da24f9d in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: wide::integer<128ul, int> DB::DivideIntegralImpl, wide::integer<128ul, int>>::apply>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da24f3d in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:682: DB::impl_::DecimalBinaryOperation>, false>::apply(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000db2881d in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:613: DB::Decimal> DB::impl_::DecimalBinaryOperation>, false>::process, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000db28265 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal>>, DB::DataTypeNumber, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeNumber, DB::ColumnDecimal>>, DB::ColumnVector>(DB::DataTypeDecimal>> const&, DB::DataTypeNumber const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnDecimal>> const*, DB::ColumnVector const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dd086b6 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric>>, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeDecimal>> const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dd08304 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator()>>, DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000dd0811b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dcffd44 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dcff5ad in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dcff2dd in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dc5e7f3 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5e09c in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5dc3d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc5d071 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5cd3f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc5a8d6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc592cc in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 2024.10.22 10:23:28.350680 [ 50242 ] {65bffe0e-c049-4910-9654-f483db9517f4} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 18 and precision 18: While processing '1' AS x, toDecimal64(x, 18). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '1' AS x, toDecimal64(x, 18);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b429a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0193 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3f63e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:28.350842 [ 62323 ] {f2f24f02-b6f4-4d6c-8b26-924057e568be} TCPHandler: Code: 153. DB::Exception: Division by zero: While processing toDecimal128(0, 2) / toInt64(0). (ILLEGAL_DIVISION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b25cb1e in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da25026 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:48: auto DB::checkedDivision, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da24f9d in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: wide::integer<128ul, int> DB::DivideIntegralImpl, wide::integer<128ul, int>>::apply>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da24f3d in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:682: DB::impl_::DecimalBinaryOperation>, false>::apply(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000db2881d in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:613: DB::Decimal> DB::impl_::DecimalBinaryOperation>, false>::process, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000db28265 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal>>, DB::DataTypeNumber, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeNumber, DB::ColumnDecimal>>, DB::ColumnVector>(DB::DataTypeDecimal>> const&, DB::DataTypeNumber const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnDecimal>> const*, DB::ColumnVector const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dd086b6 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric>>, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeDecimal>> const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dd08304 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator()>>, DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000dd0811b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dcffd44 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dcff5ad in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dcff2dd in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dc5e7f3 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5e09c in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5dc3d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc5d071 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5cd3f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc5a8d6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc592cc in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 2024.10.22 10:23:28.351740 [ 50242 ] {65bffe0e-c049-4910-9654-f483db9517f4} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 18 and precision 18: While processing '1' AS x, toDecimal64(x, 18). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b429a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0193 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3f63e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:28.364604 [ 50242 ] {623f01c2-e2a1-4170-8776-2226857382c5} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 18 and precision 18: While processing '-1' AS x, toDecimal64(x, 18). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '-1' AS x, toDecimal64(x, 18);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b429a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0193 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3f63e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:28.365679 [ 50242 ] {623f01c2-e2a1-4170-8776-2226857382c5} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 18 and precision 18: While processing '-1' AS x, toDecimal64(x, 18). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b429a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0193 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3f63e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:28.538246 [ 50242 ] {adbfea59-81ea-42d7-b9ec-d198430882a4} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 38 and precision 38: While processing '1' AS x, toDecimal128(x, 38). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '1' AS x, toDecimal128(x, 38);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b553a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0973 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3fd5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:28.757030 [ 62323 ] {a632942f-2792-47df-9dde-0e30302888e4} executeQuery: Code: 407. DB::Exception: Overflow during decimal division: While processing toDecimal128(1, 38) / toDecimal128(1, 1). (DECIMAL_OVERFLOW) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37270) (comment: 00700_decimal_arithm.sql) (in query: SELECT toDecimal128(1, 38) / toDecimal128(1, 1) SETTINGS decimal_check_overflow=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [33]) @ 0x000000000b21cade in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1581: auto DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)::operator()>>, DB::DataTypeDecimal>>>(auto const&, auto const&) const @ 0x000000000dd599bf in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dd58d24 in /usr/bin/clickhouse 8. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dd585dc in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dd5817d in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dd440d3 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dd4397c in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dd4351d in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dd434f1 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:1506: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000000dd43249 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000da0eaaf in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:28.757058 [ 50242 ] {adbfea59-81ea-42d7-b9ec-d198430882a4} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 38 and precision 38: While processing '1' AS x, toDecimal128(x, 38). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b553a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0973 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3fd5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:28.758079 [ 62323 ] {a632942f-2792-47df-9dde-0e30302888e4} TCPHandler: Code: 407. DB::Exception: Overflow during decimal division: While processing toDecimal128(1, 38) / toDecimal128(1, 1). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [33]) @ 0x000000000b21cade in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1581: auto DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)::operator()>>, DB::DataTypeDecimal>>>(auto const&, auto const&) const @ 0x000000000dd599bf in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dd58d24 in /usr/bin/clickhouse 8. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dd585dc in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dd5817d in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dd440d3 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dd4397c in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dd4351d in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dd434f1 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:1506: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000000dd43249 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000da0eaaf in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:28.769771 [ 50242 ] {b5b7813a-acfc-42bb-b897-78e096a28315} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 38 and precision 38: While processing '-1' AS x, toDecimal128(x, 38). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '-1' AS x, toDecimal128(x, 38);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b553a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0973 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3fd5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:28.770697 [ 50242 ] {b5b7813a-acfc-42bb-b897-78e096a28315} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 38 and precision 38: While processing '-1' AS x, toDecimal128(x, 38). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b553a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0973 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3fd5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:28.814219 [ 62323 ] {3cf80a3b-93c4-46b8-81ff-57aa0fe5aec9} executeQuery: Code: 407. DB::Exception: Overflow during decimal division: While processing toDecimal128(1, 20) / toDecimal128(1, 19). (DECIMAL_OVERFLOW) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37270) (comment: 00700_decimal_arithm.sql) (in query: SELECT toDecimal128(1, 20) / toDecimal128(1, 19) SETTINGS decimal_check_overflow=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [33]) @ 0x000000000b21cade in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1581: auto DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)::operator()>>, DB::DataTypeDecimal>>>(auto const&, auto const&) const @ 0x000000000dd599bf in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dd58d24 in /usr/bin/clickhouse 8. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dd585dc in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dd5817d in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dd440d3 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dd4397c in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dd4351d in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dd434f1 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:1506: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000000dd43249 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000da0eaaf in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:28.815431 [ 62323 ] {3cf80a3b-93c4-46b8-81ff-57aa0fe5aec9} TCPHandler: Code: 407. DB::Exception: Overflow during decimal division: While processing toDecimal128(1, 20) / toDecimal128(1, 19). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [33]) @ 0x000000000b21cade in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1581: auto DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)::operator()>>, DB::DataTypeDecimal>>>(auto const&, auto const&) const @ 0x000000000dd599bf in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dd58d24 in /usr/bin/clickhouse 8. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dd585dc in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dd5817d in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dd440d3 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dd4397c in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dd4351d in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dd434f1 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:1506: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000000dd43249 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000da0eaaf in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 2024.10.22 10:23:28.975439 [ 50242 ] {90f9a9ca-2b9b-45ac-8683-1e615f602a9e} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e9. Expected to read decimal with scale 0 and precision 9: While processing '1e9' AS x, toDecimal32(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '1e9' AS x, toDecimal32(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b2ffa in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9af9f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3ef5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56cc7 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:28.976288 [ 50242 ] {90f9a9ca-2b9b-45ac-8683-1e615f602a9e} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e9. Expected to read decimal with scale 0 and precision 9: While processing '1e9' AS x, toDecimal32(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b2ffa in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9af9f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3ef5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56cc7 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:28.986747 [ 50242 ] {eecd7fae-5f13-4400-b494-ba6833efaf9a} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e9. Expected to read decimal with scale 0 and precision 9: While processing '-1E9' AS x, toDecimal32(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '-1E9' AS x, toDecimal32(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b2ffa in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9af9f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3ef5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56cc7 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:28.987576 [ 50242 ] {eecd7fae-5f13-4400-b494-ba6833efaf9a} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e9. Expected to read decimal with scale 0 and precision 9: While processing '-1E9' AS x, toDecimal32(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b2ffa in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9af9f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3ef5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56cc7 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:28.998213 [ 50242 ] {3cbe6c87-7dbc-4ff1-b5e7-e3984e052fb4} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e18. Expected to read decimal with scale 0 and precision 18: While processing '1E18' AS x, toDecimal64(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '1E18' AS x, toDecimal64(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b429a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0193 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3f63e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:28.999210 [ 50242 ] {3cbe6c87-7dbc-4ff1-b5e7-e3984e052fb4} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e18. Expected to read decimal with scale 0 and precision 18: While processing '1E18' AS x, toDecimal64(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b429a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0193 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3f63e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:29.010669 [ 50242 ] {b6efd6cd-aa56-4c44-8f8c-6016a9cf2b60} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e18. Expected to read decimal with scale 0 and precision 18: While processing '-1e18' AS x, toDecimal64(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '-1e18' AS x, toDecimal64(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b429a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0193 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3f63e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:29.011820 [ 50242 ] {b6efd6cd-aa56-4c44-8f8c-6016a9cf2b60} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e18. Expected to read decimal with scale 0 and precision 18: While processing '-1e18' AS x, toDecimal64(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b429a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0193 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3f63e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:29.022976 [ 50242 ] {b84c82be-7884-4ae9-990a-50385affdab5} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e38. Expected to read decimal with scale 0 and precision 38: While processing '1e38' AS x, toDecimal128(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '1e38' AS x, toDecimal128(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b553a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0973 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3fd5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:29.023793 [ 50242 ] {b84c82be-7884-4ae9-990a-50385affdab5} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e38. Expected to read decimal with scale 0 and precision 38: While processing '1e38' AS x, toDecimal128(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b553a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0973 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3fd5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:29.032870 [ 50242 ] {b1e844f3-91fa-4e06-8552-96ddf4cea641} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e38. Expected to read decimal with scale 0 and precision 38: While processing '-1E38' AS x, toDecimal128(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '-1E38' AS x, toDecimal128(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b553a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0973 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3fd5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:29.033716 [ 50242 ] {b1e844f3-91fa-4e06-8552-96ddf4cea641} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e38. Expected to read decimal with scale 0 and precision 38: While processing '-1E38' AS x, toDecimal128(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b553a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0973 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3fd5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:29.042467 [ 50242 ] {89486bd7-5881-4837-a647-4e14905efb56} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 9 and precision 9: While processing '1e0' AS x, toDecimal32(x, 9). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '1e0' AS x, toDecimal32(x, 9);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b2ffa in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9af9f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3ef5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56cc7 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:29.043292 [ 50242 ] {89486bd7-5881-4837-a647-4e14905efb56} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 9 and precision 9: While processing '1e0' AS x, toDecimal32(x, 9). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b2ffa in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9af9f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3ef5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56cc7 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:29.052080 [ 50242 ] {db7bc6a9-436e-4926-af54-95b798c6b79f} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 9 and precision 9: While processing '-1e-0' AS x, toDecimal32(x, 9). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '-1e-0' AS x, toDecimal32(x, 9);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b2ffa in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9af9f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3ef5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56cc7 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:29.052863 [ 50242 ] {db7bc6a9-436e-4926-af54-95b798c6b79f} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 9 and precision 9: While processing '-1e-0' AS x, toDecimal32(x, 9). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b2ffa in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9af9f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3ef5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba56cc7 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba51176 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba3cc79 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3bfa8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba3b1be in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:29.061931 [ 50242 ] {647d079d-1064-436b-93c8-f8c46da3de33} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 18 and precision 18: While processing '1e0' AS x, toDecimal64(x, 18). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '1e0' AS x, toDecimal64(x, 18);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b429a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0193 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3f63e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:29.062964 [ 50242 ] {647d079d-1064-436b-93c8-f8c46da3de33} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 18 and precision 18: While processing '1e0' AS x, toDecimal64(x, 18). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b429a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0193 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3f63e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:29.072927 [ 50242 ] {8f92873e-8bf5-4310-8a5d-dcc7bca4ea1c} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 18 and precision 18: While processing '-1e-0' AS x, toDecimal64(x, 18). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '-1e-0' AS x, toDecimal64(x, 18);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b429a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0193 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3f63e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:29.073851 [ 50242 ] {8f92873e-8bf5-4310-8a5d-dcc7bca4ea1c} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 18 and precision 18: While processing '-1e-0' AS x, toDecimal64(x, 18). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b429a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0193 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3f63e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba75847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba6fcf6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba5b7f9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba5ab28 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba59d3e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:29.084224 [ 50242 ] {a96667d5-1f99-426f-814f-4bf9df526923} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 38 and precision 38: While processing '1e-0' AS x, toDecimal128(x, 38). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '1e-0' AS x, toDecimal128(x, 38);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b553a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0973 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3fd5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:29.085017 [ 50242 ] {a96667d5-1f99-426f-814f-4bf9df526923} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 38 and precision 38: While processing '1e-0' AS x, toDecimal128(x, 38). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b553a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0973 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3fd5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:29.096563 [ 50242 ] {af527bbe-9cf8-4b23-9a7a-026b455c4a15} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 38 and precision 38: While processing '-1e0' AS x, toDecimal128(x, 38). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT '-1e0' AS x, toDecimal128(x, 38);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b553a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0973 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3fd5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:29.097380 [ 50242 ] {af527bbe-9cf8-4b23-9a7a-026b455c4a15} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 38 and precision 38: While processing '-1e0' AS x, toDecimal128(x, 38). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b553a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0973 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3fd5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba94847 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba8ea96 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba7a319 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba79648 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba7885e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 2024.10.22 10:23:29.332677 [ 62325 ] {03f35db0-b0a4-4138-9ebd-16f96117b267} executeQuery: Code: 12. DB::Exception: Setting 'max_block_size' cannot be zero. (PARAMETER_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56130) (comment: 00694_max_block_size_zero.sql) (in query: SELECT number FROM system.numbers;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [40]) @ 0x000000000b20ad1e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2383: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabeb12 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:29.333305 [ 62325 ] {03f35db0-b0a4-4138-9ebd-16f96117b267} TCPHandler: Code: 12. DB::Exception: Setting 'max_block_size' cannot be zero. (PARAMETER_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [40]) @ 0x000000000b20ad1e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2383: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabeb12 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:30.432681 [ 62326 ] {3993ae55-4d17-485c-899a-242e9f78fbd1} executeQuery: Code: 43. DB::Exception: Illegal types Decimal(9, 4) and Decimal(9, 4) of arguments for aggregate function covarPop. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37332) (comment: 00700_decimal_aggregates.sql) (in query: SELECT covarPop(a, a), covarPop(b, b), covarPop(c, c) FROM decimal;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String const&) @ 0x0000000013e00ec8 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionStatisticsSimple.h:269: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionStatisticsBinary(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000015c26071 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:23:30.433896 [ 62326 ] {3993ae55-4d17-485c-899a-242e9f78fbd1} TCPHandler: Code: 43. DB::Exception: Illegal types Decimal(9, 4) and Decimal(9, 4) of arguments for aggregate function covarPop. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String const&) @ 0x0000000013e00ec8 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionStatisticsSimple.h:269: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionStatisticsBinary(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000015c26071 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:23:30.590245 [ 62326 ] {668bfeda-201a-4f83-ac44-d3fea1c89be6} executeQuery: Code: 43. DB::Exception: Illegal types Decimal(9, 4) and Decimal(9, 4) of arguments for aggregate function covarSamp. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37332) (comment: 00700_decimal_aggregates.sql) (in query: SELECT covarSamp(a, a), covarSamp(b, b), covarSamp(c, c) FROM decimal;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String const&) @ 0x0000000013e00ec8 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionStatisticsSimple.h:269: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionStatisticsBinary(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000015c25e31 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:23:30.591253 [ 62326 ] {668bfeda-201a-4f83-ac44-d3fea1c89be6} TCPHandler: Code: 43. DB::Exception: Illegal types Decimal(9, 4) and Decimal(9, 4) of arguments for aggregate function covarSamp. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String const&) @ 0x0000000013e00ec8 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionStatisticsSimple.h:269: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionStatisticsBinary(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000015c25e31 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:23:30.749276 [ 62326 ] {17793db8-8e3e-407b-be43-f3f36e2d22f7} executeQuery: Code: 43. DB::Exception: Illegal types Decimal(9, 4) and Decimal(9, 4) of arguments for aggregate function corr. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37332) (comment: 00700_decimal_aggregates.sql) (in query: SELECT corr(a, a), corr(b, b), corr(c, c) FROM decimal;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String const&) @ 0x0000000013e00ec8 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionStatisticsSimple.h:269: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionStatisticsBinary(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000015cf1791 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:23:30.750361 [ 62326 ] {17793db8-8e3e-407b-be43-f3f36e2d22f7} TCPHandler: Code: 43. DB::Exception: Illegal types Decimal(9, 4) and Decimal(9, 4) of arguments for aggregate function corr. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String const&) @ 0x0000000013e00ec8 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionStatisticsSimple.h:269: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionStatisticsBinary(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000015cf1791 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de78d8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7875 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013de7815 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013de779d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001ac0b399 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001ac07db5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001ac0684c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001ac05a59 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfb0a67 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bfae830 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bfadd59 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cacb3d3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cad27e0 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab3168 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 2024.10.22 10:23:31.066141 [ 50242 ] {3e88c508-034c-472f-8eb2-ce0d04cac853} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 9 digits were read: 123456789e0. Expected to read decimal with scale 1 and precision 9: While processing CAST('123456789', 'Decimal(9,1)'). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT CAST('123456789', 'Decimal(9,1)');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b2ffa in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9af9f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3ef5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::CastName, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000b87c887 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:3162: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)::operator()>>>(DB::DataTypeDecimal> const&) const @ 0x000000000b86c52f in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)&&) @ 0x000000000b86a88f in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:3121: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b86a3dc in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeDecimal>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b86a326 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b86a2c0 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b86a260 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b86a20b in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 2024.10.22 10:23:31.067515 [ 50242 ] {3e88c508-034c-472f-8eb2-ce0d04cac853} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 9 digits were read: 123456789e0. Expected to read decimal with scale 1 and precision 9: While processing CAST('123456789', 'Decimal(9,1)'). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b2ffa in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9af9f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3ef5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::CastName, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000b87c887 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:3162: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)::operator()>>>(DB::DataTypeDecimal> const&) const @ 0x000000000b86c52f in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)&&) @ 0x000000000b86a88f in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:3121: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b86a3dc in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeDecimal>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b86a326 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b86a2c0 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b86a260 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b86a20b in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 2024.10.22 10:23:31.295597 [ 50242 ] {b6d8680d-7c75-48c2-82c4-1bcd565d1aee} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 18 digits were read: 123456789123456789e0. Expected to read decimal with scale 1 and precision 18: While processing CAST('123456789123456789', 'Decimal(18,1)'). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT CAST('123456789123456789', 'Decimal(18,1)');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b429a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0193 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3f63e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::CastName, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000b890627 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:3162: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)::operator()>>>(DB::DataTypeDecimal> const&) const @ 0x000000000b88022f in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)&&) @ 0x000000000b87e58f in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:3121: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b87e0dc in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeDecimal>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b87e026 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b87dfc0 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b87df60 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b87df0b in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 2024.10.22 10:23:31.297205 [ 50242 ] {b6d8680d-7c75-48c2-82c4-1bcd565d1aee} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 18 digits were read: 123456789123456789e0. Expected to read decimal with scale 1 and precision 18: While processing CAST('123456789123456789', 'Decimal(18,1)'). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b429a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0193 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3f63e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::CastName, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000b890627 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:3162: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)::operator()>>>(DB::DataTypeDecimal> const&) const @ 0x000000000b88022f in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)&&) @ 0x000000000b87e58f in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:3121: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b87e0dc in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeDecimal>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b87e026 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b87dfc0 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b87df60 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b87df0b in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 2024.10.22 10:23:31.522023 [ 50242 ] {384291c3-1e9e-4328-8290-81f963d80f77} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 38 digits were read: 12345678901234567890123456789012345678e0. Expected to read decimal with scale 1 and precision 38: While processing CAST('12345678901234567890123456789012345678', 'Decimal(38,1)'). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37378) (comment: 00700_decimal_casts.sql) (in query: SELECT CAST('12345678901234567890123456789012345678', 'Decimal(38,1)');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b553a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0973 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3fd5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::CastName, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000b8a4a47 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:3162: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal>> const&)::operator()>>>>(DB::DataTypeDecimal>> const&) const @ 0x000000000b893fcf in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal>> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal>> const&)&&) @ 0x000000000b89232f in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:3121: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b891e7c in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeDecimal>>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b891dc6 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b891d60 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b891d00 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b891cab in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 2024.10.22 10:23:31.523363 [ 50242 ] {384291c3-1e9e-4328-8290-81f963d80f77} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 38 digits were read: 12345678901234567890123456789012345678e0. Expected to read decimal with scale 1 and precision 38: While processing CAST('12345678901234567890123456789012345678', 'Decimal(38,1)'). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9b553a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9b0973 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba3fd5e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::CastName, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000b8a4a47 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:3162: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal>> const&)::operator()>>>>(DB::DataTypeDecimal>> const&) const @ 0x000000000b893fcf in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal>> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal>> const&)&&) @ 0x000000000b89232f in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:3121: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b891e7c in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeDecimal>>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b891dc6 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b891d60 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b891d00 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b891cab in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19b059 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 2024.10.22 10:23:39.051097 [ 12917 ] {0799850e-73a0-4ec7-af53-f3dd9def4b52} executeQuery: Code: 44. DB::Exception: Illegal column UInt32 of argument of aggregation state multiply. Should be integer constant. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37338) (comment: 00647_multiply_aggregation_state.sql) (in query: SELECT sumMerge(y * a) FROM (SELECT a, sumState(b) AS y FROM mult_aggregation GROUP BY a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1028: DB::FunctionBinaryArithmetic::executeAggregateMultiply(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000113b0c90 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2013: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000113b03e4 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc8e048 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc8da48 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001ebcdd87 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001ee33d66 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cacd7f1 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:2607: DB::InterpreterSelectQuery::executeAggregation(DB::QueryPlan&, std::shared_ptr const&, bool, bool, std::shared_ptr) @ 0x000000001cac1660 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:1686: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9c79 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 2024.10.22 10:23:39.051940 [ 12917 ] {0799850e-73a0-4ec7-af53-f3dd9def4b52} TCPHandler: Code: 44. DB::Exception: Illegal column UInt32 of argument of aggregation state multiply. Should be integer constant. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1028: DB::FunctionBinaryArithmetic::executeAggregateMultiply(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000113b0c90 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2013: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000113b03e4 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc8e048 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc8da48 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001ebcdd87 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001ee33d66 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cacd7f1 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:2607: DB::InterpreterSelectQuery::executeAggregation(DB::QueryPlan&, std::shared_ptr const&, bool, bool, std::shared_ptr) @ 0x000000001cac1660 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:1686: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab9c79 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 2024.10.22 10:23:55.531696 [ 62462 ] {eed9c4ec-a739-497c-abd6-59f49454f41d} executeQuery: Code: 20. DB::Exception: Number of columns doesn't match. (NUMBER_OF_COLUMNS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42706) (comment: 00550_join_insert_select.sh) (in query: INSERT INTO test1_00550 SELECT id, name FROM test2_00550 ANY INNER JOIN test3_00550 USING (id) SETTINGS any_join_distinct_right_table_keys=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [32]) @ 0x0000000011954f7e in /usr/bin/clickhouse 6. /build/src/Interpreters/ActionsDAG.cpp:1220: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x000000001bc921c6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterInsertQuery.cpp:556: DB::InterpreterInsertQuery::execute() @ 0x000000001ca8703c in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:55.533422 [ 62462 ] {eed9c4ec-a739-497c-abd6-59f49454f41d} TCPHandler: Code: 20. DB::Exception: Number of columns doesn't match. (NUMBER_OF_COLUMNS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [32]) @ 0x0000000011954f7e in /usr/bin/clickhouse 6. /build/src/Interpreters/ActionsDAG.cpp:1220: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x000000001bc921c6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterInsertQuery.cpp:556: DB::InterpreterInsertQuery::execute() @ 0x000000001ca8703c in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:55.625495 [ 62462 ] {ac17d43d-dd52-4e7d-b7d5-ac936077a1aa} executeQuery: Code: 20. DB::Exception: Number of columns doesn't match. (NUMBER_OF_COLUMNS_DOESNT_MATCH) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42706) (comment: 00550_join_insert_select.sh) (in query: INSERT INTO test1_00550 SELECT id, name FROM test2_00550 ANY LEFT OUTER JOIN test3_00550 USING (id);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [32]) @ 0x0000000011954f7e in /usr/bin/clickhouse 6. /build/src/Interpreters/ActionsDAG.cpp:1220: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x000000001bc921c6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterInsertQuery.cpp:556: DB::InterpreterInsertQuery::execute() @ 0x000000001ca8703c in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:55.627851 [ 62462 ] {ac17d43d-dd52-4e7d-b7d5-ac936077a1aa} TCPHandler: Code: 20. DB::Exception: Number of columns doesn't match. (NUMBER_OF_COLUMNS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [32]) @ 0x0000000011954f7e in /usr/bin/clickhouse 6. /build/src/Interpreters/ActionsDAG.cpp:1220: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x000000001bc921c6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterInsertQuery.cpp:556: DB::InterpreterInsertQuery::execute() @ 0x000000001ca8703c in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:23:56.636484 [ 62325 ] {5ebebef4-5f25-4cd4-9386-a3bf7087b93a} executeQuery: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing now(tz) != toDateTime('2000-01-01 00:00:00'). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42722) (comment: 00515_enhanced_time_zones.sql) (in query: SELECT val FROM tab WHERE now(tz) != toDateTime('2000-01-01 00:00:00') ORDER BY val SETTINGS allow_nonconst_timezone_arguments = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001ac033f1 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001ac0350f in /usr/bin/clickhouse 8. /build/src/Functions/now.cpp:109: DB::(anonymous namespace)::NowOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118e8646 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfb95a3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe976 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:23:56.637588 [ 62325 ] {5ebebef4-5f25-4cd4-9386-a3bf7087b93a} TCPHandler: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing now(tz) != toDateTime('2000-01-01 00:00:00'). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001ac033f1 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001ac0350f in /usr/bin/clickhouse 8. /build/src/Functions/now.cpp:109: DB::(anonymous namespace)::NowOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118e8646 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfb95a3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe976 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:23:56.849985 [ 62325 ] {22a427d8-910a-4197-8739-fc7bf5ceb2af} executeQuery: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing now64(9, tz) != toDateTime64('2000-01-01 00:00:00', 6). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42722) (comment: 00515_enhanced_time_zones.sql) (in query: SELECT val FROM tab WHERE now64(9, tz) != toDateTime64('2000-01-01 00:00:00', 6) ORDER BY val SETTINGS allow_nonconst_timezone_arguments = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001ac033f1 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001ac0350f in /usr/bin/clickhouse 8. /build/src/Functions/now64.cpp:144: DB::(anonymous namespace)::Now64OverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118eb4b3 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfb95a3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe976 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:23:56.851443 [ 62325 ] {22a427d8-910a-4197-8739-fc7bf5ceb2af} TCPHandler: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing now64(9, tz) != toDateTime64('2000-01-01 00:00:00', 6). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001ac033f1 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001ac0350f in /usr/bin/clickhouse 8. /build/src/Functions/now64.cpp:144: DB::(anonymous namespace)::Now64OverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118eb4b3 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfb95a3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe976 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:23:57.066278 [ 62325 ] {4a7fa898-8656-4a50-8f77-454fd27c612a} executeQuery: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing nowInBlock(tz) != toDateTime('2000-01-01 00:00:00'). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42722) (comment: 00515_enhanced_time_zones.sql) (in query: SELECT val FROM tab WHERE nowInBlock(tz) != toDateTime('2000-01-01 00:00:00') ORDER BY val SETTINGS allow_nonconst_timezone_arguments = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001ac033f1 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001ac0350f in /usr/bin/clickhouse 8. /build/src/Functions/nowInBlock.cpp:75: DB::(anonymous namespace)::FunctionNowInBlock::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118eeba6 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfb95a3 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe976 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:23:57.067380 [ 62325 ] {4a7fa898-8656-4a50-8f77-454fd27c612a} TCPHandler: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing nowInBlock(tz) != toDateTime('2000-01-01 00:00:00'). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001ac033f1 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001ac0350f in /usr/bin/clickhouse 8. /build/src/Functions/nowInBlock.cpp:75: DB::(anonymous namespace)::FunctionNowInBlock::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118eeba6 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfb95a3 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe976 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:23:57.289697 [ 62325 ] {bf7dffd7-2eb7-4822-a60b-6ec53ce615dd} executeQuery: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing toTimeZone(toDateTime(val), tz) != toDateTime('2023-06-11 14:14:14'). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42722) (comment: 00515_enhanced_time_zones.sql) (in query: SELECT val FROM tab WHERE toTimeZone(toDateTime(val), tz) != toDateTime('2023-06-11 14:14:14') ORDER BY val SETTINGS allow_nonconst_timezone_arguments = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001ac033f1 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001ac0350f in /usr/bin/clickhouse 8. /build/src/Functions/toTimezone.cpp:106: DB::(anonymous namespace)::ToTimeZoneOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126d5246 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfb95a3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe976 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:23:57.290726 [ 62325 ] {bf7dffd7-2eb7-4822-a60b-6ec53ce615dd} TCPHandler: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing toTimeZone(toDateTime(val), tz) != toDateTime('2023-06-11 14:14:14'). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001ac033f1 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001ac0350f in /usr/bin/clickhouse 8. /build/src/Functions/toTimezone.cpp:106: DB::(anonymous namespace)::ToTimeZoneOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126d5246 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfb95a3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe976 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 2024.10.22 10:23:57.505008 [ 62325 ] {63b94dcd-b3d7-4523-9a4c-27633148d991} executeQuery: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing fromUnixTimestamp64Milli(val, tz) != toDateTime64('2023-06-11 14:14:14', 6). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42722) (comment: 00515_enhanced_time_zones.sql) (in query: SELECT val FROM tab WHERE fromUnixTimestamp64Milli(val, tz) != toDateTime64('2023-06-11 14:14:14', 6) ORDER BY val SETTINGS allow_nonconst_timezone_arguments = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001ac033f1 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001ac0350f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionUnixTimestamp64.h:127: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e2b1ef3 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfb95a3 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe976 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:23:57.506055 [ 62325 ] {63b94dcd-b3d7-4523-9a4c-27633148d991} TCPHandler: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing fromUnixTimestamp64Milli(val, tz) != toDateTime64('2023-06-11 14:14:14', 6). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001ac033f1 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001ac0350f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionUnixTimestamp64.h:127: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e2b1ef3 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfb95a3 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe976 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:23:57.642736 [ 62325 ] {967d2436-7340-4db0-87ce-f7c887db5508} executeQuery: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing fromUnixTimestamp64Micro(val, tz) != toDateTime64('2023-06-11 14:14:14', 6). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42722) (comment: 00515_enhanced_time_zones.sql) (in query: SELECT val FROM tab WHERE fromUnixTimestamp64Micro(val, tz) != toDateTime64('2023-06-11 14:14:14', 6) ORDER BY val SETTINGS allow_nonconst_timezone_arguments = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001ac033f1 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001ac0350f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionUnixTimestamp64.h:127: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e2b1ef3 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfb95a3 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe976 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:23:57.643583 [ 62325 ] {967d2436-7340-4db0-87ce-f7c887db5508} TCPHandler: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing fromUnixTimestamp64Micro(val, tz) != toDateTime64('2023-06-11 14:14:14', 6). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001ac033f1 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001ac0350f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionUnixTimestamp64.h:127: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e2b1ef3 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfb95a3 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe976 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:23:57.742399 [ 62325 ] {2da8c75d-3b9e-47fa-8206-6a68e02864a4} executeQuery: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing fromUnixTimestamp64Nano(val, tz) != toDateTime64('2023-06-11 14:14:14', 6). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42722) (comment: 00515_enhanced_time_zones.sql) (in query: SELECT val FROM tab WHERE fromUnixTimestamp64Nano(val, tz) != toDateTime64('2023-06-11 14:14:14', 6) ORDER BY val SETTINGS allow_nonconst_timezone_arguments = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001ac033f1 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001ac0350f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionUnixTimestamp64.h:127: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e2b1ef3 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfb95a3 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe976 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:23:57.743437 [ 62325 ] {2da8c75d-3b9e-47fa-8206-6a68e02864a4} TCPHandler: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing fromUnixTimestamp64Nano(val, tz) != toDateTime64('2023-06-11 14:14:14', 6). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001ac033f1 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001ac0350f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionUnixTimestamp64.h:127: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e2b1ef3 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfb95a3 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe976 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:23:57.958786 [ 62325 ] {d5f9c5e4-d438-4535-9a09-9d18938cbf5c} executeQuery: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing snowflakeToDateTime(val, tz) != toDateTime('2023-06-11 14:14:14'). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42722) (comment: 00515_enhanced_time_zones.sql) (in query: SELECT val FROM tab WHERE snowflakeToDateTime(val, tz) != toDateTime('2023-06-11 14:14:14') ORDER BY val SETTINGS allow_nonconst_timezone_arguments = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001ac033f1 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001ac0350f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionSnowflake.h:99: DB::FunctionSnowflakeToDateTime::getReturnTypeImpl(std::vector> const&) const @ 0x000000001254d097 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfb95a3 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe976 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:23:57.959779 [ 62325 ] {d5f9c5e4-d438-4535-9a09-9d18938cbf5c} TCPHandler: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing snowflakeToDateTime(val, tz) != toDateTime('2023-06-11 14:14:14'). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001ac033f1 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001ac0350f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionSnowflake.h:99: DB::FunctionSnowflakeToDateTime::getReturnTypeImpl(std::vector> const&) const @ 0x000000001254d097 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfb95a3 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe976 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:23:58.171318 [ 62325 ] {ea11fcb5-0a34-4cfa-a486-e201616555e0} executeQuery: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing snowflakeToDateTime64(val, tz) != toDateTime64('2023-06-11 14:14:14', 6). (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42722) (comment: 00515_enhanced_time_zones.sql) (in query: SELECT val FROM tab WHERE snowflakeToDateTime64(val, tz) != toDateTime64('2023-06-11 14:14:14', 6) ORDER BY val SETTINGS allow_nonconst_timezone_arguments = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001ac033f1 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001ac0350f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionSnowflake.h:201: DB::FunctionSnowflakeToDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x000000001254e3d7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfb95a3 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe976 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:23:58.280754 [ 62325 ] {ea11fcb5-0a34-4cfa-a486-e201616555e0} TCPHandler: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing snowflakeToDateTime64(val, tz) != toDateTime64('2023-06-11 14:14:14', 6). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001ac033f1 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001ac0350f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionSnowflake.h:201: DB::FunctionSnowflakeToDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x000000001254e3d7 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfb95a3 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbe976 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 2024.10.22 10:23:58.280855 [ 62464 ] {110e9737-d313-44d8-ac33-326424f28313} executeQuery: Code: 407. DB::Exception: Decimal math overflow: While processing toDateTime64('3000-01-01 12:00:00.12345', 0) + toIntervalNanosecond(0). (DECIMAL_OVERFLOW) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39216) (comment: 00514_interval_operators.sql) (in query: select toDateTime64('3000-01-01 12:00:00.12345', 0) + interval 0 nanosecond;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b244b5e in /usr/bin/clickhouse 6. /build/src/Core/DecimalFunctions.h:98: bool DB::DecimalUtils::multiplyAdd(long const&, long const&, long const&, long&) @ 0x000000000b244a2e in /usr/bin/clickhouse 7. /build/src/Core/DecimalFunctions.h:117: long DB::DecimalUtils::multiplyAdd(long const&, long const&, long const&) @ 0x000000000c3eca49 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:54: DB::AddNanosecondsImpl::execute(DB::DateTime64, long, DateLUTImpl const&, unsigned short) @ 0x000000000c3ee4e0 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:445: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>, DB::ColumnVector>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::ColumnVector const&, DateLUTImpl const&, unsigned short, unsigned long) const @ 0x000000000c477372 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:413: auto void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)::operator()>(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000000c476c23 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::IColumn, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)>(DB::PODArray, 63ul, 64ul> const*, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)&&) @ 0x000000000c46b48d in /usr/bin/clickhouse 12. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:414: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const @ 0x000000000c476883 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:482: DB::DateTimeAddIntervalImpl::execute(DB::AddNanosecondsImpl, std::vector> const&, std::shared_ptr const&, unsigned short) @ 0x000000000c47150a in /usr/bin/clickhouse 14. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:663: DB::FunctionDateOrDateTimeAddInterval::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c46fa97 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:1134: DB::FunctionBinaryArithmetic::executeDateTimeIntervalPlusMinus(std::vector> const&, std::shared_ptr const&, unsigned long, std::shared_ptr const&) const @ 0x0000000011b8c831 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:2025: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b8acd4 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b89dec in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 26. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 2024.10.22 10:23:58.281751 [ 62464 ] {110e9737-d313-44d8-ac33-326424f28313} TCPHandler: Code: 407. DB::Exception: Decimal math overflow: While processing toDateTime64('3000-01-01 12:00:00.12345', 0) + toIntervalNanosecond(0). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b244b5e in /usr/bin/clickhouse 6. /build/src/Core/DecimalFunctions.h:98: bool DB::DecimalUtils::multiplyAdd(long const&, long const&, long const&, long&) @ 0x000000000b244a2e in /usr/bin/clickhouse 7. /build/src/Core/DecimalFunctions.h:117: long DB::DecimalUtils::multiplyAdd(long const&, long const&, long const&) @ 0x000000000c3eca49 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:54: DB::AddNanosecondsImpl::execute(DB::DateTime64, long, DateLUTImpl const&, unsigned short) @ 0x000000000c3ee4e0 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:445: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>, DB::ColumnVector>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::ColumnVector const&, DateLUTImpl const&, unsigned short, unsigned long) const @ 0x000000000c477372 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:413: auto void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)::operator()>(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000000c476c23 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::IColumn, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)>(DB::PODArray, 63ul, 64ul> const*, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)&&) @ 0x000000000c46b48d in /usr/bin/clickhouse 12. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:414: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const @ 0x000000000c476883 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:482: DB::DateTimeAddIntervalImpl::execute(DB::AddNanosecondsImpl, std::vector> const&, std::shared_ptr const&, unsigned short) @ 0x000000000c47150a in /usr/bin/clickhouse 14. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:663: DB::FunctionDateOrDateTimeAddInterval::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c46fa97 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:1134: DB::FunctionBinaryArithmetic::executeDateTimeIntervalPlusMinus(std::vector> const&, std::shared_ptr const&, unsigned long, std::shared_ptr const&) const @ 0x0000000011b8c831 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:2025: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b8acd4 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b89dec in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 26. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 2024.10.22 10:23:58.303141 [ 62464 ] {9319fe9d-175d-440a-a16f-9dc559ba3257} executeQuery: Code: 43. DB::Exception: addNanoseconds cannot be used with Date: While processing materialize(toDate('2000-01-01')) + toIntervalNanosecond(1). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39216) (comment: 00514_interval_operators.sql) (in query: -- Check that the error is thrown during typechecking, not execution. select materialize(toDate('2000-01-01')) + interval 1 nanosecond from numbers(0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c478184 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4703d0 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c79fe7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001195eaef in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:23:58.303811 [ 62464 ] {9319fe9d-175d-440a-a16f-9dc559ba3257} TCPHandler: Code: 43. DB::Exception: addNanoseconds cannot be used with Date: While processing materialize(toDate('2000-01-01')) + toIntervalNanosecond(1). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c478184 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4703d0 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b195c90 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c79fe7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001195eaef in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0bb969 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 2024.10.22 10:23:58.783662 [ 62325 ] {05cbf203-d682-490d-941b-992ab8c1c02f} executeQuery: Code: 44. DB::Exception: Illegal column timezone of time zone argument of function, must be a constant string: While processing _CAST(toTimezone(date, timezone) AS viewer_date_tmp_alter5418284636617489588, 'DateTime') AS viewer_date: default expression and column type are incompatible. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42722) (comment: 00515_enhanced_time_zones.sql) (in query: ATTACH TABLE tab SETTINGS allow_nonconst_timezone_arguments = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001ac033f1 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001ac0350f in /usr/bin/clickhouse 8. /build/src/Functions/toTimezone.cpp:106: DB::(anonymous namespace)::ToTimeZoneOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126d5246 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1696: DB::ExpressionAnalyzer::getActionsDAG(bool, bool) @ 0x000000001bfbcff8 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1729: DB::ExpressionAnalyzer::getActions(bool, bool, DB::CompileExpressions) @ 0x000000001bfbd363 in /usr/bin/clickhouse 26. /build/src/Storages/ColumnsDescription.cpp:847: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad4a5 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:571: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ec6ba in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 2024.10.22 10:23:58.785713 [ 62325 ] {05cbf203-d682-490d-941b-992ab8c1c02f} TCPHandler: Code: 44. DB::Exception: Illegal column timezone of time zone argument of function, must be a constant string: While processing _CAST(toTimezone(date, timezone) AS viewer_date_tmp_alter5418284636617489588, 'DateTime') AS viewer_date: default expression and column type are incompatible. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001ac033f1 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001ac0350f in /usr/bin/clickhouse 8. /build/src/Functions/toTimezone.cpp:106: DB::(anonymous namespace)::ToTimeZoneOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126d5246 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abf37c7 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abf3216 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abf3821 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc896c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfeeabf in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1696: DB::ExpressionAnalyzer::getActionsDAG(bool, bool) @ 0x000000001bfbcff8 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1729: DB::ExpressionAnalyzer::getActions(bool, bool, DB::CompileExpressions) @ 0x000000001bfbd363 in /usr/bin/clickhouse 26. /build/src/Storages/ColumnsDescription.cpp:847: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d5ad4a5 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:571: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ec6ba in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 2024.10.22 10:24:00.661982 [ 50242 ] {dc9fefdc-87f0-4b9c-bbc9-e7ac50b8c3b3} executeQuery: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((0.1, 0.1), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39292) (comment: 00500_point_in_polygon.sql) (in query: SELECT pointInPolygon((0.1, 0.1), [(0.5, 0.), (1.0, 0.), (8.0, 7.5), (7.5, 8.0), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.0)]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cdf380 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cdd659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:24:00.662991 [ 50242 ] {dc9fefdc-87f0-4b9c-bbc9-e7ac50b8c3b3} TCPHandler: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((0.1, 0.1), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cdf380 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cdd659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:24:00.676580 [ 50242 ] {38e1db2d-156f-4309-94fe-7a892f2302e6} executeQuery: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((1., 1.), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39292) (comment: 00500_point_in_polygon.sql) (in query: SELECT pointInPolygon((1., 1.), [(0.5, 0.), (1.0, 0.), (8.0, 7.5), (7.5, 8.0), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.0)]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cdf380 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cdd659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:24:00.677598 [ 50242 ] {38e1db2d-156f-4309-94fe-7a892f2302e6} TCPHandler: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((1., 1.), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cdf380 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cdd659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:24:00.690190 [ 50242 ] {dcce0baf-1e1e-47ab-bc46-bae9a22cde30} executeQuery: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((0.7, 0.1), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39292) (comment: 00500_point_in_polygon.sql) (in query: SELECT pointInPolygon((0.7, 0.1), [(0.5, 0.), (1.0, 0.), (8.0, 7.5), (7.5, 8.0), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.0)]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cdf380 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cdd659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:24:00.691210 [ 50242 ] {dcce0baf-1e1e-47ab-bc46-bae9a22cde30} TCPHandler: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((0.7, 0.1), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cdf380 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cdd659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:24:00.704151 [ 50242 ] {dcdbcddf-f73e-4668-8a25-ce9efdd573fa} executeQuery: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((0.1, 0.7), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39292) (comment: 00500_point_in_polygon.sql) (in query: SELECT pointInPolygon((0.1, 0.7), [(0.5, 0.), (1.0, 0.), (8.0, 7.5), (7.5, 8.0), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.0)]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cdf380 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cdd659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:24:00.705006 [ 50242 ] {dcdbcddf-f73e-4668-8a25-ce9efdd573fa} TCPHandler: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((0.1, 0.7), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cdf380 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cdd659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:24:00.717847 [ 50242 ] {eb1d0b4d-8310-47b6-98c2-e3114380fd54} executeQuery: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((1.1, 0.1), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39292) (comment: 00500_point_in_polygon.sql) (in query: SELECT pointInPolygon((1.1, 0.1), [(0.5, 0.), (1.0, 0.), (8.0, 7.5), (7.5, 8.0), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.0)]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cdf380 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cdd659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:24:00.718734 [ 50242 ] {eb1d0b4d-8310-47b6-98c2-e3114380fd54} TCPHandler: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((1.1, 0.1), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cdf380 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cdd659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:24:00.730773 [ 50242 ] {4b102871-1524-49e0-b47c-1bf07a0a3a19} executeQuery: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((0.1, 1.1), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39292) (comment: 00500_point_in_polygon.sql) (in query: SELECT pointInPolygon((0.1, 1.1), [(0.5, 0.), (1.0, 0.), (8.0, 7.5), (7.5, 8.0), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.0)]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cdf380 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cdd659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:24:00.731593 [ 50242 ] {4b102871-1524-49e0-b47c-1bf07a0a3a19} TCPHandler: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((0.1, 1.1), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cdf380 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cdd659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:24:00.743954 [ 50242 ] {6736576c-797b-4cb3-8d82-5ae075568d14} executeQuery: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((5., 5.), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39292) (comment: 00500_point_in_polygon.sql) (in query: SELECT pointInPolygon((5.0, 5.0), [(0.5, 0.), (1.0, 0.), (8.0, 7.5), (7.5, 8.0), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.0)]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cdf380 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cdd659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:24:00.744764 [ 50242 ] {6736576c-797b-4cb3-8d82-5ae075568d14} TCPHandler: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((5., 5.), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cdf380 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cdd659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:24:00.757104 [ 50242 ] {79c4fc0b-a792-4bbe-b35c-df30121c78a5} executeQuery: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((7.9, 7.9), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39292) (comment: 00500_point_in_polygon.sql) (in query: SELECT pointInPolygon((7.9, 7.9), [(0.5, 0.), (1.0, 0.), (8.0, 7.5), (7.5, 8.0), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.0)]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cdf380 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cdd659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:24:00.757964 [ 50242 ] {79c4fc0b-a792-4bbe-b35c-df30121c78a5} TCPHandler: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((7.9, 7.9), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cdf380 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cdd659 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 2024.10.22 10:24:02.999632 [ 62433 ] {5af623fa-b05f-4cc9-84db-4a00af31df37} executeQuery: Code: 36. DB::Exception: Unexpected type Array(Array(String)) of bloom filter index. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39386) (comment: 00908_bloom_filter_index.sh) (in query: CREATE TABLE bloom_filter_idx_na (`na` Array(Array(String)), INDEX bf na TYPE bloom_filter(0.1) GRANULARITY 1) ENGINE = MergeTree ORDER BY na SETTINGS index_granularity = 53067, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 8705, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 1, min_merge_bytes_to_use_direct_io = 10737418240, index_granularity_bytes = 29756527, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 37596, primary_key_compress_block_size = 9529), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/BloomFilter.cpp:124: DB::BloomFilter::getPrimitiveType(std::shared_ptr const&) @ 0x000000001bda92cf in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexBloomFilter.cpp:87: DB::assertIndexColumnsType(DB::Block const&) @ 0x000000001e03dfec in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeIndexBloomFilter.cpp:118: DB::bloomFilterIndexValidatorNew(DB::IndexDescription const&, bool) @ 0x000000001e03dd64 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008f0d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008ec5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001e008e85 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001e008e30 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001e007e4e in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001e002608 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001e001106 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de68eb0 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 19. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 25. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 2024.10.22 10:24:03.001720 [ 62433 ] {5af623fa-b05f-4cc9-84db-4a00af31df37} TCPHandler: Code: 36. DB::Exception: Unexpected type Array(Array(String)) of bloom filter index. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/BloomFilter.cpp:124: DB::BloomFilter::getPrimitiveType(std::shared_ptr const&) @ 0x000000001bda92cf in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexBloomFilter.cpp:87: DB::assertIndexColumnsType(DB::Block const&) @ 0x000000001e03dfec in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeIndexBloomFilter.cpp:118: DB::bloomFilterIndexValidatorNew(DB::IndexDescription const&, bool) @ 0x000000001e03dd64 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008f0d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001e008ec5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001e008e85 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001e008e30 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001e007e4e in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001e002608 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001e001106 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de68eb0 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001de661d6 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001de6554d in /usr/bin/clickhouse 19. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e362e93 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362a5a in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e362755 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3623e3 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3621f5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e3607db in /usr/bin/clickhouse 25. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e35ea1f in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1fa3d in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9fd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1f9bd in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae1f985 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 2024.10.22 10:24:17.421488 [ 62326 ] {6850ff18-f3b9-448c-b571-76f4feb8615e} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34444) (comment: 00417_kill_query.sh) (in query: SELECT sleep(1) FROM system.numbers LIMIT 300), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001ccae2fb in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e6d4ca0 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e6d537c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d4c16 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:24:17.423494 [ 62326 ] {6850ff18-f3b9-448c-b571-76f4feb8615e} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001ccae2fb in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e6d4ca0 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e6d537c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d4c16 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:24:17.457771 [ 64241 ] {83c7fc2e-a19f-471f-9b0c-174a6d2049c1} MergeTreeDataWriter: Incorrect data: number of rows with sign = 1 (9000) differs with number of rows with sign = -1 (0) by more than one (for key: 0, 0).). 2024.10.22 10:24:19.499392 [ 12925 ] {74bc0c45-5c3a-48ea-a268-ce9b249d6eef} executeQuery: Code: 10. DB::Exception: Wrong column name. Cannot find column `VasyaUnexistingColumn` to drop. (NOT_FOUND_COLUMN_IN_BLOCK) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35660) (comment: 00446_clear_column_in_partition_concurrent_zookeeper.sh) (in query: ALTER TABLE clear_column1 CLEAR COLUMN VasyaUnexistingColumn IN PARTITION '200001'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1249: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d594679 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da4c5 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:24:19.501046 [ 12925 ] {74bc0c45-5c3a-48ea-a268-ce9b249d6eef} TCPHandler: Code: 10. DB::Exception: Wrong column name. Cannot find column `VasyaUnexistingColumn` to drop. (NOT_FOUND_COLUMN_IN_BLOCK), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1249: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d594679 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da4c5 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:24:21.112240 [ 62324 ] {667faaef-7b2a-4538-a9db-55c5510e5566} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35624) (comment: 00417_kill_query.sh) (in query: SELECT sleep(1) FROM system.numbers LIMIT 301), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001ccae2fb in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e6d4ca0 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e6d537c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d4c16 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:24:21.115751 [ 62324 ] {667faaef-7b2a-4538-a9db-55c5510e5566} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001ccae2fb in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e6d4ca0 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e6d537c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d4c16 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e6f77c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a64a95 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a649bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a644a2 in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:24:26.240312 [ 12917 ] {5f26f7b1-d740-4277-bcf8-fe1924a5aadb::19700101_19700101_1_3_1} CollapsingSortedTransform: Incorrect data: number of rows with sign = 1 (2) differs with number of rows with sign = -1 (0) by more than one (for key: 0, 0).). 2024.10.22 10:24:26.252405 [ 12917 ] {5f26f7b1-d740-4277-bcf8-fe1924a5aadb::19700101_19700101_1_3_1} CollapsingSortedTransform: Incorrect data: number of rows with sign = 1 (2) differs with number of rows with sign = -1 (0) by more than one (for key: 0, 9000).). 2024.10.22 10:24:26.252567 [ 12917 ] {5f26f7b1-d740-4277-bcf8-fe1924a5aadb::19700101_19700101_1_3_1} CollapsingSortedTransform: Incorrect data: number of rows with sign = 1 (2) differs with number of rows with sign = -1 (0) by more than one (for key: 0, 9001).). 2024.10.22 10:24:26.252723 [ 12917 ] {5f26f7b1-d740-4277-bcf8-fe1924a5aadb::19700101_19700101_1_3_1} CollapsingSortedTransform: Incorrect data: number of rows with sign = 1 (2) differs with number of rows with sign = -1 (0) by more than one (for key: 0, 9002).). 2024.10.22 10:24:26.252865 [ 12917 ] {5f26f7b1-d740-4277-bcf8-fe1924a5aadb::19700101_19700101_1_3_1} CollapsingSortedTransform: Incorrect data: number of rows with sign = 1 (2) differs with number of rows with sign = -1 (0) by more than one (for key: 0, 9003).). 2024.10.22 10:24:26.253006 [ 12917 ] {5f26f7b1-d740-4277-bcf8-fe1924a5aadb::19700101_19700101_1_3_1} CollapsingSortedTransform: Incorrect data: number of rows with sign = 1 (2) differs with number of rows with sign = -1 (0) by more than one (for key: 0, 9004).). 2024.10.22 10:24:26.253147 [ 12917 ] {5f26f7b1-d740-4277-bcf8-fe1924a5aadb::19700101_19700101_1_3_1} CollapsingSortedTransform: Incorrect data: number of rows with sign = 1 (2) differs with number of rows with sign = -1 (0) by more than one (for key: 0, 9005).). 2024.10.22 10:24:26.253291 [ 12917 ] {5f26f7b1-d740-4277-bcf8-fe1924a5aadb::19700101_19700101_1_3_1} CollapsingSortedTransform: Incorrect data: number of rows with sign = 1 (2) differs with number of rows with sign = -1 (0) by more than one (for key: 0, 9006).). 2024.10.22 10:24:26.253432 [ 12917 ] {5f26f7b1-d740-4277-bcf8-fe1924a5aadb::19700101_19700101_1_3_1} CollapsingSortedTransform: Incorrect data: number of rows with sign = 1 (2) differs with number of rows with sign = -1 (0) by more than one (for key: 0, 9007).). 2024.10.22 10:24:26.253592 [ 12917 ] {5f26f7b1-d740-4277-bcf8-fe1924a5aadb::19700101_19700101_1_3_1} CollapsingSortedTransform: Incorrect data: number of rows with sign = 1 (2) differs with number of rows with sign = -1 (0) by more than one (for key: 0, 9008).). 2024.10.22 10:24:32.720887 [ 50241 ] {1d82f10b-f472-4981-a52f-bed524316509} executeQuery: Code: 47. DB::Exception: Missing columns: 'xyz' while processing query: 'SELECT xyz', required columns: 'xyz'. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:36784) (comment: 00380_client_break_at_exception_in_batch_mode.sh) (in query: SELECT xyz;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:24:32.722376 [ 50241 ] {1d82f10b-f472-4981-a52f-bed524316509} TCPHandler: Code: 47. DB::Exception: Missing columns: 'xyz' while processing query: 'SELECT xyz', required columns: 'xyz'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:25:07.186260 [ 63515 ] {9f7fc859-d6a5-48e3-8756-127451f65112} HedgedConnectionsFactory: Connection failed at try â„–1, reason: Timeout exceeded while connecting to socket (1.0.0.3:9000, connection timeout 2000 ms) 2024.10.22 10:25:07.186605 [ 64120 ] {9f7fc859-d6a5-48e3-8756-127451f65112} HedgedConnectionsFactory: Connection failed at try â„–1, reason: Timeout exceeded while connecting to socket (1.0.0.2:9000, connection timeout 2000 ms) 2024.10.22 10:25:09.187290 [ 63515 ] {9f7fc859-d6a5-48e3-8756-127451f65112} HedgedConnectionsFactory: Connection failed at try â„–2, reason: Timeout exceeded while connecting to socket (1.0.0.3:9000, connection timeout 2000 ms) 2024.10.22 10:25:09.187948 [ 64120 ] {9f7fc859-d6a5-48e3-8756-127451f65112} HedgedConnectionsFactory: Connection failed at try â„–2, reason: Timeout exceeded while connecting to socket (1.0.0.2:9000, connection timeout 2000 ms) 2024.10.22 10:25:11.188512 [ 63515 ] {9f7fc859-d6a5-48e3-8756-127451f65112} HedgedConnectionsFactory: Connection failed at try â„–3, reason: Timeout exceeded while connecting to socket (1.0.0.3:9000, connection timeout 2000 ms) 2024.10.22 10:25:11.188983 [ 64120 ] {9f7fc859-d6a5-48e3-8756-127451f65112} HedgedConnectionsFactory: Connection failed at try â„–3, reason: Timeout exceeded while connecting to socket (1.0.0.2:9000, connection timeout 2000 ms) 2024.10.22 10:25:11.217340 [ 12919 ] {e296a0d7-1e54-41bb-8c27-87257b687999} executeQuery: Code: 69. DB::Exception: Scale argument for rounding function is too large: While processing ceil(29375422, -54212). (ARGUMENT_OUT_OF_BOUND) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43776) (comment: 00161_rounding_functions.sql) (in query: SELECT ceil(29375422, -54212) --{serverError 69} ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [50]) @ 0x000000000b21bb9e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsRound.h:569: DB::FunctionRounding::getScaleArg(std::vector> const&) @ 0x000000000c2590fc in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsRound.h:582: DB::FunctionRounding::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c258835 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:25:11.218368 [ 12919 ] {e296a0d7-1e54-41bb-8c27-87257b687999} TCPHandler: Code: 69. DB::Exception: Scale argument for rounding function is too large: While processing ceil(29375422, -54212). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [50]) @ 0x000000000b21bb9e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsRound.h:569: DB::FunctionRounding::getScaleArg(std::vector> const&) @ 0x000000000c2590fc in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsRound.h:582: DB::FunctionRounding::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c258835 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19c659 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19ae0d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0ca6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0823 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0b83 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc89c18 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc89793 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfea1f6 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bff639d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfef82f in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea6cd in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bff0037 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfea739 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfe0980 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfe0b61 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfe090a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfc3fa5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfb11fd in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfbb1f5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfbfbaa in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001cabb5e4 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab43be in /usr/bin/clickhouse 2024.10.22 10:25:13.217617 [ 12917 ] {d940e679-95c8-48ad-b38e-ebf7e42953a6} HedgedConnectionsFactory: Connection failed at try â„–1, reason: Timeout exceeded while connecting to socket (1.0.0.2:9000, connection timeout 2000 ms) 2024.10.22 10:25:15.218631 [ 12917 ] {d940e679-95c8-48ad-b38e-ebf7e42953a6} HedgedConnectionsFactory: Connection failed at try â„–2, reason: Timeout exceeded while connecting to socket (1.0.0.2:9000, connection timeout 2000 ms) 2024.10.22 10:25:15.494531 [ 62324 ] {4318b8d1-dce7-488d-b63e-9a3d86775fe5} executeQuery: Code: 48. DB::Exception: StorageJoin with ORs is not supported. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43910) (comment: 00118_storage_join.sql) (in query: SELECT k, js1.s, t2.s FROM (SELECT number AS k, number AS s FROM system.numbers LIMIT 10) js1 ANY LEFT JOIN t2 ON js1.k == t2.k OR js1.s == t2.k ORDER BY k;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [38]) @ 0x000000000f82675e in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:155: DB::TableJoin::addDisjunct() @ 0x000000001cf4dc96 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:642: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa53a4 in /usr/bin/clickhouse 8. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:25:15.495597 [ 62324 ] {4318b8d1-dce7-488d-b63e-9a3d86775fe5} TCPHandler: Code: 48. DB::Exception: StorageJoin with ORs is not supported. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [38]) @ 0x000000000f82675e in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:155: DB::TableJoin::addDisjunct() @ 0x000000001cf4dc96 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:642: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cfa53a4 in /usr/bin/clickhouse 8. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1af2 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:25:17.232790 [ 12917 ] {d940e679-95c8-48ad-b38e-ebf7e42953a6} HedgedConnectionsFactory: Connection failed at try â„–3, reason: Timeout exceeded while connecting to socket (1.0.0.2:9000, connection timeout 2000 ms) 2024.10.22 10:25:19.239317 [ 12917 ] {d940e679-95c8-48ad-b38e-ebf7e42953a6} HedgedConnectionsFactory: Connection failed at try â„–1, reason: Timeout exceeded while connecting to socket (1.0.0.3:9000, connection timeout 2000 ms) 2024.10.22 10:25:21.241140 [ 12917 ] {d940e679-95c8-48ad-b38e-ebf7e42953a6} HedgedConnectionsFactory: Connection failed at try â„–2, reason: Timeout exceeded while connecting to socket (1.0.0.3:9000, connection timeout 2000 ms) 2024.10.22 10:25:23.264660 [ 12917 ] {d940e679-95c8-48ad-b38e-ebf7e42953a6} HedgedConnectionsFactory: Connection failed at try â„–3, reason: Timeout exceeded while connecting to socket (1.0.0.3:9000, connection timeout 2000 ms) 2024.10.22 10:25:25.821799 [ 64231 ] {d940e679-95c8-48ad-b38e-ebf7e42953a6} HedgedConnectionsFactory: Connection failed at try â„–1, reason: Timeout exceeded while connecting to socket (1.0.0.3:9000, connection timeout 2000 ms) 2024.10.22 10:25:25.837579 [ 5120 ] {d940e679-95c8-48ad-b38e-ebf7e42953a6} HedgedConnectionsFactory: Connection failed at try â„–1, reason: Timeout exceeded while connecting to socket (1.0.0.2:9000, connection timeout 2000 ms) 2024.10.22 10:25:27.843424 [ 64231 ] {d940e679-95c8-48ad-b38e-ebf7e42953a6} HedgedConnectionsFactory: Connection failed at try â„–2, reason: Timeout exceeded while connecting to socket (1.0.0.3:9000, connection timeout 2000 ms) 2024.10.22 10:25:27.844563 [ 5120 ] {d940e679-95c8-48ad-b38e-ebf7e42953a6} HedgedConnectionsFactory: Connection failed at try â„–2, reason: Timeout exceeded while connecting to socket (1.0.0.2:9000, connection timeout 2000 ms) 2024.10.22 10:25:29.844478 [ 64231 ] {d940e679-95c8-48ad-b38e-ebf7e42953a6} HedgedConnectionsFactory: Connection failed at try â„–3, reason: Timeout exceeded while connecting to socket (1.0.0.3:9000, connection timeout 2000 ms) 2024.10.22 10:25:29.845373 [ 5120 ] {d940e679-95c8-48ad-b38e-ebf7e42953a6} HedgedConnectionsFactory: Connection failed at try â„–3, reason: Timeout exceeded while connecting to socket (1.0.0.2:9000, connection timeout 2000 ms) 2024.10.22 10:25:47.594681 [ 62433 ] {c549eb9a-ad2b-4361-94ee-f5266fe4f528} executeQuery: Code: 47. DB::Exception: Missing columns: 'x' while processing query: 'SELECT x FROM system.numbers LIMIT 1', required columns: 'x'. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37846) (comment: 00002_system_numbers.sql) (in query: select x from system.numbers limit 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:25:47.595366 [ 62433 ] {c549eb9a-ad2b-4361-94ee-f5266fe4f528} TCPHandler: Code: 47. DB::Exception: Missing columns: 'x' while processing query: 'SELECT x FROM system.numbers LIMIT 1', required columns: 'x'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:25:47.602097 [ 62433 ] {24614619-d817-40f8-b06a-e0e2066d7308} executeQuery: Code: 47. DB::Exception: Missing columns: 'x' while processing query: 'SELECT x, number FROM system.numbers LIMIT 1', required columns: 'x' 'number', maybe you meant: 'number'. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37846) (comment: 00002_system_numbers.sql) (in query: SELECT x, number FROM system.numbers LIMIT 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:25:47.602881 [ 62433 ] {24614619-d817-40f8-b06a-e0e2066d7308} TCPHandler: Code: 47. DB::Exception: Missing columns: 'x' while processing query: 'SELECT x, number FROM system.numbers LIMIT 1', required columns: 'x' 'number', maybe you meant: 'number'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:25:47.731622 [ 62433 ] {80d386b1-f1fa-45c0-997b-9fc904dd24d0} executeQuery: Code: 60. DB::Exception: Table system.number does not exist. Maybe you meant numbers?. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37846) (comment: 00002_system_numbers.sql) (in query: SELECT * FROM system.number LIMIT 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:29: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb578d3 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:25:47.732344 [ 62433 ] {80d386b1-f1fa-45c0-997b-9fc904dd24d0} TCPHandler: Code: 60. DB::Exception: Table system.number does not exist. Maybe you meant numbers?. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:29: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb578d3 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:25:47.856278 [ 62433 ] {83ea4641-19d2-4adb-950a-dc978bdf2f41} executeQuery: Code: 60. DB::Exception: Table test_gi51sdjw.system does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37846) (comment: 00002_system_numbers.sql) (in query: SELECT * FROM system LIMIT 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:25:47.857120 [ 62433 ] {83ea4641-19d2-4adb-950a-dc978bdf2f41} TCPHandler: Code: 60. DB::Exception: Table test_gi51sdjw.system does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:25:47.862852 [ 62433 ] {010a73d9-ae37-4249-95a0-486fc3326d03} executeQuery: Code: 60. DB::Exception: Table test_gi51sdjw.numbers does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37846) (comment: 00002_system_numbers.sql) (in query: SELECT * FROM numbers LIMIT 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:25:47.863608 [ 62433 ] {010a73d9-ae37-4249-95a0-486fc3326d03} TCPHandler: Code: 60. DB::Exception: Table test_gi51sdjw.numbers does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:25:47.870192 [ 62433 ] {0a4d822b-7a8e-4d72-b10a-f7bf45382e83} executeQuery: Code: 47. DB::Exception: Missing columns: 'sys.number' while processing query: 'SELECT sys.number FROM system.numbers AS sys_num LIMIT 1', required columns: 'sys.number'. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37846) (comment: 00002_system_numbers.sql) (in query: SELECT sys.number FROM system.numbers AS sys_num LIMIT 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:25:47.871037 [ 62433 ] {0a4d822b-7a8e-4d72-b10a-f7bf45382e83} TCPHandler: Code: 47. DB::Exception: Missing columns: 'sys.number' while processing query: 'SELECT sys.number FROM system.numbers AS sys_num LIMIT 1', required columns: 'sys.number'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:27:00.539189 [ 62433 ] {c9bf8078-1d92-43a7-b26c-ab72bef4af04} executeQuery: Code: 319. DB::Exception: Unknown status, client must retry. Reason: Code: 999. Coordination::Exception: Fault injection before operation. (KEEPER_EXCEPTION) (version 23.8.16.42.altinitystable (altinity build)). (UNKNOWN_STATUS_OF_INSERT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58640) (comment: 02887_insert_quorum_wo_keeper_retries.sql) (in query: INSERT INTO quorum1 VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:1148: DB::ReplicatedMergeTreeSinkImpl::waitForQuorum(std::shared_ptr const&, String const&, String const&, int, unsigned long) const @ 0x000000001e327096 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:1069: DB::ReplicatedMergeTreeSinkImpl::commitPart(std::shared_ptr const&, std::shared_ptr&, String const&, unsigned long, bool) @ 0x000000001e325618 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:423: DB::ReplicatedMergeTreeSinkImpl::finishDelayedChunk(std::shared_ptr const&) @ 0x000000001e31a2d1 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:400: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e324558 in /usr/bin/clickhouse 10. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:27:00.540787 [ 62433 ] {c9bf8078-1d92-43a7-b26c-ab72bef4af04} TCPHandler: Code: 319. DB::Exception: Unknown status, client must retry. Reason: Code: 999. Coordination::Exception: Fault injection before operation. (KEEPER_EXCEPTION) (version 23.8.16.42.altinitystable (altinity build)). (UNKNOWN_STATUS_OF_INSERT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:1148: DB::ReplicatedMergeTreeSinkImpl::waitForQuorum(std::shared_ptr const&, String const&, String const&, int, unsigned long) const @ 0x000000001e327096 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:1069: DB::ReplicatedMergeTreeSinkImpl::commitPart(std::shared_ptr const&, std::shared_ptr&, String const&, unsigned long, bool) @ 0x000000001e325618 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:423: DB::ReplicatedMergeTreeSinkImpl::finishDelayedChunk(std::shared_ptr const&) @ 0x000000001e31a2d1 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:400: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e324558 in /usr/bin/clickhouse 10. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e6ffbde in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e6516d0 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e64f39e in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e647a20 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 2024.10.22 10:27:30.389462 [ 69177 ] {d51b1373-110b-4587-b479-40e6f24f277b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.18 MiB (attempt to allocate chunk of 2103544 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41052) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:30.442836 [ 69177 ] {d51b1373-110b-4587-b479-40e6f24f277b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.18 MiB (attempt to allocate chunk of 2103544 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:30.766456 [ 62325 ] {34ea73f8-1016-44e4-ae0f-5aca2eedac57} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.18 MiB (attempt to allocate chunk of 1119832 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40994) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchSparseSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016c97680 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:1375: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2dcd in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:30.766621 [ 69183 ] {8cef9c79-5c79-450d-825a-7ee8516e6765} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.12 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41100) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:30.834929 [ 69183 ] {8cef9c79-5c79-450d-825a-7ee8516e6765} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.12 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:30.856995 [ 62325 ] {34ea73f8-1016-44e4-ae0f-5aca2eedac57} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.18 MiB (attempt to allocate chunk of 1119832 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchSparseSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016c97680 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:1375: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2dcd in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:30.895004 [ 69171 ] {820c132e-bff8-43db-9156-e3ad54ebc2ad} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.18 MiB (attempt to allocate chunk of 2109516 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40998) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:31.040264 [ 69171 ] {820c132e-bff8-43db-9156-e3ad54ebc2ad} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.18 MiB (attempt to allocate chunk of 2109516 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:31.092418 [ 69182 ] {9657c4f8-74e0-4849-8c3c-af34dd314e01} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.12 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41084) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:31.142453 [ 69182 ] {9657c4f8-74e0-4849-8c3c-af34dd314e01} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.12 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:35.385292 [ 62433 ] {18d8a1d9-8040-49a6-986c-69e20c5d65c7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.74 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_5_5_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 115 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40980) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:35.508416 [ 62433 ] {18d8a1d9-8040-49a6-986c-69e20c5d65c7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.74 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_5_5_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 115 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:36.673634 [ 69178 ] {68b5a64d-3722-489a-b6ad-4c680263d815} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.95 MiB (attempt to allocate chunk of 1178384 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_8_8_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 105 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41068) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:36.763796 [ 69178 ] {68b5a64d-3722-489a-b6ad-4c680263d815} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.95 MiB (attempt to allocate chunk of 1178384 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_8_8_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 105 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:36.909836 [ 69179 ] {309317c6-5325-407d-9ed6-2b16a6f5a57b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 54.22 MiB (attempt to allocate chunk of 1183314 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_5_5_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 83 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41070) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:37.002927 [ 69180 ] {6e02a3ed-21be-47af-9e26-440768e0b9a0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.55 MiB (attempt to allocate chunk of 1183112 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_6_6_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 97 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41076) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:37.019949 [ 69179 ] {309317c6-5325-407d-9ed6-2b16a6f5a57b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 54.22 MiB (attempt to allocate chunk of 1183314 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_5_5_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 83 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:37.123464 [ 69180 ] {6e02a3ed-21be-47af-9e26-440768e0b9a0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.55 MiB (attempt to allocate chunk of 1183112 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_6_6_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 97 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:37.228150 [ 69173 ] {7544f497-71d8-40b7-a9f0-f3a140fe0957} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.51 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_4_4_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 124 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41018) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:37.313082 [ 69173 ] {7544f497-71d8-40b7-a9f0-f3a140fe0957} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.51 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_4_4_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 124 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:37.402357 [ 69175 ] {74ee85c1-5bb8-4aa3-b7ff-4a5b3d5800b0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 59.28 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41024) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:37.418383 [ 69176 ] {26dd3438-0144-4496-9b0c-a8ece4a38be7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 53.08 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_8_8_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 113 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41048) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:37.441658 [ 69172 ] {a50bbc0b-8ed6-4770-b01a-56615529dde3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 53.30 MiB (attempt to allocate chunk of 1182112 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_7_7_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41008) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:37.477887 [ 69176 ] {26dd3438-0144-4496-9b0c-a8ece4a38be7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 53.08 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_8_8_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 113 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:37.499407 [ 69175 ] {74ee85c1-5bb8-4aa3-b7ff-4a5b3d5800b0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 59.28 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:37.514208 [ 69172 ] {a50bbc0b-8ed6-4770-b01a-56615529dde3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 53.30 MiB (attempt to allocate chunk of 1182112 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_7_7_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:37.575949 [ 69174 ] {59a4c4bb-ee75-4514-a043-ff5fe2dc94ca} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 59.10 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_4_4_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41034) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:37.617501 [ 69181 ] {699bcc22-ad98-4cd8-a702-d0bbb20eabe1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.16 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41080) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:37.656422 [ 69174 ] {59a4c4bb-ee75-4514-a043-ff5fe2dc94ca} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 59.10 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_4_4_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:37.667057 [ 69181 ] {699bcc22-ad98-4cd8-a702-d0bbb20eabe1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.16 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:37.997625 [ 69184 ] {a15d1715-b365-4ec9-8699-bd1237b384cf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.02 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_7_7_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41086) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:38.061650 [ 69184 ] {a15d1715-b365-4ec9-8699-bd1237b384cf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.02 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_7_7_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:40.827138 [ 69182 ] {66e32476-0a42-468c-9b68-acdd64c34d46} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.17 MiB (attempt to allocate chunk of 2103080 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56562) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:40.903365 [ 69182 ] {66e32476-0a42-468c-9b68-acdd64c34d46} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.17 MiB (attempt to allocate chunk of 2103080 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:41.324178 [ 62433 ] {aa71759b-0be9-4951-93aa-0440aad6aacd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.18 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38366) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:41.379049 [ 62433 ] {aa71759b-0be9-4951-93aa-0440aad6aacd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.18 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:41.512671 [ 69178 ] {638d443a-7e6c-4912-8ae0-b68dbd16a48c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.18 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38380) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:41.666687 [ 69178 ] {638d443a-7e6c-4912-8ae0-b68dbd16a48c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.18 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:42.239842 [ 69179 ] {72e605a8-828f-4c81-8e52-306f14174580} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.11 MiB (attempt to allocate chunk of 2103080 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38392) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:42.298956 [ 69179 ] {72e605a8-828f-4c81-8e52-306f14174580} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.11 MiB (attempt to allocate chunk of 2103080 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:42.485934 [ 69176 ] {cfe50a2f-8687-4630-9a4c-cc67fb93c008} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.11 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38420) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:42.519151 [ 62325 ] {eae3291e-5aeb-4290-8d84-f7f859dea956} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.63 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_7_7_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 63 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56540) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:42.554974 [ 69176 ] {cfe50a2f-8687-4630-9a4c-cc67fb93c008} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.11 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:42.716197 [ 69185 ] {174b5146-695c-4521-ab1f-074423ed48dd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 56.67 MiB (attempt to allocate chunk of 8388608 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56514) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:42.848296 [ 62325 ] {eae3291e-5aeb-4290-8d84-f7f859dea956} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.63 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_7_7_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 63 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:42.854848 [ 69185 ] {174b5146-695c-4521-ab1f-074423ed48dd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 56.67 MiB (attempt to allocate chunk of 8388608 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:43.044553 [ 69177 ] {e4e10112-c69b-4510-8032-8e20fd14281a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 54.05 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_6_6_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 118 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56512) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:43.163899 [ 69177 ] {e4e10112-c69b-4510-8032-8e20fd14281a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 54.05 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_6_6_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 118 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:44.592625 [ 69183 ] {c4cbeb6b-4d0e-4ed4-a537-485e4316ce63} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.14 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_7_7_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56524) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:44.684655 [ 69183 ] {c4cbeb6b-4d0e-4ed4-a537-485e4316ce63} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.14 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_7_7_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:45.851242 [ 69171 ] {8e7bf671-8c68-48dc-b452-f9a81cac2070} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.02 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_6_6_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 118 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56556) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:45.935759 [ 69171 ] {8e7bf671-8c68-48dc-b452-f9a81cac2070} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.02 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_6_6_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 118 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:47.938527 [ 69182 ] {6a82b61b-a4bc-4cd3-ab1c-425ddbfa22ba} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.17 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38482) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:48.008065 [ 69182 ] {6a82b61b-a4bc-4cd3-ab1c-425ddbfa22ba} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.17 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:48.990967 [ 69179 ] {6fb47f18-354f-4b03-bfe5-e637d3345b8a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.11 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38512) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:49.200677 [ 69179 ] {6fb47f18-354f-4b03-bfe5-e637d3345b8a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.11 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:49.433537 [ 69186 ] {1880fc1a-11af-40b0-bc9f-d5670f3517ef} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.19 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38536) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:49.508723 [ 69186 ] {1880fc1a-11af-40b0-bc9f-d5670f3517ef} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.19 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:50.935037 [ 69183 ] {2eafcefe-5d5a-4461-b9cb-5eafb5e61427} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.11 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38560) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:50.966283 [ 69174 ] {3f61163d-5530-4e3a-be5f-c4dc4403a499} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.97 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_2_2_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 63 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38448) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:50.983039 [ 69183 ] {2eafcefe-5d5a-4461-b9cb-5eafb5e61427} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.11 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:51.049671 [ 69174 ] {3f61163d-5530-4e3a-be5f-c4dc4403a499} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.97 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_2_2_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 63 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:51.231733 [ 69181 ] {58065286-a8f5-4357-b1b5-82d4f4ba0a77} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 53.06 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38456) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:27:51.286154 [ 69181 ] {58065286-a8f5-4357-b1b5-82d4f4ba0a77} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 53.06 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:27:51.755340 [ 69180 ] {d0c97e0d-0bf2-4110-bb7c-730e043ffb61} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.29 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_7_7_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 71 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38398) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:51.928768 [ 69172 ] {0eac2730-3f2d-4a36-817a-6732eeb8f6a7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.81 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38436) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:51.948265 [ 69175 ] {5fccc3e9-d8da-40ec-9902-502d209eaff0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.66 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_8_8_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 121 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38424) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:52.010316 [ 69180 ] {d0c97e0d-0bf2-4110-bb7c-730e043ffb61} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.29 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_7_7_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 71 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:52.022843 [ 69173 ] {a47cae75-ebfc-4e97-8c34-b171ee9a3d4b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.84 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_6_6_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 126 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38410) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:52.096601 [ 69173 ] {a47cae75-ebfc-4e97-8c34-b171ee9a3d4b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.84 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_6_6_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 126 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:52.111136 [ 69175 ] {5fccc3e9-d8da-40ec-9902-502d209eaff0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.66 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_8_8_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 121 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:52.114183 [ 69172 ] {0eac2730-3f2d-4a36-817a-6732eeb8f6a7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.81 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:53.077468 [ 69171 ] {d00ee4c5-41d0-4621-9046-ad76457863e8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.18 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47002) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:53.151478 [ 69171 ] {d00ee4c5-41d0-4621-9046-ad76457863e8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.18 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:54.066839 [ 69179 ] {cbb76d52-108e-47ec-ade4-eb26a8d34894} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.11 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47018) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:54.118205 [ 69179 ] {cbb76d52-108e-47ec-ade4-eb26a8d34894} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.11 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:54.592375 [ 69184 ] {c931965f-9600-4b80-ba6d-ba0789afe801} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.15 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_5_5_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 115 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38470) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:54.685512 [ 69184 ] {c931965f-9600-4b80-ba6d-ba0789afe801} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.15 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_5_5_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 115 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:55.174651 [ 69185 ] {8aa1168e-886f-4a9c-ba12-44fe1c42a662} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.11 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47034) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:55.237713 [ 69185 ] {8aa1168e-886f-4a9c-ba12-44fe1c42a662} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.11 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:55.250146 [ 69183 ] {72ff6466-600b-411c-a5da-3ec281652919} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.18 MiB (attempt to allocate chunk of 2109516 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47046) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:55.295400 [ 69183 ] {72ff6466-600b-411c-a5da-3ec281652919} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.18 MiB (attempt to allocate chunk of 2109516 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:55.381299 [ 62433 ] {a8d6dffb-2dd3-4546-8648-1ea09b78a2e1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.34 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38494) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:27:55.478985 [ 62433 ] {a8d6dffb-2dd3-4546-8648-1ea09b78a2e1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.34 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:27:55.647762 [ 69174 ] {ae06c752-694f-4e7a-adef-65f0d758e45c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47062) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:55.674990 [ 62325 ] {5b0ac8df-3b5f-4652-9ab5-ba7907bddee0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.24 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_7_7_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 124 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38532) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:55.782125 [ 62325 ] {5b0ac8df-3b5f-4652-9ab5-ba7907bddee0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.24 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_7_7_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 124 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:55.812766 [ 69186 ] {851b69f1-2e0c-43cb-afad-9fe515a40e19} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47104) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:55.813115 [ 69174 ] {ae06c752-694f-4e7a-adef-65f0d758e45c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:55.864603 [ 69186 ] {851b69f1-2e0c-43cb-afad-9fe515a40e19} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:55.998158 [ 69178 ] {30c0876b-477c-49cb-8fe3-507d32ef085b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 56.16 MiB (attempt to allocate chunk of 8388608 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38504) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:56.118254 [ 69178 ] {30c0876b-477c-49cb-8fe3-507d32ef085b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 56.16 MiB (attempt to allocate chunk of 8388608 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:56.335264 [ 69173 ] {7bec7885-80e5-4bc7-b7ae-692e6d488800} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47096) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:56.379545 [ 69173 ] {7bec7885-80e5-4bc7-b7ae-692e6d488800} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:56.402669 [ 69177 ] {ca7ef6fc-4420-4169-8adb-d279b61d162e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 55.51 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_7_7_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 63 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38548) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:56.516881 [ 69176 ] {50bd824f-789d-4908-aca8-c56702bb21e3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 58.25 MiB (attempt to allocate chunk of 1182112 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_7_7_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 71 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38518) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:56.574306 [ 69177 ] {ca7ef6fc-4420-4169-8adb-d279b61d162e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 55.51 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_7_7_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 63 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:56.622980 [ 69176 ] {50bd824f-789d-4908-aca8-c56702bb21e3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 58.25 MiB (attempt to allocate chunk of 1182112 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_7_7_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 71 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:27:56.650745 [ 69180 ] {57cbc8a6-072d-43f9-bc7d-28a40bf21e47} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47084) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:56.708707 [ 69180 ] {57cbc8a6-072d-43f9-bc7d-28a40bf21e47} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:56.838210 [ 69181 ] {ac775d8c-d255-45b7-8ee2-0a82323ab493} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47072) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:56.922802 [ 69181 ] {ac775d8c-d255-45b7-8ee2-0a82323ab493} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:59.319766 [ 69172 ] {fb66b85c-c445-4688-b18c-2e0b382a4194} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47120) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:27:59.514622 [ 69172 ] {fb66b85c-c445-4688-b18c-2e0b382a4194} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:00.181898 [ 69171 ] {d3038307-5c4b-4e9b-9b35-37deb8e2f61a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47134) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:00.252703 [ 69171 ] {d3038307-5c4b-4e9b-9b35-37deb8e2f61a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:00.396021 [ 69175 ] {bf289781-0d26-42cf-88c7-1e63d1740a38} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098624 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47148) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:00.664082 [ 69175 ] {bf289781-0d26-42cf-88c7-1e63d1740a38} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098624 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:00.845653 [ 69184 ] {40033974-ebf9-4c06-a4ad-8cd37f67de76} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47158) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:00.869714 [ 69179 ] {36265467-4dfb-467f-b759-7872be8676d3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47154) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:00.899709 [ 69183 ] {2cf5c31d-519c-4180-ba9e-1d4e763dcdc0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47166) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:00.922732 [ 69179 ] {36265467-4dfb-467f-b759-7872be8676d3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:00.960368 [ 69184 ] {40033974-ebf9-4c06-a4ad-8cd37f67de76} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:00.998254 [ 69183 ] {2cf5c31d-519c-4180-ba9e-1d4e763dcdc0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:01.028222 [ 62325 ] {e3e03b7e-bc95-454c-b959-a35359ae50a9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47200) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:01.245698 [ 62325 ] {e3e03b7e-bc95-454c-b959-a35359ae50a9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:01.427833 [ 69185 ] {83fbe7fd-18e3-430c-bc1f-5593e50ddd79} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47186) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:01.469846 [ 69185 ] {83fbe7fd-18e3-430c-bc1f-5593e50ddd79} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:02.623912 [ 69174 ] {226d6ef2-6e31-4c6d-a582-aebcd8895ea8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47214) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:28:02.701468 [ 69174 ] {226d6ef2-6e31-4c6d-a582-aebcd8895ea8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:28:02.782277 [ 62433 ] {353e7693-7437-49f0-8e04-48f38d8a1003} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47174) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:28:02.893774 [ 62433 ] {353e7693-7437-49f0-8e04-48f38d8a1003} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:28:03.017788 [ 69182 ] {7de1b423-d848-47a1-ac7c-f06257a71c17} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.09 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47004) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:28:03.102267 [ 69180 ] {c2a9f9f0-5df0-4912-8ef8-acca668fd6f3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59056) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:03.129013 [ 69182 ] {7de1b423-d848-47a1-ac7c-f06257a71c17} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.09 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:28:03.165701 [ 69178 ] {bfed7b7b-d064-48b4-a128-8a7e3dc91cd9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 1181928 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 55 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47218) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:28:03.221741 [ 69180 ] {c2a9f9f0-5df0-4912-8ef8-acca668fd6f3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:03.224233 [ 69178 ] {bfed7b7b-d064-48b4-a128-8a7e3dc91cd9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 1181928 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 55 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:28:03.315998 [ 69176 ] {0b412d35-8e93-4525-9a95-d64e7bf746c6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59040) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:03.379443 [ 69176 ] {0b412d35-8e93-4525-9a95-d64e7bf746c6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:03.497696 [ 69173 ] {ce55e265-70b5-46eb-8a5a-45ae2cdce1e4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59016) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:03.815619 [ 69173 ] {ce55e265-70b5-46eb-8a5a-45ae2cdce1e4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:06.354606 [ 69181 ] {27cccb07-5a4f-4ad2-a25b-4d0addedfebd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59068) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:06.449111 [ 69181 ] {27cccb07-5a4f-4ad2-a25b-4d0addedfebd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:06.840767 [ 69186 ] {5f8b3944-b6ce-4d07-a1a1-071087902c5d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59076) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:07.051827 [ 69186 ] {5f8b3944-b6ce-4d07-a1a1-071087902c5d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:07.398014 [ 69172 ] {be170c97-a7ce-4411-a68e-d549a8211404} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59106) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:07.471667 [ 69172 ] {be170c97-a7ce-4411-a68e-d549a8211404} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:07.666480 [ 69175 ] {4f4bf47f-380c-417e-ac4f-76033cc27755} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59116) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:07.672633 [ 69171 ] {3959af7f-2123-4f47-86d9-56a9feb087e2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59090) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:07.729417 [ 69175 ] {4f4bf47f-380c-417e-ac4f-76033cc27755} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:07.752405 [ 69179 ] {3633baa4-75a2-413a-a959-80e0974f0f4d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59126) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:07.764196 [ 69171 ] {3959af7f-2123-4f47-86d9-56a9feb087e2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:07.815801 [ 69179 ] {3633baa4-75a2-413a-a959-80e0974f0f4d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:08.208668 [ 69183 ] {b2faf8a7-17c3-4cba-b965-14af8679a847} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59132) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:08.295677 [ 69183 ] {b2faf8a7-17c3-4cba-b965-14af8679a847} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:08.339309 [ 62325 ] {234a7099-f769-43b7-8742-468b3abeee87} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59148) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:08.452252 [ 62325 ] {234a7099-f769-43b7-8742-468b3abeee87} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:09.645249 [ 62433 ] {d36f53ff-b6c1-44c9-afa6-f24876954bfd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59172) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:09.678188 [ 69174 ] {2b298381-6a94-4dc7-be03-001cc1b0715a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59170) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:09.852725 [ 69178 ] {09c2d278-55c4-4c1c-89b0-0310eb6a6415} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59194) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:09.902535 [ 69174 ] {2b298381-6a94-4dc7-be03-001cc1b0715a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:09.931519 [ 69178 ] {09c2d278-55c4-4c1c-89b0-0310eb6a6415} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:10.083079 [ 62433 ] {d36f53ff-b6c1-44c9-afa6-f24876954bfd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:10.298924 [ 69182 ] {03dc2a1d-3d43-4d24-8f57-ec614fad8732} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_8_8_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 73 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59176) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:28:10.662485 [ 69182 ] {03dc2a1d-3d43-4d24-8f57-ec614fad8732} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_8_8_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 73 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:28:10.779738 [ 69176 ] {d2bd6af9-a7b0-4299-a359-d93f7cc3578a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59204) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:28:11.056916 [ 69176 ] {d2bd6af9-a7b0-4299-a359-d93f7cc3578a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:28:12.539722 [ 69173 ] {e3d9b7e8-7fa2-4740-a67b-901335cd5ca4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59218) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:12.608168 [ 69173 ] {e3d9b7e8-7fa2-4740-a67b-901335cd5ca4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:13.266279 [ 69186 ] {09f08428-2284-49c3-a061-977907a1b063} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60092) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:13.269941 [ 69181 ] {a7a81f4d-a3d6-42e7-b1f4-2284084ac8d7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60086) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:13.315637 [ 69186 ] {09f08428-2284-49c3-a061-977907a1b063} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:13.316449 [ 69181 ] {a7a81f4d-a3d6-42e7-b1f4-2284084ac8d7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:13.383899 [ 69177 ] {f0a53ed8-4b93-4db1-96c3-aae092e93fa8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.75 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_10_10_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 63 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59026) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:28:13.464287 [ 69177 ] {f0a53ed8-4b93-4db1-96c3-aae092e93fa8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.75 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_10_10_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 63 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:28:13.678431 [ 69172 ] {af0aa5b4-817a-4944-8b75-f2de74b23ddd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60096) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:13.763035 [ 69171 ] {ccf1eb45-df3d-4b1a-be0d-cee005a37251} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60110) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:13.882907 [ 69171 ] {ccf1eb45-df3d-4b1a-be0d-cee005a37251} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:13.888603 [ 69172 ] {af0aa5b4-817a-4944-8b75-f2de74b23ddd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:14.178814 [ 69180 ] {20ca69cf-fa11-4dbe-a026-25672c2c4f77} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60102) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:14.177371 [ 69179 ] {147d163f-95e8-421e-9ca4-4110680bf7c0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60140) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:14.262341 [ 69180 ] {20ca69cf-fa11-4dbe-a026-25672c2c4f77} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:14.333301 [ 69179 ] {147d163f-95e8-421e-9ca4-4110680bf7c0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:14.982576 [ 69175 ] {bddba9ea-d8cc-4d86-a19c-78af5ff1a40b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60124) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:15.039476 [ 69175 ] {bddba9ea-d8cc-4d86-a19c-78af5ff1a40b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:16.171735 [ 69174 ] {1c952e4b-00fb-400d-9e4d-bdb4df2a8d37} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60168) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:16.253849 [ 69174 ] {1c952e4b-00fb-400d-9e4d-bdb4df2a8d37} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:16.354422 [ 62433 ] {c12d2549-b9dc-4be6-9d6a-65f9625ac257} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60172) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:16.361389 [ 62325 ] {6bd3dc67-4420-4fbf-adcd-7489187032a3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60150) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:16.422981 [ 62433 ] {c12d2549-b9dc-4be6-9d6a-65f9625ac257} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:16.492169 [ 62325 ] {6bd3dc67-4420-4fbf-adcd-7489187032a3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:16.587575 [ 69183 ] {8e6400ae-8dc6-4dd0-8def-67173792628a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60152) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:16.672530 [ 69183 ] {8e6400ae-8dc6-4dd0-8def-67173792628a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:17.278631 [ 69178 ] {5a64b883-968c-478b-9f10-0a2a31d784af} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60178) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:17.518564 [ 69178 ] {5a64b883-968c-478b-9f10-0a2a31d784af} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:18.146433 [ 69176 ] {21d26ef2-9467-4234-a1d8-50f6bd8fbbaa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60180) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:18.199958 [ 69176 ] {21d26ef2-9467-4234-a1d8-50f6bd8fbbaa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:18.563043 [ 69184 ] {e0d844f5-74e6-48cb-9928-22f503578643} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 53.98 MiB (attempt to allocate chunk of 1181592 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59162) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:28:18.646428 [ 69182 ] {c6b737ec-58d7-4a4b-8508-5cb404cfdffa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60206) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:18.656223 [ 69184 ] {e0d844f5-74e6-48cb-9928-22f503578643} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 53.98 MiB (attempt to allocate chunk of 1181592 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:28:18.787473 [ 69182 ] {c6b737ec-58d7-4a4b-8508-5cb404cfdffa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:18.873318 [ 69181 ] {bcd09661-079c-4cf0-ae3f-3db938224f73} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60212) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:18.957223 [ 69181 ] {bcd09661-079c-4cf0-ae3f-3db938224f73} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:18.990080 [ 69185 ] {4d71d7bc-9180-45f5-b4cb-61db635e4a6c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.75 MiB (attempt to allocate chunk of 1183112 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59188) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:28:19.019119 [ 69173 ] {7763da78-0b45-4d80-b0a2-3153a5bb7f91} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60190) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:19.044818 [ 69185 ] {4d71d7bc-9180-45f5-b4cb-61db635e4a6c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.75 MiB (attempt to allocate chunk of 1183112 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:28:19.202461 [ 69173 ] {7763da78-0b45-4d80-b0a2-3153a5bb7f91} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:20.158237 [ 69172 ] {8fef30d3-fd74-4986-888b-b2614c082a68} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60252) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:20.245988 [ 69186 ] {5be31f33-5ac2-47d6-8f64-eda66439a587} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60222) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:20.257315 [ 69172 ] {8fef30d3-fd74-4986-888b-b2614c082a68} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:20.288819 [ 69177 ] {77c006d2-0e8e-4910-a198-2ac3a5cba564} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60236) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:20.295562 [ 69186 ] {5be31f33-5ac2-47d6-8f64-eda66439a587} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:20.323779 [ 69171 ] {f3b533e8-19b6-4769-91fa-98fc461fedd4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60248) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:20.416679 [ 69171 ] {f3b533e8-19b6-4769-91fa-98fc461fedd4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:20.417858 [ 69177 ] {77c006d2-0e8e-4910-a198-2ac3a5cba564} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:21.471682 [ 69179 ] {d00ef15d-662f-452a-9dda-a6bf13fc0544} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60254) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:21.749726 [ 69179 ] {d00ef15d-662f-452a-9dda-a6bf13fc0544} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:22.986750 [ 69174 ] {dbe1e1df-2d17-490a-a006-422c58a84cbe} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60266) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:22.990602 [ 62325 ] {33bebafe-c260-4287-8537-7a67ff2ac3a6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43762) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:23.022821 [ 62433 ] {c714d282-abe9-44c9-a4e0-47b4498b62bf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60272) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:23.078067 [ 69175 ] {17a649e6-8ee3-4766-92a5-13a0c7fe48d5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60256) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:23.082359 [ 62325 ] {33bebafe-c260-4287-8537-7a67ff2ac3a6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:23.102227 [ 62433 ] {c714d282-abe9-44c9-a4e0-47b4498b62bf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:23.173245 [ 69175 ] {17a649e6-8ee3-4766-92a5-13a0c7fe48d5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:23.361418 [ 69174 ] {dbe1e1df-2d17-490a-a006-422c58a84cbe} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:24.738612 [ 69180 ] {fb30b9dd-252e-456d-9f87-dbaa2f7dc588} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43772) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:24.843233 [ 69178 ] {00bb7c2b-1f85-46bd-afd2-8a3eabc7af9d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43786) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:24.911783 [ 69180 ] {fb30b9dd-252e-456d-9f87-dbaa2f7dc588} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:24.959525 [ 69178 ] {00bb7c2b-1f85-46bd-afd2-8a3eabc7af9d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:25.242284 [ 69176 ] {290f66e3-3481-4797-89ab-c5639f7056b1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43794) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:25.367822 [ 69176 ] {290f66e3-3481-4797-89ab-c5639f7056b1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:25.680850 [ 69183 ] {6306b7f6-ca46-458e-b330-3e8f016adb07} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43808) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:25.789157 [ 69181 ] {fb926c0c-8809-4460-8312-92cc6f264701} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43828) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:25.804858 [ 69183 ] {6306b7f6-ca46-458e-b330-3e8f016adb07} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:25.861006 [ 69181 ] {fb926c0c-8809-4460-8312-92cc6f264701} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:25.990009 [ 69182 ] {47a9fac7-efcb-4696-b62b-ade3410c8295} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43822) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:26.075741 [ 69182 ] {47a9fac7-efcb-4696-b62b-ade3410c8295} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:26.360386 [ 69184 ] {a20505cc-e41f-40f0-915d-9e6c1b05b21f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43842) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:26.435456 [ 69184 ] {a20505cc-e41f-40f0-915d-9e6c1b05b21f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:26.751716 [ 69186 ] {c6fec5a6-6392-4c0e-a73e-f9f769932ef0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43886) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:28:26.852819 [ 69186 ] {c6fec5a6-6392-4c0e-a73e-f9f769932ef0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:28:27.315697 [ 69185 ] {65941cd5-1a1f-4772-9ab9-56eb83bd823c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43870) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:27.392827 [ 69172 ] {62f59597-2d0c-42e4-aa26-98d19a7721e1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103064 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43854) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:27.519108 [ 69172 ] {62f59597-2d0c-42e4-aa26-98d19a7721e1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103064 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:27.582736 [ 69173 ] {05c88e43-181f-448c-9935-eaad5e9ce46a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43848) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:27.706829 [ 69173 ] {05c88e43-181f-448c-9935-eaad5e9ce46a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:27.904578 [ 69185 ] {65941cd5-1a1f-4772-9ab9-56eb83bd823c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:28.666173 [ 69177 ] {a16e3b9b-a1b9-4090-acec-cbfcdf28a51b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43902) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:28.753281 [ 69177 ] {a16e3b9b-a1b9-4090-acec-cbfcdf28a51b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:29.566475 [ 69171 ] {23da1341-a000-41eb-93f9-102dda1bd9fa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43910) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:29.647647 [ 69171 ] {23da1341-a000-41eb-93f9-102dda1bd9fa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:30.136304 [ 62433 ] {8c7a28e8-d6ef-4617-a361-96c1cf1ada14} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43926) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:30.144195 [ 69179 ] {89db91a4-0760-4456-accb-a45b805f89e3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43920) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:30.231619 [ 62433 ] {8c7a28e8-d6ef-4617-a361-96c1cf1ada14} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:30.253528 [ 62325 ] {42bc7530-771b-4857-a8be-1ecbc8c36fe1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43936) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:30.301491 [ 69179 ] {89db91a4-0760-4456-accb-a45b805f89e3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:30.328990 [ 62325 ] {42bc7530-771b-4857-a8be-1ecbc8c36fe1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:31.188261 [ 69175 ] {f9305f4d-dd9b-4998-9658-f49ac60b40ec} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43960) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:31.317493 [ 69175 ] {f9305f4d-dd9b-4998-9658-f49ac60b40ec} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:32.046587 [ 69174 ] {15aa7574-4652-4aec-93fc-b2952b240f6b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43950) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:32.046716 [ 69178 ] {63cc803f-d7a9-43b5-a5d7-cc18bd78f231} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43964) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:32.142519 [ 69178 ] {63cc803f-d7a9-43b5-a5d7-cc18bd78f231} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:32.379362 [ 69174 ] {15aa7574-4652-4aec-93fc-b2952b240f6b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:32.553961 [ 69180 ] {546d3215-f181-4ba8-bdf3-c371e11e929b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43980) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:32.654417 [ 69176 ] {adfb04c3-5bf3-4ef4-858a-571efb345e10} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43972) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:32.660951 [ 69180 ] {546d3215-f181-4ba8-bdf3-c371e11e929b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:32.726996 [ 69176 ] {adfb04c3-5bf3-4ef4-858a-571efb345e10} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:32.914024 [ 69181 ] {f8ea726f-a230-4044-917c-3bd84020dc19} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43982) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:33.009968 [ 69181 ] {f8ea726f-a230-4044-917c-3bd84020dc19} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:33.274727 [ 69182 ] {c9ca23a7-b39e-46b3-9a50-17b544d33b82} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:43990) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:33.338217 [ 69182 ] {c9ca23a7-b39e-46b3-9a50-17b544d33b82} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:33.888584 [ 69183 ] {c0abc19b-8fd2-4ec2-b047-3952debea20b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45332) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:34.146452 [ 69184 ] {6c230b78-0a39-4b8b-ae47-795fe1f2905e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098624 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45336) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:34.149322 [ 69183 ] {c0abc19b-8fd2-4ec2-b047-3952debea20b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:34.193343 [ 69184 ] {6c230b78-0a39-4b8b-ae47-795fe1f2905e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098624 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:34.510733 [ 69186 ] {18e2e1d5-0cc3-4937-883d-d756b03f4d1d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45344) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:34.655285 [ 69186 ] {18e2e1d5-0cc3-4937-883d-d756b03f4d1d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:34.704069 [ 69172 ] {55d701e0-6cc5-481e-ad71-ef15b29c9e2c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45352) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:35.060057 [ 69172 ] {55d701e0-6cc5-481e-ad71-ef15b29c9e2c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:35.113154 [ 69173 ] {f6ded05f-3264-4ca2-ae63-63474ec01137} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45358) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:35.314632 [ 69173 ] {f6ded05f-3264-4ca2-ae63-63474ec01137} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:35.918888 [ 69177 ] {c68b0c50-5c39-4a1c-8dc6-ee09f3cbbeb9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45372) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:36.059064 [ 69177 ] {c68b0c50-5c39-4a1c-8dc6-ee09f3cbbeb9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:36.573882 [ 69171 ] {ace3be35-f4b8-4fcd-80a7-01c06e38cde3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45386) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:36.759247 [ 69171 ] {ace3be35-f4b8-4fcd-80a7-01c06e38cde3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:36.764915 [ 62433 ] {3a72c632-0e2f-4d1d-96fe-4f42a7f0cbbe} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45390) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:36.870160 [ 62433 ] {3a72c632-0e2f-4d1d-96fe-4f42a7f0cbbe} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:37.168878 [ 69179 ] {dabe095e-5bde-4ea3-8c43-f23b4b79eff9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45402) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:37.254898 [ 69179 ] {dabe095e-5bde-4ea3-8c43-f23b4b79eff9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:37.922693 [ 62325 ] {96bb8a54-176b-429c-a8fe-a4d431d0403b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45404) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:38.006966 [ 62325 ] {96bb8a54-176b-429c-a8fe-a4d431d0403b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:39.238728 [ 69175 ] {e0c4dd58-0a62-4d79-9ce6-9b15e8524626} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.89 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_1_6_1/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 280 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45412) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:28:39.366018 [ 69174 ] {c7eb030d-a520-4f3a-8937-0ee9a923bef6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45440) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:39.476533 [ 69185 ] {f70ead0b-0fa8-4111-874a-bf6e2ca41a13} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45446) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:39.546342 [ 69175 ] {e0c4dd58-0a62-4d79-9ce6-9b15e8524626} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.89 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_1_6_1/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 280 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:28:39.653005 [ 69178 ] {72dc96cb-6922-4c85-9e00-3592fe4993b6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45428) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:39.660328 [ 69176 ] {c8e54991-d010-4fcd-91f8-00b5383651a0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45452) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:39.681979 [ 69174 ] {c7eb030d-a520-4f3a-8937-0ee9a923bef6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:39.712940 [ 69185 ] {f70ead0b-0fa8-4111-874a-bf6e2ca41a13} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:39.721714 [ 69176 ] {c8e54991-d010-4fcd-91f8-00b5383651a0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:39.740180 [ 69178 ] {72dc96cb-6922-4c85-9e00-3592fe4993b6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:40.165620 [ 69181 ] {ebd710d8-7a1a-4961-9274-50501ca14e66} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.52 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45466) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:40.532621 [ 69181 ] {ebd710d8-7a1a-4961-9274-50501ca14e66} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.52 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:41.251382 [ 69180 ] {6d78fd36-d097-4435-8087-17f7ac4f149b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45480) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:41.340765 [ 69180 ] {6d78fd36-d097-4435-8087-17f7ac4f149b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:41.376915 [ 69183 ] {b5b91523-6ea6-444b-b2f4-9454736bd43b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45492) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:41.499287 [ 69183 ] {b5b91523-6ea6-444b-b2f4-9454736bd43b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:41.692121 [ 69172 ] {ca97a6ce-125b-452f-9f2e-cc1e08316ff4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45524) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:41.719356 [ 69184 ] {00ba8ee0-22dd-4f1b-b88f-b2b1490ce160} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45498) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:41.764386 [ 69172 ] {ca97a6ce-125b-452f-9f2e-cc1e08316ff4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:41.811705 [ 69184 ] {00ba8ee0-22dd-4f1b-b88f-b2b1490ce160} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:42.275354 [ 69186 ] {0218224e-6550-40c8-a4f4-430931a1a316} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45512) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:42.312865 [ 69186 ] {0218224e-6550-40c8-a4f4-430931a1a316} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:43.816962 [ 69177 ] {36016749-51f8-4a69-a351-8d934b084181} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48542) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:43.976921 [ 69177 ] {36016749-51f8-4a69-a351-8d934b084181} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:44.134821 [ 69171 ] {6f116e93-066a-44fb-818c-208f1f134326} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48550) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:44.312797 [ 69171 ] {6f116e93-066a-44fb-818c-208f1f134326} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:44.322110 [ 69179 ] {8cb4bfe2-b93d-4884-8d79-52ac2e7d5d9b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48556) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:44.516275 [ 69179 ] {8cb4bfe2-b93d-4884-8d79-52ac2e7d5d9b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:45.000369 [ 62433 ] {a87a816c-5419-4ddb-86a9-36b5e6aa17b7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48552) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:45.072957 [ 62433 ] {a87a816c-5419-4ddb-86a9-36b5e6aa17b7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:46.506039 [ 69185 ] {0f250b80-bd23-492d-82e8-1ee93aaf895e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48610) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:46.553127 [ 62325 ] {7a9a3678-e0c7-4d62-8b95-b37b06b00a54} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48562) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:46.573442 [ 69185 ] {0f250b80-bd23-492d-82e8-1ee93aaf895e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:46.633246 [ 69182 ] {44db38f7-8060-4a52-9114-8811cb86bb01} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48596) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:46.696424 [ 69182 ] {44db38f7-8060-4a52-9114-8811cb86bb01} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:46.752460 [ 62325 ] {7a9a3678-e0c7-4d62-8b95-b37b06b00a54} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:46.772503 [ 69175 ] {ca017328-6b76-4142-8fbb-94098039558e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48570) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:46.874367 [ 69174 ] {c1ec0001-8e92-4a1a-911c-099586dea068} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48582) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:46.894562 [ 69175 ] {ca017328-6b76-4142-8fbb-94098039558e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:46.929333 [ 69174 ] {c1ec0001-8e92-4a1a-911c-099586dea068} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:47.205126 [ 69176 ] {4a70a8f5-b6cb-4805-bc2a-b5e138d161ff} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48626) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:47.298678 [ 69176 ] {4a70a8f5-b6cb-4805-bc2a-b5e138d161ff} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:48.145633 [ 69181 ] {a20f17fb-4a41-421d-9067-5febeb69f29d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102888 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48636) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:48.209714 [ 69183 ] {87a0fbc2-fad9-447f-b3a3-28c50d53af1d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48654) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:48.226502 [ 69181 ] {a20f17fb-4a41-421d-9067-5febeb69f29d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102888 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:48.378828 [ 69183 ] {87a0fbc2-fad9-447f-b3a3-28c50d53af1d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:48.594254 [ 69178 ] {e9b2de10-15a1-498b-ae09-4fd103a69082} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48638) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:48.655329 [ 69172 ] {032e9483-14b1-462e-a953-aa5f28618f86} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48658) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:48.664109 [ 69178 ] {e9b2de10-15a1-498b-ae09-4fd103a69082} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:48.779653 [ 69184 ] {d80e4d4a-2361-4932-addd-712e20629e80} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48670) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:48.848838 [ 69172 ] {032e9483-14b1-462e-a953-aa5f28618f86} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:49.099614 [ 69184 ] {d80e4d4a-2361-4932-addd-712e20629e80} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:50.805121 [ 69177 ] {2f45f4ff-4e6f-458f-be4f-8f18a5e7e0aa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48684) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:50.883559 [ 69177 ] {2f45f4ff-4e6f-458f-be4f-8f18a5e7e0aa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:51.017814 [ 69186 ] {11283d73-7c4a-4d56-9f08-65c2ccb90b28} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48674) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:51.119498 [ 69171 ] {715496b8-ed34-4753-abff-8db81fcf99cf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1579096 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48688) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:51.158776 [ 69186 ] {11283d73-7c4a-4d56-9f08-65c2ccb90b28} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:51.181488 [ 69171 ] {715496b8-ed34-4753-abff-8db81fcf99cf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1579096 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:51.223318 [ 69179 ] {0b3ffcc1-d3c1-4d66-b097-d8132ae23370} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48696) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:51.539388 [ 69179 ] {0b3ffcc1-d3c1-4d66-b097-d8132ae23370} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:52.746133 [ 62433 ] {1dc87aa8-1f3f-4614-baf0-0a25469446df} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37576) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:52.922646 [ 69182 ] {dfe0ea35-c454-4c9f-8bb3-c8c001d0453d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37594) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:52.956366 [ 62433 ] {1dc87aa8-1f3f-4614-baf0-0a25469446df} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:53.052540 [ 69180 ] {619a864a-ed7b-4ce1-92f7-9a33a16b5835} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103244 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37586) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:53.128965 [ 69180 ] {619a864a-ed7b-4ce1-92f7-9a33a16b5835} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103244 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:53.110883 [ 69175 ] {669a9439-66df-44cd-aac5-8eb2547317a3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37618) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:53.174278 [ 69175 ] {669a9439-66df-44cd-aac5-8eb2547317a3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:53.215329 [ 69174 ] {57dadf59-6b59-4b21-98e3-f7952b1d8b9b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37634) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:53.280331 [ 62325 ] {29be3ba3-0cac-4ba2-9f38-686c5396793b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37606) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:53.350746 [ 62325 ] {29be3ba3-0cac-4ba2-9f38-686c5396793b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:53.363012 [ 69182 ] {dfe0ea35-c454-4c9f-8bb3-c8c001d0453d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:53.401525 [ 69174 ] {57dadf59-6b59-4b21-98e3-f7952b1d8b9b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:53.677492 [ 69173 ] {981d0d09-a29e-41cc-8d0a-64f4d720d455} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.75 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 87 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45526) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:28:53.743953 [ 69173 ] {981d0d09-a29e-41cc-8d0a-64f4d720d455} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.75 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 87 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:28:55.341280 [ 69181 ] {28ca8d12-31bf-4d18-8a17-39730162fe56} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37642) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:55.437517 [ 69181 ] {28ca8d12-31bf-4d18-8a17-39730162fe56} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:55.504302 [ 69176 ] {0fbc4909-7327-4da9-a7ca-70a72a538027} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37640) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:55.583735 [ 69176 ] {0fbc4909-7327-4da9-a7ca-70a72a538027} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:56.087025 [ 69172 ] {0f382b21-bc92-478d-9a9a-d13c156e61ae} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.00 MiB (attempt to allocate chunk of 1177824 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_8_8_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 31 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37672) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:28:56.197258 [ 69172 ] {0f382b21-bc92-478d-9a9a-d13c156e61ae} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.00 MiB (attempt to allocate chunk of 1177824 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_8_8_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 31 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:28:56.225108 [ 69183 ] {f9858e08-0a69-4507-a857-8b1a5f392e2a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37654) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:56.408104 [ 69183 ] {f9858e08-0a69-4507-a857-8b1a5f392e2a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:57.596577 [ 69184 ] {05a76b57-26ea-45e6-92aa-479c7acee688} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37684) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:57.667575 [ 69184 ] {05a76b57-26ea-45e6-92aa-479c7acee688} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:57.716813 [ 69185 ] {0ff2ec41-d242-4ef4-a4fb-b1fa5709bb00} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37696) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:58.177968 [ 69185 ] {0ff2ec41-d242-4ef4-a4fb-b1fa5709bb00} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:58.268639 [ 69177 ] {d2f576c8-e4c1-48d8-922d-27c1b5a0c857} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37690) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:58.345313 [ 69177 ] {d2f576c8-e4c1-48d8-922d-27c1b5a0c857} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:58.906767 [ 69186 ] {052942ec-3c7c-480f-a33a-228579c90da0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37710) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:58.985896 [ 69186 ] {052942ec-3c7c-480f-a33a-228579c90da0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:59.926747 [ 69171 ] {e6ece686-b867-4c9c-910c-e68becf69969} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37718) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:28:59.997436 [ 69171 ] {e6ece686-b867-4c9c-910c-e68becf69969} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:00.322448 [ 69179 ] {23c909bd-16e2-424c-a2a4-307a15580007} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37722) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:00.376216 [ 62433 ] {40e4eef2-22f2-4ffa-ae61-9aab67581cd2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37736) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:00.396039 [ 69179 ] {23c909bd-16e2-424c-a2a4-307a15580007} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:00.429057 [ 69174 ] {8bed0929-3960-48af-b0d1-40d71f4a9919} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37770) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:00.469911 [ 62433 ] {40e4eef2-22f2-4ffa-ae61-9aab67581cd2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:00.498422 [ 69174 ] {8bed0929-3960-48af-b0d1-40d71f4a9919} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:00.534196 [ 69175 ] {c1a76ee0-6d80-4d5b-96c4-7f50390873d6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578136 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37742) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:00.581141 [ 69175 ] {c1a76ee0-6d80-4d5b-96c4-7f50390873d6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578136 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:00.608907 [ 69180 ] {822bd222-50a0-4dcd-b548-4079a03d2893} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37730) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:00.653203 [ 62325 ] {54dbe505-3e35-410f-a56b-71e82ba02252} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102424 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37758) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:00.696402 [ 62325 ] {54dbe505-3e35-410f-a56b-71e82ba02252} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102424 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:00.826211 [ 69180 ] {822bd222-50a0-4dcd-b548-4079a03d2893} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:02.074261 [ 69173 ] {ab044749-b08c-48ed-a58c-f7f718c17faa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37778) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:02.371415 [ 69173 ] {ab044749-b08c-48ed-a58c-f7f718c17faa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:02.577640 [ 69181 ] {7f2afd04-b3e8-49c3-8349-c93d85ef09c1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37782) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:02.656589 [ 69181 ] {7f2afd04-b3e8-49c3-8349-c93d85ef09c1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:02.674115 [ 69182 ] {d805576e-cc30-4548-8224-178f69e59c24} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37792) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:02.851850 [ 69182 ] {d805576e-cc30-4548-8224-178f69e59c24} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:03.331069 [ 69172 ] {146bd078-5f1c-4465-ab41-a11768bd4c24} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37806) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:03.414004 [ 69172 ] {146bd078-5f1c-4465-ab41-a11768bd4c24} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:04.852636 [ 69183 ] {1c56321e-03cb-4d55-a31f-48d695b03c07} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38292) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:04.915233 [ 69183 ] {1c56321e-03cb-4d55-a31f-48d695b03c07} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:05.068369 [ 69184 ] {3ee36405-5809-4041-a939-2aa42658bf3a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38308) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:05.142398 [ 69176 ] {3e24e96d-5c27-478c-b2d1-3c5966e68736} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.52 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38324) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:05.201490 [ 69176 ] {3e24e96d-5c27-478c-b2d1-3c5966e68736} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.52 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:05.416716 [ 69184 ] {3ee36405-5809-4041-a939-2aa42658bf3a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:05.785840 [ 69177 ] {20d700c5-21ed-4117-8add-5de1e15ea084} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38338) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:05.886244 [ 69177 ] {20d700c5-21ed-4117-8add-5de1e15ea084} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:06.262856 [ 69185 ] {cc6d62e2-2e1b-470d-8cf8-9a577d588e90} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38384) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:06.364907 [ 69186 ] {d18f4b37-bac6-412e-abe6-3edeff4f4c68} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38346) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:06.425064 [ 69186 ] {d18f4b37-bac6-412e-abe6-3edeff4f4c68} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:06.430418 [ 62433 ] {4547bcf4-0306-41a6-9dd1-3044de02c14d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38370) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:06.433636 [ 69171 ] {5d1a714f-aaa4-4024-a0fc-fca04b09c3b5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103920 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38352) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:06.439992 [ 69178 ] {4165d55c-9322-4134-9876-3d81147f0a55} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.75 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_1_6_1/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 174 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37664) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:29:06.499305 [ 62433 ] {4547bcf4-0306-41a6-9dd1-3044de02c14d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:06.550521 [ 62325 ] {fcbc431c-3d74-41b7-b666-ef72f6d0b8ad} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38402) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:06.559056 [ 69178 ] {4165d55c-9322-4134-9876-3d81147f0a55} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.75 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_1_6_1/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 174 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:29:06.560669 [ 69171 ] {5d1a714f-aaa4-4024-a0fc-fca04b09c3b5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103920 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:06.609971 [ 69185 ] {cc6d62e2-2e1b-470d-8cf8-9a577d588e90} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:06.635867 [ 69179 ] {b4a1203f-1dd5-440b-bd11-9fa5f162b4cc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38368) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:29:06.643951 [ 62325 ] {fcbc431c-3d74-41b7-b666-ef72f6d0b8ad} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:06.696298 [ 69179 ] {b4a1203f-1dd5-440b-bd11-9fa5f162b4cc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:29:06.758580 [ 69174 ] {ca1eabaf-b35b-4d41-9c60-551c1398b9f4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38400) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:06.834183 [ 69174 ] {ca1eabaf-b35b-4d41-9c60-551c1398b9f4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:08.622608 [ 69173 ] {f48946e3-f83f-4287-af21-5b4197f94c55} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38434) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:08.675171 [ 69173 ] {f48946e3-f83f-4287-af21-5b4197f94c55} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:08.783308 [ 69175 ] {796fb3bd-f920-499a-9967-75d59d8d46fa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103500 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38418) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:09.043997 [ 69175 ] {796fb3bd-f920-499a-9967-75d59d8d46fa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103500 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:09.444148 [ 69181 ] {0fbb6f4b-b723-4886-a68b-632b51c61bad} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38438) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:09.498330 [ 69181 ] {0fbb6f4b-b723-4886-a68b-632b51c61bad} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:09.785918 [ 69182 ] {541e57c5-5964-4879-a4b3-93415f75e68e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38454) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:09.933200 [ 69182 ] {541e57c5-5964-4879-a4b3-93415f75e68e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:11.116898 [ 69172 ] {b14aff85-1600-485e-a2a2-97d1ff5a71b1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38456) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:11.190602 [ 69172 ] {b14aff85-1600-485e-a2a2-97d1ff5a71b1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:11.290031 [ 69176 ] {b651d08a-d090-4e8d-a893-eb646bcb884f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38470) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:11.330073 [ 69183 ] {7d9f2b71-bc62-4ca2-979b-854f21324a5e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102910 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38460) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:11.396469 [ 69176 ] {b651d08a-d090-4e8d-a893-eb646bcb884f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:11.401943 [ 69183 ] {7d9f2b71-bc62-4ca2-979b-854f21324a5e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102910 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:12.156746 [ 69184 ] {28fea93e-0d84-4493-94e3-ef0259735ccf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38480) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:12.256823 [ 69184 ] {28fea93e-0d84-4493-94e3-ef0259735ccf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:12.786111 [ 69177 ] {f42da3d4-9a03-48f3-a755-14cfdb137077} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38484) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:12.871995 [ 69177 ] {f42da3d4-9a03-48f3-a755-14cfdb137077} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:13.149022 [ 69187 ] {7eaf1966-94c0-4593-814a-5e00c6e3f2b9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58804) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:13.201532 [ 69187 ] {7eaf1966-94c0-4593-814a-5e00c6e3f2b9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:13.286648 [ 69171 ] {2c851e8d-f249-4fe2-b7c0-a2323a7b9e72} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_7_7_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 23 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58826) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:29:13.291177 [ 69180 ] {8a4afa73-1de1-413b-9348-4fdc0fdc73d9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38502) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:13.299827 [ 69186 ] {09f2abf9-b640-4dcb-8b12-873a8f9693b2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38486) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:13.367130 [ 69171 ] {2c851e8d-f249-4fe2-b7c0-a2323a7b9e72} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_7_7_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 23 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:29:13.380667 [ 69186 ] {09f2abf9-b640-4dcb-8b12-873a8f9693b2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:13.443526 [ 69180 ] {8a4afa73-1de1-413b-9348-4fdc0fdc73d9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:13.446648 [ 62325 ] {94d4330d-b068-457f-a525-9ec43d5a8d4e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58818) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:13.521989 [ 62325 ] {94d4330d-b068-457f-a525-9ec43d5a8d4e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:13.690847 [ 62433 ] {0b849ed4-f105-4278-9415-38e3f3dea40c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38516) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:13.701747 [ 69178 ] {92fcf11f-9acf-41dc-82a8-6abb380613f5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58806) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:13.759998 [ 69178 ] {92fcf11f-9acf-41dc-82a8-6abb380613f5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:13.774069 [ 62433 ] {0b849ed4-f105-4278-9415-38e3f3dea40c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:15.486201 [ 69173 ] {3a446f68-945e-423d-bbe7-cc46e9ff76b4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58856) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:15.642751 [ 69174 ] {b3fc2a7c-08cb-4e12-8cb0-a0d41cf712f6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58842) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:15.741842 [ 69174 ] {b3fc2a7c-08cb-4e12-8cb0-a0d41cf712f6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:16.049382 [ 69173 ] {3a446f68-945e-423d-bbe7-cc46e9ff76b4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:16.477235 [ 69175 ] {24baf2ba-610f-45fb-8871-11ed7cbde31f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58868) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:16.560094 [ 69175 ] {24baf2ba-610f-45fb-8871-11ed7cbde31f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:16.613342 [ 69181 ] {64c10422-f168-42de-b422-96fcf7631780} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58876) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:16.715691 [ 69181 ] {64c10422-f168-42de-b422-96fcf7631780} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:18.276085 [ 69179 ] {b5447788-dcd9-41ff-9961-7005de787638} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58890) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:18.366133 [ 69179 ] {b5447788-dcd9-41ff-9961-7005de787638} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:18.405826 [ 69185 ] {6fe78f45-80d3-4525-a4b9-58fc2b4339fa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58902) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:18.554716 [ 69185 ] {6fe78f45-80d3-4525-a4b9-58fc2b4339fa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:18.757420 [ 69182 ] {17868477-b951-441a-9e46-f0bcddda9427} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58904) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:18.859724 [ 69182 ] {17868477-b951-441a-9e46-f0bcddda9427} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:19.027015 [ 69183 ] {867f3d14-474d-4f2e-a4d5-879fe287195f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58912) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:19.076116 [ 69183 ] {867f3d14-474d-4f2e-a4d5-879fe287195f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:19.518640 [ 69171 ] {ba7fb794-baf6-4659-abf1-88f4be3e7d51} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58936) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:19.599208 [ 69171 ] {ba7fb794-baf6-4659-abf1-88f4be3e7d51} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:19.729222 [ 69184 ] {1be1e91e-3592-4f3b-bbad-1591b2586c52} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58918) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:19.818347 [ 69184 ] {1be1e91e-3592-4f3b-bbad-1591b2586c52} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:20.490829 [ 62325 ] {546d9c08-0b11-479c-8f45-f4c9167d82db} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58968) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:20.560779 [ 62325 ] {546d9c08-0b11-479c-8f45-f4c9167d82db} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:20.566418 [ 69177 ] {4f5f98cf-effb-4308-9d4b-fc0ac0906057} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58926) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:29:20.593791 [ 69176 ] {8b075198-abe3-428a-a149-d753ccec16d8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2099184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58954) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:20.593748 [ 69186 ] {d960c6e0-c07f-47e2-9581-5033df20f53b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58940) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:20.638968 [ 69178 ] {e6775b3d-c7b0-4447-83e0-20900f234906} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58970) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:20.651161 [ 69176 ] {8b075198-abe3-428a-a149-d753ccec16d8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2099184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:20.653985 [ 69186 ] {d960c6e0-c07f-47e2-9581-5033df20f53b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:20.763200 [ 69177 ] {4f5f98cf-effb-4308-9d4b-fc0ac0906057} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:29:20.953591 [ 69178 ] {e6775b3d-c7b0-4447-83e0-20900f234906} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:23.112442 [ 62433 ] {507a87dc-334e-4752-b5cf-2c0d99b747df} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58984) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:23.199462 [ 62433 ] {507a87dc-334e-4752-b5cf-2c0d99b747df} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:23.639701 [ 69173 ] {381f4376-d3ee-4c76-af35-672d452b5d49} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59000) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:23.732615 [ 69173 ] {381f4376-d3ee-4c76-af35-672d452b5d49} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:23.906179 [ 69174 ] {0a647496-ff1c-4b55-ab21-1dd1a8ccd732} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58998) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:24.024099 [ 69174 ] {0a647496-ff1c-4b55-ab21-1dd1a8ccd732} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:24.026520 [ 69175 ] {0a8b9197-3f59-482c-8c97-4b986785f8e9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60728) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:24.220410 [ 69175 ] {0a8b9197-3f59-482c-8c97-4b986785f8e9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:25.522491 [ 69181 ] {03b44b10-1686-4bb4-aa9d-e4f2c06cbe70} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102424 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60740) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:25.600867 [ 69181 ] {03b44b10-1686-4bb4-aa9d-e4f2c06cbe70} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102424 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:25.657368 [ 69182 ] {e3df8137-01a2-46dd-b7c3-c11123df8ab7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60764) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:26.011781 [ 69182 ] {e3df8137-01a2-46dd-b7c3-c11123df8ab7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:26.049144 [ 69185 ] {998b42c2-aa79-406e-a3b0-ef8f8c56dfa7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60760) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:29:26.349917 [ 69185 ] {998b42c2-aa79-406e-a3b0-ef8f8c56dfa7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:29:26.920425 [ 69171 ] {1e7c41ed-a3ec-43ab-80f8-887db1c6014a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2104204 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60782) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:27.120420 [ 69171 ] {1e7c41ed-a3ec-43ab-80f8-887db1c6014a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2104204 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:27.201741 [ 69183 ] {c969006e-42c5-4065-925b-b5befb51e21d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60778) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:27.269644 [ 69183 ] {c969006e-42c5-4065-925b-b5befb51e21d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:27.347186 [ 69180 ] {c60ff758-b2c6-4e07-a2db-da3b13f6eba0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60804) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:27.357982 [ 69184 ] {27add5d6-349d-4e42-96b5-3642b7498145} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60784) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:29:27.441426 [ 69180 ] {c60ff758-b2c6-4e07-a2db-da3b13f6eba0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:27.447260 [ 69184 ] {27add5d6-349d-4e42-96b5-3642b7498145} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:29:27.609121 [ 69186 ] {a26aa4a9-1c69-483d-b0cb-8996e6441914} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60810) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:27.695922 [ 69186 ] {a26aa4a9-1c69-483d-b0cb-8996e6441914} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:27.711320 [ 62325 ] {22157f2f-61df-4961-b212-315495098059} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60800) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:27.888796 [ 69177 ] {9db3ab8b-5117-4c6e-8c6f-b4112e01efd5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60816) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:27.943147 [ 62325 ] {22157f2f-61df-4961-b212-315495098059} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:27.973967 [ 69177 ] {9db3ab8b-5117-4c6e-8c6f-b4112e01efd5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:30.110953 [ 62433 ] {6414f9ce-68a8-4bfc-af79-b5e216ee323d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60832) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:30.262761 [ 69178 ] {ed923f5b-2637-43f1-bd0c-96fb49a74057} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60820) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:30.277750 [ 62433 ] {6414f9ce-68a8-4bfc-af79-b5e216ee323d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:30.351477 [ 69178 ] {ed923f5b-2637-43f1-bd0c-96fb49a74057} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:30.440556 [ 69173 ] {163ab6e4-f722-4af4-9f5c-9269e04ffe00} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60848) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:30.510213 [ 69173 ] {163ab6e4-f722-4af4-9f5c-9269e04ffe00} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:30.872616 [ 69174 ] {ec09a583-19c4-41cf-8ebd-793c0e058e71} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60862) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:30.933954 [ 69174 ] {ec09a583-19c4-41cf-8ebd-793c0e058e71} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:30.995374 [ 69172 ] {7c683b42-e17a-4b9d-a768-37a223d6d586} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.76 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 124 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58930) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:29:31.132306 [ 69172 ] {7c683b42-e17a-4b9d-a768-37a223d6d586} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.76 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 124 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:29:31.982761 [ 69175 ] {79a0f11b-440d-4bd2-8326-24513c6fb457} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60870) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:32.147675 [ 69175 ] {79a0f11b-440d-4bd2-8326-24513c6fb457} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:32.154226 [ 69176 ] {8058e128-552a-417f-a3e6-bfb98be106f7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60876) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:32.686121 [ 69176 ] {8058e128-552a-417f-a3e6-bfb98be106f7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:32.734107 [ 69187 ] {68d75d3e-6955-41b1-8e43-8a2545bb7b17} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60880) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:32.775653 [ 69184 ] {8498f5a8-2888-402a-8c94-fd36ed192945} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57302) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:32.795817 [ 69187 ] {68d75d3e-6955-41b1-8e43-8a2545bb7b17} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:32.831799 [ 69182 ] {aa6799ba-6d54-462a-ae25-a3d3b2095264} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57280) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:32.850409 [ 69184 ] {8498f5a8-2888-402a-8c94-fd36ed192945} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:32.901364 [ 69182 ] {aa6799ba-6d54-462a-ae25-a3d3b2095264} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:33.207938 [ 69185 ] {a4cdee59-ef16-4e37-99fe-8ce6697a1cfb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57268) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:33.286863 [ 69185 ] {a4cdee59-ef16-4e37-99fe-8ce6697a1cfb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:33.343852 [ 69183 ] {e43b2029-a794-4f0d-ac42-1205d69d6753} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57290) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:33.436705 [ 69183 ] {e43b2029-a794-4f0d-ac42-1205d69d6753} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:33.753937 [ 69186 ] {c935ebbd-9af9-4026-826e-516d299bb529} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57318) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:33.776694 [ 69181 ] {ff9cc6dd-ac3e-44c4-845d-bb5025d13686} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57262) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:29:33.850605 [ 69186 ] {c935ebbd-9af9-4026-826e-516d299bb529} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:33.863377 [ 69181 ] {ff9cc6dd-ac3e-44c4-845d-bb5025d13686} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:29:34.194716 [ 62325 ] {2fe628ea-c19c-401c-93e3-53664cd9cd97} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57328) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:34.252629 [ 62325 ] {2fe628ea-c19c-401c-93e3-53664cd9cd97} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:36.090590 [ 69179 ] {4954ef63-2a0d-449b-ac24-ee6cffee4211} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.39 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 124 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60744) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:29:36.247837 [ 69179 ] {4954ef63-2a0d-449b-ac24-ee6cffee4211} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.39 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 124 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:29:36.687748 [ 69177 ] {8d472115-c983-44ca-8057-7a0290638622} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57340) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:36.734714 [ 62433 ] {bb9a8ec7-eba5-43b7-ad2a-ba098d00ef51} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57344) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:36.761319 [ 69177 ] {8d472115-c983-44ca-8057-7a0290638622} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:36.801051 [ 62433 ] {bb9a8ec7-eba5-43b7-ad2a-ba098d00ef51} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:36.834553 [ 69178 ] {c4d6eb3e-bdad-4377-8aaf-cd98c3b37e99} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57352) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:37.031080 [ 69173 ] {445e270e-1b0a-467c-a3a3-1a796a620a71} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57376) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:37.102338 [ 69173 ] {445e270e-1b0a-467c-a3a3-1a796a620a71} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:37.167356 [ 69178 ] {c4d6eb3e-bdad-4377-8aaf-cd98c3b37e99} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:37.190583 [ 69171 ] {f7764595-e51c-42f1-9fda-3696bd5835e0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57360) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:37.285298 [ 69171 ] {f7764595-e51c-42f1-9fda-3696bd5835e0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:38.561372 [ 69172 ] {05e53e60-b78e-4f82-8bfe-aab55c073ed2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57384) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:38.811396 [ 69172 ] {05e53e60-b78e-4f82-8bfe-aab55c073ed2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:39.153991 [ 69175 ] {fbc87d1a-9efb-48f5-8156-3b3fde127002} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57396) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:39.229607 [ 69175 ] {fbc87d1a-9efb-48f5-8156-3b3fde127002} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:39.374109 [ 69174 ] {abd7ea3d-5995-4f02-a8eb-ab922a01bb24} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57410) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:39.419636 [ 69174 ] {abd7ea3d-5995-4f02-a8eb-ab922a01bb24} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:39.564422 [ 69187 ] {676219fe-4da7-49f7-9511-d2d4223f31d7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57402) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:39.570183 [ 69176 ] {d5707d09-aad1-429f-bfaf-1f14489b3234} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57400) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:39.615356 [ 69176 ] {d5707d09-aad1-429f-bfaf-1f14489b3234} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:39.624519 [ 69182 ] {ef96b442-546d-4e69-aece-df3ee3338de1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57414) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:39.626641 [ 69187 ] {676219fe-4da7-49f7-9511-d2d4223f31d7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:39.793698 [ 69182 ] {ef96b442-546d-4e69-aece-df3ee3338de1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:39.899517 [ 69185 ] {a5e0d061-ae23-41a2-8076-042f1001e624} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57422) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:39.973286 [ 69185 ] {a5e0d061-ae23-41a2-8076-042f1001e624} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:40.329582 [ 69184 ] {09c504cc-f7ce-4e33-ba42-95bb8de4dfcc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57438) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:40.453274 [ 69184 ] {09c504cc-f7ce-4e33-ba42-95bb8de4dfcc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:40.794572 [ 69183 ] {85625f99-72aa-4d90-9b31-2eb43a8e6f18} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57434) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:40.940001 [ 69183 ] {85625f99-72aa-4d90-9b31-2eb43a8e6f18} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:41.622568 [ 69181 ] {1dd8c756-0569-4835-9bf9-7f3c6f6eab6e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57450) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:41.710542 [ 69181 ] {1dd8c756-0569-4835-9bf9-7f3c6f6eab6e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:42.709959 [ 69186 ] {0e9d75e8-3c7d-45f9-8a17-96cb5ba7372b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57454) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:42.827227 [ 69186 ] {0e9d75e8-3c7d-45f9-8a17-96cb5ba7372b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:43.125594 [ 69177 ] {2d386f24-c412-4327-b176-30c6ae619c2b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55568) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:43.228939 [ 69177 ] {2d386f24-c412-4327-b176-30c6ae619c2b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:43.382077 [ 62433 ] {f4ab350d-b89a-4ab5-8ad4-2ab61cc0a689} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578136 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55576) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:43.463700 [ 62433 ] {f4ab350d-b89a-4ab5-8ad4-2ab61cc0a689} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578136 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:43.732305 [ 69178 ] {f5761cd2-bdc6-4b85-b0d1-7c5e48dc5ada} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55598) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:43.800131 [ 69178 ] {f5761cd2-bdc6-4b85-b0d1-7c5e48dc5ada} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:43.897881 [ 69179 ] {bc7cd9c3-99e8-49d2-b375-176b518f02cc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55556) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:44.066315 [ 62325 ] {b593bf82-05b2-4474-ba95-84b64140d802} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55582) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:44.099378 [ 69179 ] {bc7cd9c3-99e8-49d2-b375-176b518f02cc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:44.491691 [ 62325 ] {b593bf82-05b2-4474-ba95-84b64140d802} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:45.217680 [ 69171 ] {33eac6c0-9fa2-4b92-b245-433380034f56} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55606) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:45.505060 [ 69171 ] {33eac6c0-9fa2-4b92-b245-433380034f56} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:45.575737 [ 69173 ] {8cb0097e-886d-4191-96e9-9d7a436564b3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55636) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:45.578946 [ 69187 ] {3f00947f-12b2-4cfa-8087-11404c0011c9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55664) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:45.612568 [ 69176 ] {44ee3875-c5c7-4104-a5f1-a11c56c780e5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55654) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:45.647491 [ 69187 ] {3f00947f-12b2-4cfa-8087-11404c0011c9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:45.685062 [ 69172 ] {d6e31f2b-0de5-41c4-a3b0-59c720f82a7d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098624 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55620) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:45.688592 [ 69176 ] {44ee3875-c5c7-4104-a5f1-a11c56c780e5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:45.794579 [ 69175 ] {ceb96cd9-bb6c-4afa-809d-55dabdcf2d10} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55640) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:45.804640 [ 69173 ] {8cb0097e-886d-4191-96e9-9d7a436564b3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:45.911373 [ 69172 ] {d6e31f2b-0de5-41c4-a3b0-59c720f82a7d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098624 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:45.995016 [ 69175 ] {ceb96cd9-bb6c-4afa-809d-55dabdcf2d10} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:46.051969 [ 69180 ] {2fa3948c-1c67-44c9-b807-bd026406bb94} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55638) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:46.219482 [ 69180 ] {2fa3948c-1c67-44c9-b807-bd026406bb94} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:47.767344 [ 69185 ] {7ff424a8-b57a-4af6-8988-0d47e38b906d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55674) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:47.865481 [ 69185 ] {7ff424a8-b57a-4af6-8988-0d47e38b906d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:48.034965 [ 69182 ] {9d114ddf-6610-4cfd-b3a8-75c837637aaf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55684) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:48.146693 [ 69182 ] {9d114ddf-6610-4cfd-b3a8-75c837637aaf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:48.821071 [ 69183 ] {7ce86794-8da7-4c3f-9648-41f464e115e5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55692) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:48.987509 [ 69183 ] {7ce86794-8da7-4c3f-9648-41f464e115e5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:49.444006 [ 69184 ] {80281d82-3183-4788-8cbd-f4993eebdece} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55708) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:49.530757 [ 69184 ] {80281d82-3183-4788-8cbd-f4993eebdece} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:49.755433 [ 69181 ] {119644d0-4348-425c-a35d-4b87fa9f5f15} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55704) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:49.771678 [ 69186 ] {2b3a2493-bce4-4771-a800-c213fa47ed32} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55722) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:49.837483 [ 69181 ] {119644d0-4348-425c-a35d-4b87fa9f5f15} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:49.848947 [ 69186 ] {2b3a2493-bce4-4771-a800-c213fa47ed32} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:50.021330 [ 69177 ] {05574934-a782-4faa-90b9-87c8a3f5b05f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55730) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:50.063318 [ 69177 ] {05574934-a782-4faa-90b9-87c8a3f5b05f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:50.719418 [ 69178 ] {6dd6411a-4bba-44b1-93b3-b39a9123a7be} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55736) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:50.792270 [ 69178 ] {6dd6411a-4bba-44b1-93b3-b39a9123a7be} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:51.402582 [ 69179 ] {8aa3af6e-ed91-4f07-8b04-6ff579c6aa83} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55752) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:51.490617 [ 69179 ] {8aa3af6e-ed91-4f07-8b04-6ff579c6aa83} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:52.370608 [ 69171 ] {1e6d3e58-08b2-4fa8-b65a-5b2217ffe5ea} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55780) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:52.432537 [ 69171 ] {1e6d3e58-08b2-4fa8-b65a-5b2217ffe5ea} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:52.529372 [ 69173 ] {7ae1ece1-65ed-4dc1-9b13-a9a3f008df95} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55796) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:52.596665 [ 62325 ] {7f4c1930-1e54-4786-a2c6-706cf1c56d0a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55776) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:52.615305 [ 69176 ] {12297aa0-518a-4d74-841a-e39ae3301ba3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55790) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:52.656064 [ 69173 ] {7ae1ece1-65ed-4dc1-9b13-a9a3f008df95} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:52.674661 [ 69172 ] {bca31088-5e22-4794-be6c-0d66248778e6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55804) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:52.687713 [ 69176 ] {12297aa0-518a-4d74-841a-e39ae3301ba3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:52.750520 [ 69172 ] {bca31088-5e22-4794-be6c-0d66248778e6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:52.941094 [ 62325 ] {7f4c1930-1e54-4786-a2c6-706cf1c56d0a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:52.964916 [ 62433 ] {c38e44d4-c744-4b34-ad24-548ca381d7a7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55760) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:53.026297 [ 62433 ] {c38e44d4-c744-4b34-ad24-548ca381d7a7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:53.364303 [ 69175 ] {59174d0f-df0f-4422-8a50-1c7ced64a6ee} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:55808) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:53.462523 [ 69175 ] {59174d0f-df0f-4422-8a50-1c7ced64a6ee} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:54.675317 [ 69187 ] {2738f17f-022a-4361-9857-81eefaf8a1d0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2102856 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34734) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:54.885659 [ 69187 ] {2738f17f-022a-4361-9857-81eefaf8a1d0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2102856 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:54.897116 [ 69180 ] {b585c5e0-94ae-4396-aae2-0cd752fcaf70} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34718) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:54.976317 [ 69180 ] {b585c5e0-94ae-4396-aae2-0cd752fcaf70} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:56.256853 [ 69185 ] {c7e878b1-a850-406a-b207-f947ca7ce9ec} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34750) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:56.361788 [ 69185 ] {c7e878b1-a850-406a-b207-f947ca7ce9ec} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:56.702980 [ 69183 ] {248c953a-c408-4d81-857e-b2c005e099ee} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34762) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:56.794002 [ 69183 ] {248c953a-c408-4d81-857e-b2c005e099ee} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:56.926562 [ 69182 ] {ae4a3622-011c-46fb-a8e8-96df41659e22} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578792 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34752) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:56.969480 [ 69184 ] {d367b198-d124-47ec-8657-382a295c1dc4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34772) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:56.993532 [ 69182 ] {ae4a3622-011c-46fb-a8e8-96df41659e22} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578792 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:57.055489 [ 69184 ] {d367b198-d124-47ec-8657-382a295c1dc4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:57.835730 [ 69186 ] {2d90b44a-9725-47ca-87e5-2a6d69775fd9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34788) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:57.907333 [ 69186 ] {2d90b44a-9725-47ca-87e5-2a6d69775fd9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:57.926485 [ 69178 ] {771c12ed-8805-406b-be40-8077a76fe385} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34796) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:58.002926 [ 69178 ] {771c12ed-8805-406b-be40-8077a76fe385} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:58.035351 [ 69181 ] {65aab88d-d07d-44cd-b672-ab970ceb498f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34776) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:29:58.447729 [ 69181 ] {65aab88d-d07d-44cd-b672-ab970ceb498f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:29:58.903320 [ 69171 ] {aa08644b-3069-46d0-9d12-246d62d6bb6a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34824) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:58.976703 [ 69172 ] {568ba0ce-8688-4c5f-b4db-b8b68cdf9057} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34846) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:58.980649 [ 69171 ] {aa08644b-3069-46d0-9d12-246d62d6bb6a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:59.046511 [ 69172 ] {568ba0ce-8688-4c5f-b4db-b8b68cdf9057} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:59.132087 [ 69179 ] {70844622-ef4f-4959-ba18-ac3715314e6f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34808) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:59.249257 [ 69179 ] {70844622-ef4f-4959-ba18-ac3715314e6f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:59.317775 [ 69174 ] {551bf272-420d-40fe-a548-ac14e223f84d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34838) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:59.401237 [ 69174 ] {551bf272-420d-40fe-a548-ac14e223f84d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:59.558459 [ 69177 ] {fcfcb4cf-2352-4141-b1bf-300810986e3f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_8_8_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 73 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34820) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:29:59.632275 [ 69177 ] {fcfcb4cf-2352-4141-b1bf-300810986e3f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_8_8_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 73 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:29:59.837657 [ 69173 ] {04568595-e9c1-4a11-aa37-d4bbde7e381c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34850) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:29:59.945815 [ 69173 ] {04568595-e9c1-4a11-aa37-d4bbde7e381c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:00.009858 [ 69176 ] {8dd231f8-2f0c-4977-af84-e893193edcc2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34864) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:00.092144 [ 69176 ] {8dd231f8-2f0c-4977-af84-e893193edcc2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:00.857401 [ 69175 ] {d3673ceb-0176-4c3d-98e4-347e9dce146d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34868) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:30:01.310807 [ 69187 ] {18e42087-739d-4eaf-94f9-1f80181bba27} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34876) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:01.396742 [ 69187 ] {18e42087-739d-4eaf-94f9-1f80181bba27} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:01.399555 [ 69175 ] {d3673ceb-0176-4c3d-98e4-347e9dce146d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:30:02.731801 [ 69180 ] {71e465ad-0a40-447c-90d6-7d4245d6748f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34878) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:02.925399 [ 69180 ] {71e465ad-0a40-447c-90d6-7d4245d6748f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:03.072984 [ 69185 ] {3de20537-b31f-4e07-a2ce-4b00283225f6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35588) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:03.174828 [ 69185 ] {3de20537-b31f-4e07-a2ce-4b00283225f6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:04.031382 [ 69183 ] {8262a0a7-dec1-4e03-8c76-40344cd644d7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35598) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:04.329800 [ 69184 ] {9eb5f224-6351-420d-a5cb-8b8697a23d9f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35618) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:04.385887 [ 69184 ] {9eb5f224-6351-420d-a5cb-8b8697a23d9f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:04.402228 [ 69182 ] {646928e4-5be1-4ee0-bea4-74f875365cf9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35608) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:04.432695 [ 69183 ] {8262a0a7-dec1-4e03-8c76-40344cd644d7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:04.527431 [ 69182 ] {646928e4-5be1-4ee0-bea4-74f875365cf9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:04.848434 [ 69178 ] {50439570-e4b0-437e-aea8-27314d1df797} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35622) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:04.922741 [ 69178 ] {50439570-e4b0-437e-aea8-27314d1df797} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:05.202594 [ 69181 ] {a378b289-936b-4678-a3d4-8e959623d24b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35632) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:05.205469 [ 69186 ] {3c9e9366-ba3f-48b3-91fc-703b0d1051b7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.52 MiB (attempt to allocate chunk of 2103932 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35620) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:05.264878 [ 69181 ] {a378b289-936b-4678-a3d4-8e959623d24b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:05.287053 [ 69186 ] {3c9e9366-ba3f-48b3-91fc-703b0d1051b7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.52 MiB (attempt to allocate chunk of 2103932 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:05.566521 [ 69171 ] {95aa18ff-24f0-46c9-b8c5-a464ab0af4a5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35638) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:05.819099 [ 69171 ] {95aa18ff-24f0-46c9-b8c5-a464ab0af4a5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:06.463845 [ 69177 ] {51f7245d-60c6-4ae7-ac26-0cd493f917a7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35680) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:06.623257 [ 69177 ] {51f7245d-60c6-4ae7-ac26-0cd493f917a7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:06.693423 [ 69172 ] {895134dc-08d2-4959-b476-b88188e8a0be} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35654) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:06.867740 [ 69172 ] {895134dc-08d2-4959-b476-b88188e8a0be} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:07.231227 [ 69173 ] {63ae2804-1a9d-4b93-94c0-e8a4b6cbb4e6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35696) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:07.321906 [ 69173 ] {63ae2804-1a9d-4b93-94c0-e8a4b6cbb4e6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:07.329522 [ 69174 ] {d312d831-897b-4222-8041-c3054e0f06df} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35670) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:30:07.419834 [ 69174 ] {d312d831-897b-4222-8041-c3054e0f06df} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:30:07.792128 [ 62433 ] {270c25f5-442a-422a-9a1c-6cef9e6aa59b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35716) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:07.910827 [ 62433 ] {270c25f5-442a-422a-9a1c-6cef9e6aa59b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:08.714806 [ 69176 ] {9619f928-66a2-4eff-a1a4-13846660981a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35710) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:08.858765 [ 69176 ] {9619f928-66a2-4eff-a1a4-13846660981a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:09.356042 [ 69175 ] {e7f935bb-3d24-48bc-8f38-0a25a35fd9e5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35728) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:09.519120 [ 69175 ] {e7f935bb-3d24-48bc-8f38-0a25a35fd9e5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:10.055240 [ 69180 ] {fd512418-178a-42e1-8998-a94ff1ff86ba} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35744) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:10.419153 [ 69180 ] {fd512418-178a-42e1-8998-a94ff1ff86ba} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:11.354622 [ 69187 ] {86a80c8c-7a65-41e8-91ed-69f2baa2321e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35746) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:11.365285 [ 69183 ] {c0cc9953-d0c9-4a38-b156-6cafccb2e825} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35764) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:11.433422 [ 69187 ] {86a80c8c-7a65-41e8-91ed-69f2baa2321e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:11.478216 [ 69183 ] {c0cc9953-d0c9-4a38-b156-6cafccb2e825} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:11.579166 [ 69185 ] {e9d0ca38-e7f2-450b-b588-5ac13deb8645} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35748) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:11.622863 [ 69182 ] {501814d5-5f83-42b3-9703-4a7ea06b80c5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35768) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:11.633360 [ 69185 ] {e9d0ca38-e7f2-450b-b588-5ac13deb8645} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:11.656351 [ 69182 ] {501814d5-5f83-42b3-9703-4a7ea06b80c5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:11.714508 [ 69178 ] {48d5abcf-898b-43ba-89a5-c9814dd60b20} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103920 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35774) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:11.773501 [ 69178 ] {48d5abcf-898b-43ba-89a5-c9814dd60b20} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103920 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:11.880623 [ 69181 ] {d31b33a4-b202-4934-91a7-f6100c22d1f7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35790) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:11.962608 [ 69181 ] {d31b33a4-b202-4934-91a7-f6100c22d1f7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:13.090447 [ 69186 ] {7329ed79-d65d-49be-8e50-8db782025e1e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41934) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:13.215518 [ 69186 ] {7329ed79-d65d-49be-8e50-8db782025e1e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:13.376004 [ 69184 ] {df3fbfd2-a195-46d6-90d5-c41746eef3f7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35804) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:13.475322 [ 69171 ] {2380f959-259c-4d5b-80ec-2801cd0a15c5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2099056 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41956) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:13.479558 [ 69184 ] {df3fbfd2-a195-46d6-90d5-c41746eef3f7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:13.525438 [ 69171 ] {2380f959-259c-4d5b-80ec-2801cd0a15c5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2099056 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:13.580360 [ 69177 ] {03b4c56b-6aeb-4a18-a3d8-99c1e7155bbe} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.89 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41954) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:13.606776 [ 62325 ] {f2af0cef-60c1-4c1d-896f-64eb53411c37} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41944) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:13.680608 [ 69177 ] {03b4c56b-6aeb-4a18-a3d8-99c1e7155bbe} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.89 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:13.736803 [ 62325 ] {f2af0cef-60c1-4c1d-896f-64eb53411c37} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:14.327864 [ 69174 ] {8ead81f0-7b10-41f7-8aee-e5bee26503a0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41966) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:30:14.431835 [ 69174 ] {8ead81f0-7b10-41f7-8aee-e5bee26503a0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:30:14.531506 [ 69172 ] {fc0cc278-81cd-44dd-8b11-8aa37faf0963} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41976) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:14.620355 [ 69172 ] {fc0cc278-81cd-44dd-8b11-8aa37faf0963} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:16.231013 [ 69173 ] {581fff09-d870-411f-868d-a3b138fab69b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41978) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:30:16.491283 [ 69173 ] {581fff09-d870-411f-868d-a3b138fab69b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:30:16.570076 [ 69179 ] {d59c9f4f-d80b-4e67-8d1e-a8d9bb49fdef} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 54.00 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 124 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35664) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:30:16.680539 [ 69175 ] {d6bc45a9-7bbc-4175-a8a0-a7cec187e8fb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41992) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:16.751800 [ 69179 ] {d59c9f4f-d80b-4e67-8d1e-a8d9bb49fdef} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 54.00 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 124 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:30:16.774292 [ 69175 ] {d6bc45a9-7bbc-4175-a8a0-a7cec187e8fb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:18.044046 [ 69176 ] {4e7076e4-1327-4dc8-832f-4fde24307bf9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42008) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:18.053145 [ 69185 ] {ade3763e-5f42-4289-82d4-3544fe0689f8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42020) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:18.092077 [ 69180 ] {388bf214-8af1-4b99-9329-d19ad14776b0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41994) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:18.120527 [ 69185 ] {ade3763e-5f42-4289-82d4-3544fe0689f8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:18.135282 [ 69176 ] {4e7076e4-1327-4dc8-832f-4fde24307bf9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:18.143398 [ 69187 ] {ac03cded-33c2-449d-afe3-ecd14b428cf1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42014) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:18.224571 [ 69180 ] {388bf214-8af1-4b99-9329-d19ad14776b0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:18.257039 [ 69187 ] {ac03cded-33c2-449d-afe3-ecd14b428cf1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:18.318041 [ 69182 ] {449ef314-2a50-49d8-9a82-093e6892c570} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42022) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:18.389992 [ 69182 ] {449ef314-2a50-49d8-9a82-093e6892c570} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:18.567585 [ 69178 ] {a442d22a-10b1-43fb-82ce-30a1e613ee2b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42036) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:18.633585 [ 69178 ] {a442d22a-10b1-43fb-82ce-30a1e613ee2b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:19.376653 [ 69181 ] {de554f9c-dd31-477b-a693-fe72c3cf8513} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42050) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:19.483433 [ 69171 ] {84b26256-bf69-4923-9cb3-541e149ff0b3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42086) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:19.504784 [ 69186 ] {89d038c8-fccb-4b68-b33a-0a6603d1eaa4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42066) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:19.580743 [ 69181 ] {de554f9c-dd31-477b-a693-fe72c3cf8513} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:19.773448 [ 69186 ] {89d038c8-fccb-4b68-b33a-0a6603d1eaa4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:19.983480 [ 69171 ] {84b26256-bf69-4923-9cb3-541e149ff0b3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:20.119778 [ 69177 ] {bbb8422b-b27a-457d-aa3d-a5549ae6711b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42096) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:20.225037 [ 69177 ] {bbb8422b-b27a-457d-aa3d-a5549ae6711b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:20.588111 [ 69184 ] {8bdb24c8-c325-4f78-97a6-1c8523235801} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42072) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:20.609725 [ 62325 ] {007c4135-dbb7-4bfe-80a4-a6e70e90222d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42106) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:20.666336 [ 69184 ] {8bdb24c8-c325-4f78-97a6-1c8523235801} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:20.819054 [ 69174 ] {91b9f6e7-d555-4cd0-8281-c2ec07108c18} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42116) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:30:20.925289 [ 62325 ] {007c4135-dbb7-4bfe-80a4-a6e70e90222d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:21.353001 [ 69174 ] {91b9f6e7-d555-4cd0-8281-c2ec07108c18} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:30:23.166674 [ 69179 ] {4094e54c-d957-4594-9028-681c0aa98e95} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103748 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59322) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:23.210043 [ 69173 ] {61ba8bd5-79a5-40a9-a0a6-61aa613ca451} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59310) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:23.328861 [ 69173 ] {61ba8bd5-79a5-40a9-a0a6-61aa613ca451} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:23.585652 [ 69179 ] {4094e54c-d957-4594-9028-681c0aa98e95} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103748 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:23.604357 [ 69172 ] {514d9ce9-4c0c-4682-94ad-1e9f59502d3b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103032 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42124) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:23.705108 [ 69172 ] {514d9ce9-4c0c-4682-94ad-1e9f59502d3b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103032 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:24.732812 [ 69175 ] {5c73f1b1-ea80-4157-93a7-92fc857a0a6e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59326) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:24.759369 [ 69185 ] {ce938905-f489-4958-8a90-cca6283bb5ea} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59328) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:24.796727 [ 69175 ] {5c73f1b1-ea80-4157-93a7-92fc857a0a6e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:24.803577 [ 69185 ] {ce938905-f489-4958-8a90-cca6283bb5ea} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:24.846770 [ 69176 ] {4d35f8ae-8407-4520-94bb-54659d695dde} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59332) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:24.878663 [ 69180 ] {1cf0ee71-f31c-4704-ac19-2dd98d28fa74} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59338) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:24.898423 [ 69187 ] {64222649-82b4-41c0-ba8e-dfcd7498a2b1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59340) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:24.927251 [ 69180 ] {1cf0ee71-f31c-4704-ac19-2dd98d28fa74} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:24.950637 [ 69187 ] {64222649-82b4-41c0-ba8e-dfcd7498a2b1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:24.964629 [ 69176 ] {4d35f8ae-8407-4520-94bb-54659d695dde} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:24.995960 [ 69182 ] {caeeaa4f-6a90-4881-ac24-711ecab297b8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59350) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:25.107368 [ 69182 ] {caeeaa4f-6a90-4881-ac24-711ecab297b8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:25.449362 [ 69183 ] {5306c6eb-85e1-4397-a9e2-2dd5cdcf7701} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59386) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:25.514433 [ 69183 ] {5306c6eb-85e1-4397-a9e2-2dd5cdcf7701} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:26.719772 [ 69181 ] {26ce826f-663e-4177-b9ee-9a6d01eb00e3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59376) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:26.769166 [ 69181 ] {26ce826f-663e-4177-b9ee-9a6d01eb00e3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:26.784248 [ 69178 ] {1dcace0e-3d40-4406-829e-f0a83fb59f6c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59366) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:26.902079 [ 69178 ] {1dcace0e-3d40-4406-829e-f0a83fb59f6c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:27.319167 [ 62433 ] {46e64862-eb2a-4df3-865d-1f91ccba0bb3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59396) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:30:27.387163 [ 69186 ] {77f85736-77f7-4636-883c-d6c928c1f6c5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59404) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:27.391925 [ 62433 ] {46e64862-eb2a-4df3-865d-1f91ccba0bb3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:30:27.426219 [ 69184 ] {d3560559-7db3-430d-b918-ceb5050a2b86} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 1181928 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_1_6_1/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 57 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59412) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:30:27.486576 [ 69186 ] {77f85736-77f7-4636-883c-d6c928c1f6c5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:27.492051 [ 69184 ] {d3560559-7db3-430d-b918-ceb5050a2b86} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 1181928 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_1_6_1/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 57 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:30:27.636164 [ 62325 ] {9617e780-ea4d-4552-8f51-62ee648c383a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578088 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59414) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:27.694342 [ 62325 ] {9617e780-ea4d-4552-8f51-62ee648c383a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578088 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:30.186813 [ 69177 ] {a9543647-927f-4918-839e-41ce389a1b4a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59416) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:30.246633 [ 69174 ] {b9ecde09-7bdb-43ac-9a94-b3e222e88fb8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2104416 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59422) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:30.304132 [ 69174 ] {b9ecde09-7bdb-43ac-9a94-b3e222e88fb8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2104416 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:30.375102 [ 69171 ] {ea5ba2e7-3a85-4d0e-b71d-ae0991d8158e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59418) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:30.611042 [ 69177 ] {a9543647-927f-4918-839e-41ce389a1b4a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:30.642727 [ 69171 ] {ea5ba2e7-3a85-4d0e-b71d-ae0991d8158e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:30.973350 [ 69173 ] {cf8b0b18-55f9-4a16-bca1-81f19acf8f52} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59444) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:31.029737 [ 69173 ] {cf8b0b18-55f9-4a16-bca1-81f19acf8f52} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:31.187292 [ 69179 ] {07d4df1c-768a-4872-a6bb-fb84cf232595} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59470) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:31.262848 [ 69179 ] {07d4df1c-768a-4872-a6bb-fb84cf232595} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:31.269065 [ 69172 ] {07cc09e5-1221-4ccd-8a74-cc749ba2f4be} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59432) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:31.342589 [ 69172 ] {07cc09e5-1221-4ccd-8a74-cc749ba2f4be} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:31.527686 [ 69180 ] {06a042e5-240d-4242-af54-01e6942e8379} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59466) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:31.610445 [ 69187 ] {b90ed98c-ba00-461d-974e-0bfe4397da87} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59478) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:31.667587 [ 69187 ] {b90ed98c-ba00-461d-974e-0bfe4397da87} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:31.722749 [ 69176 ] {b44b3f48-a0f2-4ce8-8f46-042de872778f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59472) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:31.820304 [ 69180 ] {06a042e5-240d-4242-af54-01e6942e8379} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:31.836009 [ 69176 ] {b44b3f48-a0f2-4ce8-8f46-042de872778f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:31.971191 [ 69175 ] {c04e2559-1674-44f2-9cd9-b3ef17b835cc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59460) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:32.015800 [ 69175 ] {c04e2559-1674-44f2-9cd9-b3ef17b835cc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:32.978896 [ 69183 ] {684e627a-b7c9-4439-b9ae-b447f0bd8b9c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50640) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:33.103642 [ 69183 ] {684e627a-b7c9-4439-b9ae-b447f0bd8b9c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:33.293128 [ 69182 ] {23da8a57-5184-4387-88ac-3995304ab471} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50676) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:33.353395 [ 69182 ] {23da8a57-5184-4387-88ac-3995304ab471} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:33.401731 [ 62433 ] {ca4f9d12-30c1-42c6-89cd-e40d6a021c1c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50660) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:33.486615 [ 62433 ] {ca4f9d12-30c1-42c6-89cd-e40d6a021c1c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:33.680037 [ 69181 ] {d11962da-c660-402a-b9ea-f5bac8308ae6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50642) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:33.844015 [ 69184 ] {55fb592e-0f07-4005-b1a9-b143b67174b2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50688) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:33.889929 [ 69181 ] {d11962da-c660-402a-b9ea-f5bac8308ae6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:33.905856 [ 69185 ] {89b6bb96-8eba-445b-baab-a29492176c8f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50650) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:34.154047 [ 69185 ] {89b6bb96-8eba-445b-baab-a29492176c8f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:34.158602 [ 69184 ] {55fb592e-0f07-4005-b1a9-b143b67174b2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:36.462342 [ 69186 ] {998b8b5f-4f22-4904-87f9-fdb049a96f0c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50698) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:36.642375 [ 69186 ] {998b8b5f-4f22-4904-87f9-fdb049a96f0c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:36.974357 [ 69177 ] {f9939cca-1405-4752-8939-3da9dc0c836c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50708) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:37.041511 [ 69177 ] {f9939cca-1405-4752-8939-3da9dc0c836c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:37.142054 [ 62325 ] {e1f739d4-0d03-4eed-8f70-5eea5930895f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50706) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:37.211207 [ 62325 ] {e1f739d4-0d03-4eed-8f70-5eea5930895f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:37.778044 [ 69171 ] {dff1183e-80a4-40a0-944a-0636f9d7a2fa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50716) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:37.836656 [ 69171 ] {dff1183e-80a4-40a0-944a-0636f9d7a2fa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:38.111120 [ 69174 ] {bd49ba61-b32c-42d5-8c5c-d500169a8ed5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50718) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:38.384284 [ 69174 ] {bd49ba61-b32c-42d5-8c5c-d500169a8ed5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:38.437273 [ 69172 ] {1df907b3-0033-4bd6-be88-143e6d1252cc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50734) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:38.448205 [ 69173 ] {a42e2bed-d9db-416a-83dd-85a4ad2d3ee4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2104110 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50724) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:38.522577 [ 69173 ] {a42e2bed-d9db-416a-83dd-85a4ad2d3ee4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2104110 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:38.522659 [ 69172 ] {1df907b3-0033-4bd6-be88-143e6d1252cc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:38.806185 [ 69179 ] {f4a2481d-340f-4cb0-b47b-c4e5f194fdd3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578440 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50754) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:38.860350 [ 69187 ] {e67fb16e-86d1-47a8-a6dd-87b487f5286a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50740) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:38.951125 [ 69179 ] {f4a2481d-340f-4cb0-b47b-c4e5f194fdd3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578440 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:39.011790 [ 69187 ] {e67fb16e-86d1-47a8-a6dd-87b487f5286a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:39.186470 [ 69180 ] {44023a19-2968-49d7-b4db-e46d7dcd759d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50760) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:39.257366 [ 69180 ] {44023a19-2968-49d7-b4db-e46d7dcd759d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:39.734380 [ 69176 ] {caf3bbc2-d468-41bf-be86-a7d2d8294e9a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50782) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:39.833150 [ 69175 ] {828e5dea-3c89-40f1-af5f-da5ee5e03a9b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50772) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:39.874460 [ 69176 ] {caf3bbc2-d468-41bf-be86-a7d2d8294e9a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:39.961188 [ 69175 ] {828e5dea-3c89-40f1-af5f-da5ee5e03a9b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:40.368318 [ 69181 ] {a7da08f0-3406-4d2d-8f75-ba842a14d7ab} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50792) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:40.552427 [ 69181 ] {a7da08f0-3406-4d2d-8f75-ba842a14d7ab} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:40.761869 [ 69178 ] {7c72ac20-b16f-4ec7-855c-52fa0fe5a4a1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50784) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:40.788131 [ 69183 ] {fb49ee17-3ec6-4f75-8a05-2bb54e545363} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50788) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:40.852567 [ 69178 ] {7c72ac20-b16f-4ec7-855c-52fa0fe5a4a1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:41.076815 [ 62433 ] {007dc130-7b24-4bbb-92d9-caf115cd72f9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50804) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:41.407778 [ 62433 ] {007dc130-7b24-4bbb-92d9-caf115cd72f9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:41.598984 [ 69183 ] {fb49ee17-3ec6-4f75-8a05-2bb54e545363} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:42.795533 [ 69184 ] {1bd9472f-9b88-4599-8e48-a9780e3918a9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35388) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:42.949587 [ 69184 ] {1bd9472f-9b88-4599-8e48-a9780e3918a9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:43.285501 [ 69186 ] {773d9fdc-0c6d-4991-87db-0ba722aaafd4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35392) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:43.414395 [ 69186 ] {773d9fdc-0c6d-4991-87db-0ba722aaafd4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:43.847921 [ 69177 ] {ce51fbcf-74f5-485f-b57e-1821bddf021b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2104204 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35404) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:44.107565 [ 69177 ] {ce51fbcf-74f5-485f-b57e-1821bddf021b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2104204 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:44.642822 [ 62325 ] {37d431e1-6fc0-431a-b2c9-f64b4c7f5ab9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35420) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:44.798536 [ 62325 ] {37d431e1-6fc0-431a-b2c9-f64b4c7f5ab9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:45.185586 [ 69171 ] {2ee36a13-cbfb-4a3f-8d19-58b0bfcbb18a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35430) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:45.252112 [ 69173 ] {c4fcb145-f9c6-41f1-be98-261c087e2ede} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35466) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:45.261511 [ 69171 ] {2ee36a13-cbfb-4a3f-8d19-58b0bfcbb18a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:45.263433 [ 69174 ] {90342597-2e42-4af2-885e-7ac5c1d8b04d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35434) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:45.311991 [ 69173 ] {c4fcb145-f9c6-41f1-be98-261c087e2ede} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:45.313600 [ 69174 ] {90342597-2e42-4af2-885e-7ac5c1d8b04d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:45.322255 [ 69185 ] {8065d4d9-b26b-4408-a477-b3bfac6b6fcb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35444) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:45.406969 [ 69185 ] {8065d4d9-b26b-4408-a477-b3bfac6b6fcb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:45.482835 [ 69187 ] {7c9c34a1-e802-411c-b462-274e3b6eec41} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102808 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35468) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:45.531103 [ 69172 ] {4bdf712c-0df1-4020-8756-8f10287f7b56} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35454) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:45.571465 [ 69187 ] {7c9c34a1-e802-411c-b462-274e3b6eec41} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102808 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:45.572975 [ 69172 ] {4bdf712c-0df1-4020-8756-8f10287f7b56} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:46.483104 [ 69180 ] {9ba8712d-83a4-49b2-8328-ea1defa00cf3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35484) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:46.626355 [ 69180 ] {9ba8712d-83a4-49b2-8328-ea1defa00cf3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:46.638331 [ 69175 ] {06373aca-ef5c-48ae-9055-f3dcd28a5b0c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35502) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:46.742279 [ 69176 ] {ba716396-109d-4197-8b47-35cdb1040679} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35492) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:46.819086 [ 69176 ] {ba716396-109d-4197-8b47-35cdb1040679} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:46.866962 [ 69175 ] {06373aca-ef5c-48ae-9055-f3dcd28a5b0c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:47.066624 [ 69181 ] {397749b0-ec86-48f6-88be-cfecfa334464} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35504) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:47.107371 [ 69181 ] {397749b0-ec86-48f6-88be-cfecfa334464} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:47.878306 [ 69178 ] {f6781589-ce84-4d64-a096-a349a7f4aba7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35514) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:47.959194 [ 69178 ] {f6781589-ce84-4d64-a096-a349a7f4aba7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:48.088153 [ 62433 ] {5b0888fc-9ec2-4f0e-b9d5-726a26778442} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35524) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:48.157740 [ 62433 ] {5b0888fc-9ec2-4f0e-b9d5-726a26778442} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:49.274811 [ 69183 ] {f39fd02a-8967-4226-8880-dc626456d568} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35534) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:49.343181 [ 69183 ] {f39fd02a-8967-4226-8880-dc626456d568} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:49.552861 [ 69184 ] {41b5824a-5889-49e0-ac35-32ae3b8bbb97} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35548) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:49.730432 [ 69184 ] {41b5824a-5889-49e0-ac35-32ae3b8bbb97} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:50.155692 [ 69186 ] {f15322e6-d052-4948-8981-5bffcefd7981} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35560) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:50.223320 [ 69186 ] {f15322e6-d052-4948-8981-5bffcefd7981} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:51.516471 [ 69177 ] {cd2ba0c1-dc23-464d-a7d5-e88639d60664} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103662 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35564) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:51.768005 [ 69177 ] {cd2ba0c1-dc23-464d-a7d5-e88639d60664} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103662 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:51.950156 [ 62325 ] {cd3a8b93-cff0-4614-a7e0-71091ae0c8ae} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35570) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:52.027306 [ 62325 ] {cd3a8b93-cff0-4614-a7e0-71091ae0c8ae} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:52.371736 [ 69171 ] {00025ad1-7673-40c4-bf45-0cbf19577a61} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35580) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:52.371821 [ 69179 ] {4a049649-3719-4dd6-bb4d-6d76bf50cd90} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35584) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:52.414666 [ 69173 ] {2ef5e914-cfc0-4afd-8a5b-0e266d3cddcd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35602) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:52.473358 [ 69185 ] {0bdf090f-6bf7-4dd6-8bbc-7f51fae46d49} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35616) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:52.478614 [ 69173 ] {2ef5e914-cfc0-4afd-8a5b-0e266d3cddcd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:52.535632 [ 69185 ] {0bdf090f-6bf7-4dd6-8bbc-7f51fae46d49} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:52.563620 [ 69179 ] {4a049649-3719-4dd6-bb4d-6d76bf50cd90} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:52.588786 [ 69171 ] {00025ad1-7673-40c4-bf45-0cbf19577a61} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:52.603320 [ 69174 ] {5a456c32-6da9-44cd-98ba-9f5d263570b5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35588) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:52.697136 [ 69174 ] {5a456c32-6da9-44cd-98ba-9f5d263570b5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:53.346123 [ 69172 ] {21a8dbf5-f914-44bf-bc61-000920d13692} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57778) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:53.416944 [ 69172 ] {21a8dbf5-f914-44bf-bc61-000920d13692} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:53.955297 [ 69187 ] {7173c064-791f-4461-a7f5-110eb16626c4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57794) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:54.026683 [ 69175 ] {6698fb94-0363-4955-a8f8-1c20e9f64b7a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57816) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:54.085941 [ 69187 ] {7173c064-791f-4461-a7f5-110eb16626c4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:54.117572 [ 69175 ] {6698fb94-0363-4955-a8f8-1c20e9f64b7a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:54.200585 [ 69182 ] {82d0dad6-6a5e-4057-8300-39557d08a63b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57810) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:54.352613 [ 69182 ] {82d0dad6-6a5e-4057-8300-39557d08a63b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:54.481903 [ 69178 ] {b1cc9b10-bf0d-41ab-a467-050dce6337a1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57844) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:54.872888 [ 69178 ] {b1cc9b10-bf0d-41ab-a467-050dce6337a1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:54.892268 [ 69176 ] {6c9f0e1d-5cf3-4410-8b74-db013ca5394c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 1182112 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_1_6_1/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 203 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57832) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:30:55.039957 [ 69176 ] {6c9f0e1d-5cf3-4410-8b74-db013ca5394c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 1182112 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_1_6_1/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 203 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:30:56.378713 [ 69181 ] {c834c9bb-d92a-49d7-bb49-257600847d85} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57854) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:30:56.436288 [ 69183 ] {936ae4f4-6886-444e-88fa-a62823cf6936} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57862) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:56.466551 [ 69181 ] {c834c9bb-d92a-49d7-bb49-257600847d85} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:30:56.511561 [ 69183 ] {936ae4f4-6886-444e-88fa-a62823cf6936} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:56.718693 [ 62433 ] {c27f2e97-3040-4819-9202-7021ff36efe2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57866) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:56.776519 [ 62433 ] {c27f2e97-3040-4819-9202-7021ff36efe2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:58.798962 [ 69186 ] {193b8ed9-dfc1-4a43-ab90-6e7cb76710dd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103032 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57872) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:58.951681 [ 69173 ] {62462b44-2d65-457f-976f-7f2f0a66fdfe} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57892) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:30:58.966505 [ 69186 ] {193b8ed9-dfc1-4a43-ab90-6e7cb76710dd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103032 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:59.018411 [ 69173 ] {62462b44-2d65-457f-976f-7f2f0a66fdfe} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:30:59.115867 [ 69184 ] {27c6ba8f-d73d-47d6-92bc-0d7756de1e91} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57870) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:59.128497 [ 69177 ] {a62f3c57-b4d4-4ccc-bef0-5f6fa30b0c1e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57890) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:59.161513 [ 69184 ] {27c6ba8f-d73d-47d6-92bc-0d7756de1e91} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:59.238705 [ 69177 ] {a62f3c57-b4d4-4ccc-bef0-5f6fa30b0c1e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:59.271466 [ 62325 ] {40a780b0-9f57-4bf5-ab84-4e958df99fbf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2103502 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57884) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:59.330403 [ 69171 ] {7d42885f-f866-4596-9c2b-142cf88c2bd5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57904) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:59.336329 [ 69180 ] {e2556264-ccd1-4052-8b70-493bec739c20} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57898) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:59.362511 [ 69171 ] {7d42885f-f866-4596-9c2b-142cf88c2bd5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:59.394421 [ 69180 ] {e2556264-ccd1-4052-8b70-493bec739c20} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:59.409076 [ 62325 ] {40a780b0-9f57-4bf5-ab84-4e958df99fbf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2103502 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:59.675712 [ 69174 ] {66668ca0-bf6f-4566-a908-cb08a28504dc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103320 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57910) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:30:59.749283 [ 69174 ] {66668ca0-bf6f-4566-a908-cb08a28504dc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103320 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:00.219011 [ 69179 ] {2af88982-e12e-41b3-8efa-f9d7c7235437} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57928) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:00.311495 [ 69179 ] {2af88982-e12e-41b3-8efa-f9d7c7235437} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:00.334378 [ 69187 ] {050ae99f-3fd5-468c-9d67-7613c662eac1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57942) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:00.409595 [ 69172 ] {de831dd0-cd09-4207-9221-7543b8b453be} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57920) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:00.433697 [ 69187 ] {050ae99f-3fd5-468c-9d67-7613c662eac1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:00.485609 [ 69172 ] {de831dd0-cd09-4207-9221-7543b8b453be} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:01.202179 [ 69175 ] {67421e60-d3ef-40a8-98e2-97e36ab04268} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57956) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:01.346626 [ 69175 ] {67421e60-d3ef-40a8-98e2-97e36ab04268} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:02.176633 [ 69182 ] {584c425c-14f8-409f-9329-f08a2ad98cb5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57954) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:02.295675 [ 69182 ] {584c425c-14f8-409f-9329-f08a2ad98cb5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:03.086843 [ 69176 ] {71e46e31-9552-4581-8128-83834e15bdba} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103080 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57966) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:03.093154 [ 69181 ] {6ed38e7f-d2a2-4b7a-8abc-86df27ea96c5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51298) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:03.182206 [ 69181 ] {6ed38e7f-d2a2-4b7a-8abc-86df27ea96c5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:03.221833 [ 69176 ] {71e46e31-9552-4581-8128-83834e15bdba} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103080 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:03.819484 [ 69178 ] {c525ba77-413e-43dc-b53e-c9f3a146b6c0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57968) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:03.879888 [ 69178 ] {c525ba77-413e-43dc-b53e-c9f3a146b6c0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:05.410673 [ 62433 ] {25ce2911-9d90-423e-be1d-2ec3a30b3177} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51316) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:05.508245 [ 62433 ] {25ce2911-9d90-423e-be1d-2ec3a30b3177} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:05.822673 [ 69183 ] {fdce5300-177c-464e-b7a4-2e5f0f150144} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51310) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:05.895794 [ 69173 ] {a3756d78-b156-4bc5-b9d9-64cd39b70f3b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51372) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:05.922413 [ 69186 ] {7259a82e-a0a8-4c02-b257-53875e94d3c5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51318) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:05.930883 [ 69183 ] {fdce5300-177c-464e-b7a4-2e5f0f150144} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:05.964024 [ 69186 ] {7259a82e-a0a8-4c02-b257-53875e94d3c5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:05.969828 [ 69177 ] {57462261-f7f1-41a3-896e-ff81716af2df} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51346) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:05.984492 [ 69171 ] {163e81e6-72b6-4d6a-9023-4b5c13659bb9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51360) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:05.989240 [ 69173 ] {a3756d78-b156-4bc5-b9d9-64cd39b70f3b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:06.066959 [ 69177 ] {57462261-f7f1-41a3-896e-ff81716af2df} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:06.112811 [ 69184 ] {bf59ecf1-5955-4ea0-8113-f1cf9463eee8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51330) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:06.116542 [ 69171 ] {163e81e6-72b6-4d6a-9023-4b5c13659bb9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:06.160839 [ 69184 ] {bf59ecf1-5955-4ea0-8113-f1cf9463eee8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:06.458161 [ 69185 ] {fe43259b-38f9-4eac-8a2d-8ac22ab5d16d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51400) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:06.516746 [ 69185 ] {fe43259b-38f9-4eac-8a2d-8ac22ab5d16d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:06.591005 [ 62325 ] {0f3af31c-19a6-4b35-aeb3-498ef7e79911} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51386) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:06.859018 [ 62325 ] {0f3af31c-19a6-4b35-aeb3-498ef7e79911} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:06.981654 [ 69187 ] {927d4470-bb53-4a30-b620-301e40bc7809} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51416) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:07.099474 [ 69187 ] {927d4470-bb53-4a30-b620-301e40bc7809} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:07.667620 [ 69180 ] {30e73568-871f-4f08-ae7c-73acb3747cbe} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51394) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:07.772514 [ 69180 ] {30e73568-871f-4f08-ae7c-73acb3747cbe} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:07.818644 [ 69172 ] {623fd75e-a4ee-490e-b0fb-ca67e73b040e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51426) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:07.950394 [ 69172 ] {623fd75e-a4ee-490e-b0fb-ca67e73b040e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:08.903644 [ 69175 ] {d3932cb9-4c01-4434-8b0e-d9a53fd22092} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51438) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:08.972438 [ 69175 ] {d3932cb9-4c01-4434-8b0e-d9a53fd22092} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:10.264326 [ 69181 ] {745bec8f-3b1e-458e-a465-c4fe24741da4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51454) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:10.378604 [ 69181 ] {745bec8f-3b1e-458e-a465-c4fe24741da4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:10.396514 [ 69176 ] {c744f7f7-4790-4cf0-bf48-1883dc04be12} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51466) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:10.421787 [ 69182 ] {d6d61e76-68bd-47bc-b7b9-0d120cd68334} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51448) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:10.491073 [ 69182 ] {d6d61e76-68bd-47bc-b7b9-0d120cd68334} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:10.609777 [ 69176 ] {c744f7f7-4790-4cf0-bf48-1883dc04be12} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:12.248933 [ 62433 ] {aed34804-729b-4829-a861-8af9b00e776d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51484) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:12.313239 [ 69183 ] {a8b250df-ec1d-4ef2-86f2-1c1adb3aa8ae} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51486) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:12.316594 [ 62433 ] {aed34804-729b-4829-a861-8af9b00e776d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:12.449069 [ 69178 ] {3f6b24eb-1975-4ec6-85cf-7eb7811b8179} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51468) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:12.483636 [ 69183 ] {a8b250df-ec1d-4ef2-86f2-1c1adb3aa8ae} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:12.598030 [ 69178 ] {3f6b24eb-1975-4ec6-85cf-7eb7811b8179} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:12.962365 [ 69173 ] {06be1aca-b2c7-4020-be46-bb56c21388e0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51518) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:12.965636 [ 69184 ] {cf9277dd-b7bd-488e-bb4d-fbc619c62063} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51526) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:13.079301 [ 69177 ] {e24406b8-5cd5-40d6-a06e-4fb2b487c97b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51516) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:13.088608 [ 69173 ] {06be1aca-b2c7-4020-be46-bb56c21388e0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:13.165083 [ 69177 ] {e24406b8-5cd5-40d6-a06e-4fb2b487c97b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:13.180498 [ 69184 ] {cf9277dd-b7bd-488e-bb4d-fbc619c62063} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:14.119816 [ 69185 ] {2b3dd2e9-2f0e-45bf-9d0e-2918e5f9e5b5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45144) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:14.203211 [ 69185 ] {2b3dd2e9-2f0e-45bf-9d0e-2918e5f9e5b5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:14.958507 [ 69187 ] {c36d5cb1-80a6-45dd-977a-c9dd85384c71} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45162) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:15.050554 [ 69187 ] {c36d5cb1-80a6-45dd-977a-c9dd85384c71} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:15.155902 [ 62325 ] {db456866-1171-4fc3-9826-aa5fca21d584} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45158) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:31:15.182180 [ 69180 ] {74ee898a-7926-4289-ab0d-0e70faa58bbc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45168) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:15.223564 [ 62325 ] {db456866-1171-4fc3-9826-aa5fca21d584} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:31:15.238724 [ 69180 ] {74ee898a-7926-4289-ab0d-0e70faa58bbc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:16.764751 [ 69172 ] {96fbf996-11ac-44e8-a572-9c25273e5c06} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102888 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45184) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:16.839567 [ 69172 ] {96fbf996-11ac-44e8-a572-9c25273e5c06} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102888 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:17.462420 [ 69171 ] {36d5928e-2137-4ca4-b110-ec9a0a6aeb6d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45204) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:17.528028 [ 69171 ] {36d5928e-2137-4ca4-b110-ec9a0a6aeb6d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:17.928590 [ 69181 ] {3de3d98d-69e8-4242-b61e-5e5252f87188} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45194) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:17.996576 [ 69181 ] {3de3d98d-69e8-4242-b61e-5e5252f87188} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:18.148155 [ 69175 ] {ec16376e-b78a-4988-9d59-c8b2a07e3321} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45192) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:18.330844 [ 69175 ] {ec16376e-b78a-4988-9d59-c8b2a07e3321} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:18.797890 [ 69182 ] {1103c3b0-89b8-4a23-9505-d8fe63dac0cb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45208) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:18.919819 [ 69182 ] {1103c3b0-89b8-4a23-9505-d8fe63dac0cb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:19.170413 [ 69176 ] {c539adf9-a74a-4f5d-b420-bf5ca2d4caea} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45210) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:19.244130 [ 69176 ] {c539adf9-a74a-4f5d-b420-bf5ca2d4caea} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:19.370971 [ 69183 ] {cfca095b-def4-469b-98e6-0fc66938c294} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.52 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45226) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:19.399626 [ 69183 ] {cfca095b-def4-469b-98e6-0fc66938c294} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.52 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:19.710296 [ 69177 ] {4602a36c-5d4e-4aa1-9ed4-35b2bc0c43e9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45264) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:19.725226 [ 69178 ] {522b90e5-e58c-42a3-8aed-71e2f786b440} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.01 MiB (attempt to allocate chunk of 2102424 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45240) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:19.798017 [ 69177 ] {4602a36c-5d4e-4aa1-9ed4-35b2bc0c43e9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:19.803783 [ 69178 ] {522b90e5-e58c-42a3-8aed-71e2f786b440} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.01 MiB (attempt to allocate chunk of 2102424 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:19.855293 [ 62433 ] {fdfac389-46ed-4f2d-8d88-debfbe7cb510} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45254) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:19.920140 [ 62433 ] {fdfac389-46ed-4f2d-8d88-debfbe7cb510} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:20.740030 [ 69184 ] {dac0f88e-437c-438d-b6bf-f40deebff485} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45272) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:20.830326 [ 69184 ] {dac0f88e-437c-438d-b6bf-f40deebff485} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:21.144956 [ 69185 ] {b3cb1932-01d2-409b-b725-d6467919c33a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45282) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:21.204615 [ 69185 ] {b3cb1932-01d2-409b-b725-d6467919c33a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:21.299172 [ 69179 ] {303590af-1502-4103-ab86-827218ceb71a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45302) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:21.377490 [ 69179 ] {303590af-1502-4103-ab86-827218ceb71a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:21.850303 [ 69173 ] {449281bc-85b5-4ba7-8ba4-69c035172e41} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45300) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:22.100396 [ 69173 ] {449281bc-85b5-4ba7-8ba4-69c035172e41} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:22.326410 [ 62325 ] {742026f2-14e2-4c61-a9b3-37048996db45} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35192) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:22.337816 [ 69174 ] {bf3aedba-b778-4ca5-84c3-02cd2dda87eb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 54.01 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_1_6_1/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 405 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51498) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:31:22.376274 [ 62325 ] {742026f2-14e2-4c61-a9b3-37048996db45} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:22.442861 [ 69174 ] {bf3aedba-b778-4ca5-84c3-02cd2dda87eb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 54.01 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_1_6_1/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 405 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:31:22.799130 [ 69180 ] {f3647aee-d0d5-4915-9998-802d80c21084} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35204) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:23.064675 [ 69180 ] {f3647aee-d0d5-4915-9998-802d80c21084} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:23.353765 [ 69172 ] {6d374b0c-91b7-498e-94ba-9640720a9b47} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35220) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:23.459010 [ 69172 ] {6d374b0c-91b7-498e-94ba-9640720a9b47} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:24.084103 [ 69186 ] {19cfe94c-1c20-430c-ab18-131b6874530e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.76 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_1_6_1/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 174 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51510) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:31:24.091006 [ 69187 ] {642920bc-6d23-4159-82b0-08c11531f562} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35234) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:24.135645 [ 69187 ] {642920bc-6d23-4159-82b0-08c11531f562} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:24.151044 [ 69186 ] {19cfe94c-1c20-430c-ab18-131b6874530e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.76 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_1_6_1/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 174 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:31:25.080587 [ 69175 ] {886a8d88-44d0-4c68-a155-4236854c45b7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35248) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:25.148577 [ 69175 ] {886a8d88-44d0-4c68-a155-4236854c45b7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:25.520627 [ 69182 ] {bb01d993-c1c2-4a82-b3fe-0843a88685a1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35262) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:25.565184 [ 69182 ] {bb01d993-c1c2-4a82-b3fe-0843a88685a1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:25.762868 [ 69183 ] {e1153cdb-2a1a-4909-875b-715fad11c0e4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35294) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:25.839634 [ 69183 ] {e1153cdb-2a1a-4909-875b-715fad11c0e4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:26.022792 [ 69176 ] {d81fc3a3-23b0-420d-b4bb-6cc3309594d0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35272) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:26.028384 [ 69178 ] {8ce7d2ff-2f9d-405a-b0ee-46c885ee5ebd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35300) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:26.126048 [ 69176 ] {d81fc3a3-23b0-420d-b4bb-6cc3309594d0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:26.184164 [ 69178 ] {8ce7d2ff-2f9d-405a-b0ee-46c885ee5ebd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:26.258526 [ 69181 ] {e05f40ad-8158-4bc5-9e32-fba224b0736f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35278) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:26.280227 [ 69181 ] {e05f40ad-8158-4bc5-9e32-fba224b0736f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:27.348369 [ 62433 ] {01917a83-9541-43e1-b23a-265ec8282dbb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35306) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:27.430259 [ 62433 ] {01917a83-9541-43e1-b23a-265ec8282dbb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:27.889498 [ 69184 ] {30f31bd5-c005-4c09-b934-cfaf3c51e989} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35322) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:27.983978 [ 69185 ] {963405f8-bd5d-4489-936f-922def170726} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35332) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:27.989022 [ 69184 ] {30f31bd5-c005-4c09-b934-cfaf3c51e989} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:28.181748 [ 69185 ] {963405f8-bd5d-4489-936f-922def170726} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:28.849791 [ 62325 ] {f54fca61-537b-4325-a167-65b06d13db39} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103612 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35372) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:28.922815 [ 62325 ] {f54fca61-537b-4325-a167-65b06d13db39} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103612 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:29.080043 [ 69179 ] {345b7cff-29bf-4ed2-bc78-1d3a300256d6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103502 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35344) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:29.330893 [ 69179 ] {345b7cff-29bf-4ed2-bc78-1d3a300256d6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103502 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:29.527788 [ 69173 ] {034511d5-ea69-45f0-bf23-c7b5a2c20a36} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35356) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:29.671977 [ 69173 ] {034511d5-ea69-45f0-bf23-c7b5a2c20a36} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:29.961864 [ 69177 ] {df036789-2ea6-4e56-bd0b-a51103641986} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35382) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:30.160269 [ 69177 ] {df036789-2ea6-4e56-bd0b-a51103641986} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:30.378639 [ 69180 ] {68c1e0f1-3716-4189-baa2-6dfa2d0d3a1d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35384) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:30.425704 [ 69180 ] {68c1e0f1-3716-4189-baa2-6dfa2d0d3a1d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:30.429837 [ 69172 ] {aea7e768-0a69-4fc8-9de4-e9d869ef3f2f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35394) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:30.509746 [ 69172 ] {aea7e768-0a69-4fc8-9de4-e9d869ef3f2f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:30.963040 [ 69187 ] {9136fa6e-2ff1-4e22-bc7d-74ee9c6b1e6b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35404) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:31.006829 [ 69187 ] {9136fa6e-2ff1-4e22-bc7d-74ee9c6b1e6b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:31.446408 [ 69186 ] {7ffb7339-801e-4eb6-810a-e6ee66ead718} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102910 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35414) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:31.519259 [ 69186 ] {7ffb7339-801e-4eb6-810a-e6ee66ead718} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102910 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:32.390225 [ 69182 ] {f0dea31b-f1a9-4f4c-a8e4-cde7263fffdf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35438) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:32.401965 [ 69183 ] {3f1196fb-8225-4ce1-948f-4bb258df9eb7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35448) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:32.426326 [ 69178 ] {d26b59eb-b19b-418e-9ced-a86e5df91619} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35466) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:32.433292 [ 69175 ] {d3a2604a-ba8e-4fe1-811b-5302e4dff9e0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35430) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:32.551552 [ 69175 ] {d3a2604a-ba8e-4fe1-811b-5302e4dff9e0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:32.559650 [ 69176 ] {36520976-b1fa-460a-ac02-6d665dadef3d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35464) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:32.583060 [ 69178 ] {d26b59eb-b19b-418e-9ced-a86e5df91619} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:32.584115 [ 69183 ] {3f1196fb-8225-4ce1-948f-4bb258df9eb7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:32.696689 [ 69176 ] {36520976-b1fa-460a-ac02-6d665dadef3d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:32.767110 [ 69182 ] {f0dea31b-f1a9-4f4c-a8e4-cde7263fffdf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:34.951793 [ 69184 ] {4f458517-f6d9-4fd9-a05f-7b8d962cd13c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45454) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:35.151173 [ 69184 ] {4f458517-f6d9-4fd9-a05f-7b8d962cd13c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:35.230426 [ 62433 ] {6264ccae-aae7-40dc-b2c5-c9f8535517b2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45448) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:35.313731 [ 62433 ] {6264ccae-aae7-40dc-b2c5-c9f8535517b2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:36.026620 [ 69185 ] {5a8c3bf9-6e86-4daf-9e89-c9fc51b3f462} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45456) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:36.094755 [ 69185 ] {5a8c3bf9-6e86-4daf-9e89-c9fc51b3f462} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:36.130768 [ 69171 ] {1d0568f8-5295-455c-88e7-fc544bb7784e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45466) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:36.254098 [ 69171 ] {1d0568f8-5295-455c-88e7-fc544bb7784e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:36.915143 [ 69174 ] {e67bcec0-bfe8-4455-9bdf-5f63114af3c3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103272 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45476) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:36.997263 [ 69174 ] {e67bcec0-bfe8-4455-9bdf-5f63114af3c3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103272 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:37.351125 [ 69173 ] {5cc2f60d-407b-4ca5-98c3-2d639d392dbd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45478) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:37.358658 [ 69179 ] {b078063e-4299-4f20-a47b-19f7a2a10b37} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45488) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:37.402895 [ 69173 ] {5cc2f60d-407b-4ca5-98c3-2d639d392dbd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:37.436570 [ 62325 ] {d3567e9d-5f3d-4c64-bda7-94d406e1e9bf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45504) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:37.591406 [ 62325 ] {d3567e9d-5f3d-4c64-bda7-94d406e1e9bf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:37.642193 [ 69179 ] {b078063e-4299-4f20-a47b-19f7a2a10b37} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:38.170414 [ 69180 ] {d8868fba-96ad-43cd-9e8c-a1b947907442} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45506) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:38.274033 [ 69180 ] {d8868fba-96ad-43cd-9e8c-a1b947907442} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:39.257577 [ 69172 ] {51a5354c-3814-4eed-8864-a376598a5a0d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 2103336 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45522) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:39.371605 [ 69172 ] {51a5354c-3814-4eed-8864-a376598a5a0d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 2103336 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:39.499539 [ 69187 ] {5c44dc9d-de56-4f60-b7aa-0314d3a235e1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45532) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:39.591359 [ 69175 ] {662c2964-18c0-4831-9956-55e0a004090f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45546) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:39.639692 [ 69175 ] {662c2964-18c0-4831-9956-55e0a004090f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:39.722942 [ 69187 ] {5c44dc9d-de56-4f60-b7aa-0314d3a235e1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:39.758293 [ 69186 ] {d40c4860-0eaa-4d31-9919-beef5da063d2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45560) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:39.852258 [ 69178 ] {4fbaba50-05e2-4f08-b136-fb7d2ba40d6c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45570) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:39.859215 [ 69186 ] {d40c4860-0eaa-4d31-9919-beef5da063d2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:40.135751 [ 69178 ] {4fbaba50-05e2-4f08-b136-fb7d2ba40d6c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:40.204467 [ 69176 ] {5b5bf205-f468-4e59-9095-0fee7751744c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103080 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45584) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:40.320306 [ 69176 ] {5b5bf205-f468-4e59-9095-0fee7751744c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103080 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:42.120476 [ 69182 ] {82010b65-9071-42e8-afc5-a22e959331b5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45588) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:42.129647 [ 69183 ] {c66ebc20-4f28-4453-a1cf-2079bc72615d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45596) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:42.202991 [ 69183 ] {c66ebc20-4f28-4453-a1cf-2079bc72615d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:42.208859 [ 69182 ] {82010b65-9071-42e8-afc5-a22e959331b5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:42.863327 [ 62433 ] {7ad431c6-3aac-42fb-aad1-75c2f2d98168} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45606) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:43.034180 [ 69185 ] {d63e3a88-563c-4ec6-808c-19b52058aedf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45614) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:43.083540 [ 62433 ] {7ad431c6-3aac-42fb-aad1-75c2f2d98168} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:43.110056 [ 69171 ] {89f830a3-267f-4d4d-b871-14a026f324e4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46202) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:43.196555 [ 69185 ] {d63e3a88-563c-4ec6-808c-19b52058aedf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:43.259897 [ 69171 ] {89f830a3-267f-4d4d-b871-14a026f324e4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:44.015267 [ 69173 ] {b24e571d-987d-4857-9c02-fb714aa118a0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46224) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:44.015346 [ 69179 ] {9cbd0567-d1f1-416f-999c-cbb6ad792dc1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46236) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:44.018659 [ 69174 ] {6504c211-2d50-4741-b2c1-b4e305ddbcbc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46210) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:44.105034 [ 69173 ] {b24e571d-987d-4857-9c02-fb714aa118a0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:44.123276 [ 69179 ] {9cbd0567-d1f1-416f-999c-cbb6ad792dc1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:44.179018 [ 62325 ] {e5b68f9b-7337-4ad0-9217-c7abdf380fd2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46230) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:44.381962 [ 69174 ] {6504c211-2d50-4741-b2c1-b4e305ddbcbc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:44.396731 [ 62325 ] {e5b68f9b-7337-4ad0-9217-c7abdf380fd2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:45.433463 [ 69180 ] {5f11b66d-c4eb-4521-a54c-3f18ff822d7e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46240) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:45.481191 [ 69172 ] {3fdf52cc-1d9e-4d7e-bea6-a183f664e616} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46248) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:45.501196 [ 69180 ] {5f11b66d-c4eb-4521-a54c-3f18ff822d7e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:45.615383 [ 69172 ] {3fdf52cc-1d9e-4d7e-bea6-a183f664e616} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:45.868071 [ 69187 ] {f0414478-10ef-486f-beb3-3ad2703a585c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46268) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:45.907291 [ 69175 ] {4101565c-3b8e-4007-939d-ebbd03b30229} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46258) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:45.965482 [ 69187 ] {f0414478-10ef-486f-beb3-3ad2703a585c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:45.981992 [ 69184 ] {f115730a-05b5-4d69-941e-dbeb8d75d212} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46272) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:46.032136 [ 69175 ] {4101565c-3b8e-4007-939d-ebbd03b30229} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:46.054291 [ 69181 ] {c55b56a0-9857-4dc2-bab2-74cf7c00b0fc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.76 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_7_7_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45442) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:31:46.212689 [ 69184 ] {f115730a-05b5-4d69-941e-dbeb8d75d212} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:46.478297 [ 69181 ] {c55b56a0-9857-4dc2-bab2-74cf7c00b0fc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.76 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_7_7_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:31:46.775592 [ 69178 ] {27b63f56-12b6-48ec-ad65-89f3d8546674} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46276) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:46.836772 [ 69178 ] {27b63f56-12b6-48ec-ad65-89f3d8546674} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:48.384872 [ 69186 ] {cc101a25-93f0-46cd-b2ff-ac9e92fbb550} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46288) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:48.482704 [ 69176 ] {29727571-5238-4583-b01f-01fdb6a935f6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46278) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:48.578187 [ 69186 ] {cc101a25-93f0-46cd-b2ff-ac9e92fbb550} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:48.769201 [ 69176 ] {29727571-5238-4583-b01f-01fdb6a935f6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:49.565745 [ 69182 ] {b4185f62-a132-4b50-958a-a8c9d84207d4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46296) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:49.692916 [ 69182 ] {b4185f62-a132-4b50-958a-a8c9d84207d4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:49.746041 [ 69185 ] {356b243e-a54d-40c3-8011-bba4f92ca1cf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46312) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:49.794372 [ 69185 ] {356b243e-a54d-40c3-8011-bba4f92ca1cf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:49.913912 [ 69183 ] {d4e9f4ec-bc39-46c3-af2a-f20665bfad71} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46304) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:50.022528 [ 69183 ] {d4e9f4ec-bc39-46c3-af2a-f20665bfad71} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:50.477941 [ 69174 ] {7c5a86e2-2f59-447f-b38e-03ab912b2c58} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46358) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:50.549119 [ 69174 ] {7c5a86e2-2f59-447f-b38e-03ab912b2c58} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:50.859078 [ 69177 ] {04bf8826-d2ee-4db8-962c-57ba0353621a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578136 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46340) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:50.922321 [ 69177 ] {04bf8826-d2ee-4db8-962c-57ba0353621a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578136 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:51.026350 [ 62433 ] {136d28b3-ea89-47c6-ab7b-2139ce38bfe7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46324) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:51.078644 [ 62433 ] {136d28b3-ea89-47c6-ab7b-2139ce38bfe7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:51.221023 [ 69171 ] {202cf124-8794-4d08-981c-3a6487d4192f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46348) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:51.323967 [ 69171 ] {202cf124-8794-4d08-981c-3a6487d4192f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:52.474424 [ 69179 ] {4cefa644-ec3a-4706-8413-bc736b9af681} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46384) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:52.623590 [ 69179 ] {4cefa644-ec3a-4706-8413-bc736b9af681} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:52.804034 [ 69173 ] {f88e1332-6521-4795-b1e0-e71f7227a56f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46372) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:52.911480 [ 69173 ] {f88e1332-6521-4795-b1e0-e71f7227a56f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:52.972391 [ 62325 ] {529e5f1e-8271-4555-a53e-3a15a5f2ecc4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46396) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:53.040238 [ 62325 ] {529e5f1e-8271-4555-a53e-3a15a5f2ecc4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:53.088522 [ 69172 ] {794a86be-dec3-482b-926d-56f80782ab9f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46416) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:53.130728 [ 69187 ] {e020d9da-a38e-494e-b7ce-ca0784e9f377} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46418) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:53.145583 [ 69172 ] {794a86be-dec3-482b-926d-56f80782ab9f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:53.174876 [ 69180 ] {89e70e6e-e1eb-49d6-bfc0-e4cde7685caa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2104204 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46406) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:53.246351 [ 69180 ] {89e70e6e-e1eb-49d6-bfc0-e4cde7685caa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2104204 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:53.268431 [ 69187 ] {e020d9da-a38e-494e-b7ce-ca0784e9f377} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:54.391363 [ 69175 ] {9c4755e0-3276-4c1e-bdba-96db53359d64} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60924) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:54.876231 [ 69178 ] {50cf9bac-a2ed-4518-bbd0-f33d85ce0067} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60934) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:55.009174 [ 69178 ] {50cf9bac-a2ed-4518-bbd0-f33d85ce0067} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:55.076206 [ 69181 ] {335ac574-5ce2-4d16-8e72-fd4b8d59ed96} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60936) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:55.204931 [ 69175 ] {9c4755e0-3276-4c1e-bdba-96db53359d64} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:55.536208 [ 69181 ] {335ac574-5ce2-4d16-8e72-fd4b8d59ed96} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:56.502512 [ 69182 ] {42778c8f-5e06-4d7d-9100-8171d6b71c85} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60960) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:56.588164 [ 69183 ] {93dc08ca-d0a5-4e08-99cd-eca3478f15fc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60964) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:56.719991 [ 69183 ] {93dc08ca-d0a5-4e08-99cd-eca3478f15fc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:56.791106 [ 69182 ] {42778c8f-5e06-4d7d-9100-8171d6b71c85} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:56.906579 [ 69176 ] {a95e7094-2770-4196-a02f-9089b8affb85} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60950) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:56.958443 [ 69185 ] {8aa3a747-3e3c-4bb8-8a42-af1322fc6011} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60962) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:56.962653 [ 69177 ] {b29799bb-2350-4f84-8934-d88bb2cd64c0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60980) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:57.016340 [ 62433 ] {b2d0c5c6-ad9c-48ef-97af-e7a57e609b17} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60990) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:57.019753 [ 69176 ] {a95e7094-2770-4196-a02f-9089b8affb85} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:57.092721 [ 62433 ] {b2d0c5c6-ad9c-48ef-97af-e7a57e609b17} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:57.151915 [ 69185 ] {8aa3a747-3e3c-4bb8-8a42-af1322fc6011} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:57.162331 [ 69177 ] {b29799bb-2350-4f84-8934-d88bb2cd64c0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:57.265598 [ 69174 ] {e6a841d6-ad25-4e82-a4c5-e9806f8c7b41} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60966) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:57.410192 [ 69174 ] {e6a841d6-ad25-4e82-a4c5-e9806f8c7b41} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:58.949559 [ 69179 ] {94677f85-833e-485e-84ee-29ea522b0504} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:32768) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:31:59.027345 [ 69179 ] {94677f85-833e-485e-84ee-29ea522b0504} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:31:59.349409 [ 69171 ] {38899353-3874-45a2-ae8b-306692d03509} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60996) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:31:59.581957 [ 69180 ] {ba71c63c-8a5a-4112-a173-216ec7dae15d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.52 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:32802) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:59.634323 [ 69180 ] {ba71c63c-8a5a-4112-a173-216ec7dae15d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.52 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:31:59.774077 [ 69171 ] {38899353-3874-45a2-ae8b-306692d03509} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:31:59.834249 [ 62325 ] {35078f3a-e793-4b1e-a41d-858a311e5467} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:32788) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:00.063465 [ 69184 ] {e78eb4ad-f891-4383-a23e-6dd85a6566ff} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:32800) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:00.124912 [ 62325 ] {35078f3a-e793-4b1e-a41d-858a311e5467} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:00.298187 [ 69184 ] {e78eb4ad-f891-4383-a23e-6dd85a6566ff} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:01.702706 [ 69172 ] {526f0a90-fa6e-474e-8e97-48db0a9ff08f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:32814) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:01.943058 [ 69172 ] {526f0a90-fa6e-474e-8e97-48db0a9ff08f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:02.131788 [ 69187 ] {f865d511-df95-40f1-9e15-0b055b6fe3d4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:32818) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:02.191548 [ 69175 ] {3cde746b-afd0-4e69-9b41-8f475de268f4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:32822) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:02.383762 [ 69187 ] {f865d511-df95-40f1-9e15-0b055b6fe3d4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:02.430309 [ 69175 ] {3cde746b-afd0-4e69-9b41-8f475de268f4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:03.502339 [ 69185 ] {8824916e-c817-4d02-bea9-c3a50a97a724} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51050) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:03.533453 [ 69181 ] {7557b472-4e01-45b0-900e-dec4ddaf0308} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51010) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:03.579605 [ 69181 ] {7557b472-4e01-45b0-900e-dec4ddaf0308} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:03.579663 [ 69185 ] {8824916e-c817-4d02-bea9-c3a50a97a724} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:03.754224 [ 69178 ] {a07b0d5e-a971-4f7c-ac42-b657e9b644c7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51000) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:03.773610 [ 69183 ] {7f066029-6e9b-40f3-aeb9-e69c403b9f8c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51034) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:03.786257 [ 69186 ] {949edb9d-05fd-4a0f-935d-5ad87e6b53fe} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51048) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:03.791781 [ 69178 ] {a07b0d5e-a971-4f7c-ac42-b657e9b644c7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:03.830055 [ 69183 ] {7f066029-6e9b-40f3-aeb9-e69c403b9f8c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:03.836402 [ 69186 ] {949edb9d-05fd-4a0f-935d-5ad87e6b53fe} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:03.842539 [ 69182 ] {4ce2fb36-26a5-41c4-a1bf-ef18b8fdc0a5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51022) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:03.900591 [ 69182 ] {4ce2fb36-26a5-41c4-a1bf-ef18b8fdc0a5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:03.949024 [ 62433 ] {cdea77f0-b903-4f5d-8896-9e895d17ebbf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51056) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:04.084807 [ 62433 ] {cdea77f0-b903-4f5d-8896-9e895d17ebbf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:05.855436 [ 69179 ] {3fab1882-cc4d-4619-a545-30d149566350} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51086) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:05.940694 [ 69177 ] {23564c8d-e998-4b4d-9154-b8e3acb2f52d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51068) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:05.967198 [ 69179 ] {3fab1882-cc4d-4619-a545-30d149566350} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:06.051719 [ 69177 ] {23564c8d-e998-4b4d-9154-b8e3acb2f52d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:06.098719 [ 69174 ] {b930d8e2-1230-4b60-ad4a-0f3cc46127e7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51082) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:32:06.099755 [ 62325 ] {b620f71f-5327-4f56-9f73-773ab74a35c1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51104) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:06.273980 [ 69174 ] {b930d8e2-1230-4b60-ad4a-0f3cc46127e7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:32:06.385694 [ 62325 ] {b620f71f-5327-4f56-9f73-773ab74a35c1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:07.898685 [ 69180 ] {587b37e7-1916-453c-a602-0d61aa6a5177} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51110) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:07.988327 [ 69180 ] {587b37e7-1916-453c-a602-0d61aa6a5177} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:08.601300 [ 69172 ] {bc58b846-c734-4136-b3bc-dfb9029146a7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51124) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:08.639895 [ 69187 ] {d2f61ddb-9ab1-432c-a686-46977b58bf2a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51134) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:08.697054 [ 69187 ] {d2f61ddb-9ab1-432c-a686-46977b58bf2a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:08.750757 [ 69172 ] {bc58b846-c734-4136-b3bc-dfb9029146a7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:09.359777 [ 69173 ] {66079fab-e5ae-4a2c-8de8-65ed371d3a5c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.74 MiB (attempt to allocate chunk of 1181592 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:32784) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:32:09.449955 [ 69176 ] {b23d7221-48e5-4b5e-bead-543c1669b002} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51146) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:09.497603 [ 69173 ] {66079fab-e5ae-4a2c-8de8-65ed371d3a5c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.74 MiB (attempt to allocate chunk of 1181592 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:32:09.543749 [ 69176 ] {b23d7221-48e5-4b5e-bead-543c1669b002} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:09.741612 [ 69185 ] {f4a43380-18d5-4845-a10b-34f92e46ecc3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51156) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:09.760271 [ 69183 ] {3433cf87-2a74-4b01-a14a-2ffc4ed568d0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51168) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:09.806259 [ 69185 ] {f4a43380-18d5-4845-a10b-34f92e46ecc3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:09.819467 [ 69175 ] {14eedf48-c36d-4079-94ca-fa5927023ca8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51144) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:09.826209 [ 69183 ] {3433cf87-2a74-4b01-a14a-2ffc4ed568d0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:09.868093 [ 69181 ] {666be3d4-222b-4b32-83af-707a109af507} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51166) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:09.897088 [ 69175 ] {14eedf48-c36d-4079-94ca-fa5927023ca8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:09.901967 [ 69178 ] {93c28a16-0fb1-46e9-ae48-60d19d12e2c7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51160) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:09.909062 [ 69181 ] {666be3d4-222b-4b32-83af-707a109af507} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:09.955990 [ 69182 ] {22ffaa7a-3f15-4df0-bbe8-3574bc47b049} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51174) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:10.027393 [ 69182 ] {22ffaa7a-3f15-4df0-bbe8-3574bc47b049} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:10.158471 [ 69178 ] {93c28a16-0fb1-46e9-ae48-60d19d12e2c7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:12.266820 [ 69177 ] {2ec0f5f7-b2ea-476e-be71-86c60e02254d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51192) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:12.262530 [ 69186 ] {e3b86ff1-73e7-4d37-8ba1-62e84b2f9482} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51178) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:12.343555 [ 69177 ] {2ec0f5f7-b2ea-476e-be71-86c60e02254d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:12.357255 [ 69186 ] {e3b86ff1-73e7-4d37-8ba1-62e84b2f9482} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:12.439491 [ 62433 ] {38c4e19e-8006-493c-b913-5efc81d609ed} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51184) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:12.523510 [ 62433 ] {38c4e19e-8006-493c-b913-5efc81d609ed} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:12.604272 [ 69179 ] {d610683a-0cd5-4b45-927b-437ec5feabee} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51196) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:12.717403 [ 69179 ] {d610683a-0cd5-4b45-927b-437ec5feabee} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:14.014604 [ 69174 ] {74f4ba1d-64ee-4092-ba96-004f51118a83} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59228) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:14.086351 [ 69174 ] {74f4ba1d-64ee-4092-ba96-004f51118a83} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:14.158379 [ 62325 ] {f368e744-5b86-4f4a-8716-a0a31e80da70} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59234) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:14.207884 [ 62325 ] {f368e744-5b86-4f4a-8716-a0a31e80da70} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:14.257732 [ 69180 ] {b11b4929-e42a-4649-ad59-a0e1440e7776} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59250) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:14.310133 [ 69180 ] {b11b4929-e42a-4649-ad59-a0e1440e7776} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:15.027898 [ 69187 ] {a2254730-9265-4983-8da4-e1a4ca0532ed} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59268) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:15.082895 [ 69187 ] {a2254730-9265-4983-8da4-e1a4ca0532ed} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:15.175233 [ 69185 ] {73e7a914-8aaa-48e1-ab63-0960f69b6e28} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59282) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:15.207385 [ 69175 ] {4e319155-d2c6-4f9d-b748-4f2353ff5a63} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59306) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:15.239460 [ 69185 ] {73e7a914-8aaa-48e1-ab63-0960f69b6e28} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:15.291251 [ 69171 ] {c6f22bf0-3226-4e2d-81d3-0ef34162bfba} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.63 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_10_10_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 47 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:51100) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:32:15.396489 [ 69171 ] {c6f22bf0-3226-4e2d-81d3-0ef34162bfba} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.63 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_10_10_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 47 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:32:15.427748 [ 69175 ] {4e319155-d2c6-4f9d-b748-4f2353ff5a63} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:15.731357 [ 69183 ] {38e0ec1b-f594-4846-a5f8-9eeb69788444} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59294) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:32:15.816568 [ 69173 ] {ee8614c8-354c-4633-aa6a-cf1f75abaf17} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59280) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:15.892730 [ 69183 ] {38e0ec1b-f594-4846-a5f8-9eeb69788444} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:32:15.973937 [ 69173 ] {ee8614c8-354c-4633-aa6a-cf1f75abaf17} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:16.024612 [ 69172 ] {b265bcce-07c0-4404-bfd8-f485336a8ef8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59252) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:16.094705 [ 69176 ] {cde31776-2f24-46ad-aeca-37f5a505c836} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59314) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:32:16.122144 [ 69172 ] {b265bcce-07c0-4404-bfd8-f485336a8ef8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:16.317903 [ 69176 ] {cde31776-2f24-46ad-aeca-37f5a505c836} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:32:16.344383 [ 69184 ] {212c9dde-1f94-4d93-85ca-d153efa46d59} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59328) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:16.470428 [ 69184 ] {212c9dde-1f94-4d93-85ca-d153efa46d59} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:18.687344 [ 69182 ] {341ffcb3-46d2-4f52-93f8-1aab855b7444} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59330) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:18.733594 [ 69182 ] {341ffcb3-46d2-4f52-93f8-1aab855b7444} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:19.149897 [ 62433 ] {c4cdc906-8b36-40da-8511-2c90aa577ed7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59360) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:19.162806 [ 69178 ] {ae29628e-6846-4ded-98ee-92bc11b93580} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59344) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:19.275653 [ 69178 ] {ae29628e-6846-4ded-98ee-92bc11b93580} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:19.370619 [ 69186 ] {7154fb4c-16b0-44c0-97b6-0ce425a3f9a5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59348) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:19.461397 [ 62433 ] {c4cdc906-8b36-40da-8511-2c90aa577ed7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:19.548797 [ 69186 ] {7154fb4c-16b0-44c0-97b6-0ce425a3f9a5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:21.009512 [ 69179 ] {bb324802-09d8-40a8-b37d-96afdc91edde} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59382) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:21.118894 [ 69179 ] {bb324802-09d8-40a8-b37d-96afdc91edde} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:21.257810 [ 69174 ] {b2348b98-0e44-49f0-a100-b87933e8290e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59378) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:21.289229 [ 62325 ] {351c9232-9235-4a67-9c40-3021e2031884} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59388) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:21.381512 [ 62325 ] {351c9232-9235-4a67-9c40-3021e2031884} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:21.387532 [ 69177 ] {e17956c7-1ec7-4245-b5e9-cc812598ef43} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59368) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:21.462462 [ 69177 ] {e17956c7-1ec7-4245-b5e9-cc812598ef43} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:21.494909 [ 69174 ] {b2348b98-0e44-49f0-a100-b87933e8290e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:21.994531 [ 69185 ] {c324c65b-0bf5-4196-ae8e-dbd6f8cfea7d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59408) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:22.107295 [ 69180 ] {03d2cf81-6599-45f4-b049-6173340d4405} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59396) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:22.171136 [ 69180 ] {03d2cf81-6599-45f4-b049-6173340d4405} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:22.207705 [ 69175 ] {80b1d46b-1736-4f7a-b95e-6fdd01bdb8f9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59424) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:22.216519 [ 69185 ] {c324c65b-0bf5-4196-ae8e-dbd6f8cfea7d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:22.296953 [ 69171 ] {abccc10c-4d34-4c1f-935d-efa5835e8aa8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59420) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:22.389235 [ 69171 ] {abccc10c-4d34-4c1f-935d-efa5835e8aa8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:22.565691 [ 69175 ] {80b1d46b-1736-4f7a-b95e-6fdd01bdb8f9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:22.748950 [ 69173 ] {67d217e8-10c3-4470-ab5b-8ed8a405732f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59452) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:22.842314 [ 69173 ] {67d217e8-10c3-4470-ab5b-8ed8a405732f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:22.922378 [ 69183 ] {e7be17c4-7c20-4654-8803-bc78c80e410c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59438) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:32:23.017913 [ 69183 ] {e7be17c4-7c20-4654-8803-bc78c80e410c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:32:23.500631 [ 69172 ] {24273cdc-0c0e-4c6a-9d0d-4dda92a2b6e2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59464) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:23.742549 [ 69172 ] {24273cdc-0c0e-4c6a-9d0d-4dda92a2b6e2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:25.633049 [ 69184 ] {8c7b2e3d-94c8-4326-be6a-ee9e07bc0e9d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56318) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:25.772062 [ 69184 ] {8c7b2e3d-94c8-4326-be6a-ee9e07bc0e9d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:25.840545 [ 69182 ] {f4c14c21-73b5-4252-b376-8304370e2ecc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56322) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:25.958070 [ 69182 ] {f4c14c21-73b5-4252-b376-8304370e2ecc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:26.526890 [ 69187 ] {525a7db5-c0f6-464e-9274-2a6dd358c2e6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56336) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:26.559955 [ 62433 ] {28f69850-75ee-4fe7-a529-d3eb9cc5302e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56346) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:26.582873 [ 69187 ] {525a7db5-c0f6-464e-9274-2a6dd358c2e6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:26.913578 [ 62433 ] {28f69850-75ee-4fe7-a529-d3eb9cc5302e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:27.767084 [ 69177 ] {f444cec7-2b77-4e3e-87f4-a8c0660ee3f0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56380) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:27.836070 [ 69177 ] {f444cec7-2b77-4e3e-87f4-a8c0660ee3f0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:27.945437 [ 69186 ] {8335e2ec-a26d-47ea-8868-0ee3b8a21cf5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56348) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:28.035397 [ 69186 ] {8335e2ec-a26d-47ea-8868-0ee3b8a21cf5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:28.228795 [ 62325 ] {a6e5c8a0-6755-4dc6-b512-d07a45b6e001} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56368) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:28.269447 [ 62325 ] {a6e5c8a0-6755-4dc6-b512-d07a45b6e001} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:28.318865 [ 69179 ] {29c1455f-fa66-454d-a52b-c1e5c8135f00} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56356) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:28.466523 [ 69179 ] {29c1455f-fa66-454d-a52b-c1e5c8135f00} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:28.558821 [ 69174 ] {8d650bfd-5f1e-4be0-af03-2ba04ad1a873} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56390) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:28.694796 [ 69174 ] {8d650bfd-5f1e-4be0-af03-2ba04ad1a873} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:28.988633 [ 69180 ] {fdfe4c81-38b6-43d1-817e-53298daeb35a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56402) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:29.031659 [ 69185 ] {4449d038-3f92-4d0a-a367-633b669566f3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56406) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:29.116050 [ 69180 ] {fdfe4c81-38b6-43d1-817e-53298daeb35a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:29.478361 [ 69175 ] {dcd28528-b402-4158-ab41-9410e5a85c27} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56420) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:29.528334 [ 69185 ] {4449d038-3f92-4d0a-a367-633b669566f3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:29.547197 [ 69173 ] {97f777fa-3486-445d-bbad-8e1e4f287363} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56426) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:29.604878 [ 69171 ] {ea7e0437-f264-4cb3-8ac1-a470a4f082d7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56410) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:32:29.623929 [ 69175 ] {dcd28528-b402-4158-ab41-9410e5a85c27} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:29.648999 [ 69173 ] {97f777fa-3486-445d-bbad-8e1e4f287363} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:30.017853 [ 69171 ] {ea7e0437-f264-4cb3-8ac1-a470a4f082d7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:32:30.300051 [ 69178 ] {5277ee14-33b8-4ee1-9c89-9e60f44ae58c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1579004 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56430) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:30.438438 [ 69178 ] {5277ee14-33b8-4ee1-9c89-9e60f44ae58c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1579004 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:31.588151 [ 69181 ] {7368f1ef-dd71-4f13-a87e-66ff4d468f09} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56444) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:31.934442 [ 69181 ] {7368f1ef-dd71-4f13-a87e-66ff4d468f09} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:32.280455 [ 69182 ] {2eb7ce94-6b90-45b4-95d4-a74c88b1adb7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59850) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:32.294159 [ 69184 ] {17af6d62-208d-4bc1-8e2f-ca3933b2488c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56448) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:32.386587 [ 69182 ] {2eb7ce94-6b90-45b4-95d4-a74c88b1adb7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:32.400472 [ 69184 ] {17af6d62-208d-4bc1-8e2f-ca3933b2488c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:32.590437 [ 69183 ] {6d6a2b3b-4775-4dbc-bbf1-e677d8cafca8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59860) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:32.665814 [ 69183 ] {6d6a2b3b-4775-4dbc-bbf1-e677d8cafca8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:33.621320 [ 69176 ] {7d80895c-f374-4775-b0fe-eff5759f0c51} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 58.86 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59476) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:32:33.710482 [ 62433 ] {ccda6323-06ce-444d-83ba-cd6ec519eed6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59862) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:33.773915 [ 62433 ] {ccda6323-06ce-444d-83ba-cd6ec519eed6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:33.830533 [ 69176 ] {7d80895c-f374-4775-b0fe-eff5759f0c51} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 58.86 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:32:34.056542 [ 69186 ] {5a1ffa53-85d4-4d92-8187-cc263f9e6cf6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59878) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:34.111018 [ 69186 ] {5a1ffa53-85d4-4d92-8187-cc263f9e6cf6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:34.238795 [ 69177 ] {c78e5e6b-ffbb-4b12-8a85-7abef669bbc9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59864) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:34.558800 [ 69179 ] {122e9410-46cf-4677-80fe-5fb1c755a1da} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59894) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:34.582988 [ 69177 ] {c78e5e6b-ffbb-4b12-8a85-7abef669bbc9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:34.613368 [ 69179 ] {122e9410-46cf-4677-80fe-5fb1c755a1da} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:34.687004 [ 62325 ] {43c0b66b-f743-4645-a0c6-46efd1d38c71} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59892) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:34.745196 [ 62325 ] {43c0b66b-f743-4645-a0c6-46efd1d38c71} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:35.155136 [ 69174 ] {97e45f5b-875e-4560-a812-aec15fcc27f5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59904) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:35.213520 [ 69174 ] {97e45f5b-875e-4560-a812-aec15fcc27f5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:35.343020 [ 69180 ] {bfcfc736-ff65-45b0-828f-40aa43cc3a0c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59910) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:35.405683 [ 69185 ] {4c7816f1-a6db-466e-8d7e-33e0e4cf6f1f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59924) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:35.416796 [ 69180 ] {bfcfc736-ff65-45b0-828f-40aa43cc3a0c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:35.528698 [ 69185 ] {4c7816f1-a6db-466e-8d7e-33e0e4cf6f1f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:35.637297 [ 69172 ] {71fdec4a-9581-45af-b473-08a8b6159eaa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59930) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:35.724115 [ 69172 ] {71fdec4a-9581-45af-b473-08a8b6159eaa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:36.330418 [ 69175 ] {b505df66-3285-495c-afc9-5c96eb4a3c2e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59940) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:36.457093 [ 69175 ] {b505df66-3285-495c-afc9-5c96eb4a3c2e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:36.791459 [ 69173 ] {479a6c51-c2f8-461f-b318-b4d138d29c6e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1181928 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_8_8_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 81 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59938) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:32:36.887178 [ 69173 ] {479a6c51-c2f8-461f-b318-b4d138d29c6e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1181928 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_8_8_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 81 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:32:38.387335 [ 69171 ] {019082e5-b0dd-4242-ada3-186d25d3486f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59978) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:38.462415 [ 69178 ] {44787eb6-02be-4abc-a741-ba5a4c7449e8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59948) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:38.478240 [ 69171 ] {019082e5-b0dd-4242-ada3-186d25d3486f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:38.511145 [ 69178 ] {44787eb6-02be-4abc-a741-ba5a4c7449e8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:38.572863 [ 69184 ] {233a270f-fbac-4ee8-a778-a464be5b2f40} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59988) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:38.774979 [ 69184 ] {233a270f-fbac-4ee8-a778-a464be5b2f40} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:38.834805 [ 69181 ] {13810280-8514-4964-9b8e-9f5548cb188d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1579260 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59962) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:39.013470 [ 69181 ] {13810280-8514-4964-9b8e-9f5548cb188d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1579260 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:40.339975 [ 69182 ] {a1b89c7e-42c6-4152-b04a-d9a1197fe122} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60002) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:40.420173 [ 69182 ] {a1b89c7e-42c6-4152-b04a-d9a1197fe122} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:40.503070 [ 69183 ] {10a6d992-bced-48ea-88ea-3229d13a46c3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2102856 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60008) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:40.599346 [ 69176 ] {e17aa37d-ddf6-41ca-b6bb-411792937261} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60018) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:40.754809 [ 69183 ] {10a6d992-bced-48ea-88ea-3229d13a46c3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2102856 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:40.755875 [ 69176 ] {e17aa37d-ddf6-41ca-b6bb-411792937261} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:40.820147 [ 69186 ] {e196aace-1b72-458a-9713-1d47e1fe46dd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60032) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:41.010331 [ 69186 ] {e196aace-1b72-458a-9713-1d47e1fe46dd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:41.291886 [ 62433 ] {83dab63e-3a9f-4fe3-9cd6-f678e412ed25} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60038) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:41.371578 [ 62433 ] {83dab63e-3a9f-4fe3-9cd6-f678e412ed25} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:41.562969 [ 69177 ] {ea7e6084-2240-4aae-b770-3e31266e8def} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60040) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:41.643999 [ 69177 ] {ea7e6084-2240-4aae-b770-3e31266e8def} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:41.663570 [ 69174 ] {f667e4b7-b6ca-4019-a9b8-83fead4c3303} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60058) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:41.690390 [ 69179 ] {e809564b-90c2-4e8a-b144-4ec00f27833b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60044) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:41.763541 [ 69179 ] {e809564b-90c2-4e8a-b144-4ec00f27833b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:41.780970 [ 69174 ] {f667e4b7-b6ca-4019-a9b8-83fead4c3303} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:41.984557 [ 62325 ] {cfc522cd-cc36-48ac-8378-a198db678036} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103502 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60070) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:42.032904 [ 62325 ] {cfc522cd-cc36-48ac-8378-a198db678036} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103502 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:42.186273 [ 69185 ] {0fa606cc-2b88-4615-9943-adeb17153542} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60084) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:42.637672 [ 69185 ] {0fa606cc-2b88-4615-9943-adeb17153542} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:43.319594 [ 69180 ] {5716c029-43b5-4519-9e5e-6ca52babc1e8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60088) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:32:43.437831 [ 69180 ] {5716c029-43b5-4519-9e5e-6ca52babc1e8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:32:44.015817 [ 69175 ] {75a871d3-4ddd-4897-98cb-8251d015d0d5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57848) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:44.114256 [ 69175 ] {75a871d3-4ddd-4897-98cb-8251d015d0d5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:44.904722 [ 69178 ] {8fe34b7c-c38c-4709-b073-6f950d077498} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57892) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:45.021669 [ 69187 ] {69e19e49-e8b7-4de6-9250-c7db277282ed} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57876) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:45.048867 [ 69178 ] {8fe34b7c-c38c-4709-b073-6f950d077498} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:45.094109 [ 69187 ] {69e19e49-e8b7-4de6-9250-c7db277282ed} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:45.202678 [ 69172 ] {ffc053bb-9cb0-4078-a47b-83ba7ec97e8f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57860) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:45.392185 [ 69172 ] {ffc053bb-9cb0-4078-a47b-83ba7ec97e8f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:45.782833 [ 69173 ] {6e5d6861-95e7-4c07-adc8-9e3c5f41c20e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57888) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:46.016697 [ 69173 ] {6e5d6861-95e7-4c07-adc8-9e3c5f41c20e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:46.396452 [ 69181 ] {7568acf9-8672-4945-9f7e-2d60e4523bed} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57906) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:46.472735 [ 69181 ] {7568acf9-8672-4945-9f7e-2d60e4523bed} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:46.926861 [ 69184 ] {c26ddb98-c353-4a93-8129-14b364f96a18} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57908) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:47.091136 [ 69184 ] {c26ddb98-c353-4a93-8129-14b364f96a18} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:47.064609 [ 69182 ] {5bc3fda9-49d7-4ae5-bb33-a5d4834e03a3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57916) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:47.519514 [ 69182 ] {5bc3fda9-49d7-4ae5-bb33-a5d4834e03a3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:47.405883 [ 69176 ] {66a40f78-4684-4a22-81e2-78dc38933d85} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57922) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:47.568695 [ 62433 ] {d1997d3d-4cda-44b6-9572-4a3fd88e3edc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57946) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:47.624109 [ 69176 ] {66a40f78-4684-4a22-81e2-78dc38933d85} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:47.738628 [ 62433 ] {d1997d3d-4cda-44b6-9572-4a3fd88e3edc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:48.022461 [ 69177 ] {8c620687-7753-478a-9836-ff7f18e6ba04} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57948) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:48.059904 [ 69171 ] {54a6f671-44d8-4c5b-b51a-317eebde6098} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57958) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:48.098903 [ 69177 ] {8c620687-7753-478a-9836-ff7f18e6ba04} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:48.160814 [ 69171 ] {54a6f671-44d8-4c5b-b51a-317eebde6098} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:48.207889 [ 69183 ] {3c4cd899-d7d2-4b25-9829-11de4474125f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57926) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:48.440233 [ 69183 ] {3c4cd899-d7d2-4b25-9829-11de4474125f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:48.657780 [ 69174 ] {1f2d93ef-81e7-4f96-9557-1aff39addcaf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57962) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:32:48.766423 [ 69174 ] {1f2d93ef-81e7-4f96-9557-1aff39addcaf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:32:48.792129 [ 69186 ] {4d427ad1-7a7f-46c0-bca1-013433b56c0d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57936) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:48.944281 [ 69186 ] {4d427ad1-7a7f-46c0-bca1-013433b56c0d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:49.896316 [ 69185 ] {843283a7-abfd-41b9-aa7f-0cd5b93028ea} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57968) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:49.975579 [ 69185 ] {843283a7-abfd-41b9-aa7f-0cd5b93028ea} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:50.055650 [ 69179 ] {29384443-3175-48bb-9baa-a7f84a6bbd09} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57976) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:50.153376 [ 69179 ] {29384443-3175-48bb-9baa-a7f84a6bbd09} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:51.018481 [ 69178 ] {4bfb84d7-7794-49ce-843a-37122cffa2af} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57992) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:51.241535 [ 69178 ] {4bfb84d7-7794-49ce-843a-37122cffa2af} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:51.367011 [ 69175 ] {8dd2fb22-2420-4366-84e0-7bee00a96862} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57978) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:51.466867 [ 69175 ] {8dd2fb22-2420-4366-84e0-7bee00a96862} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:52.043537 [ 69187 ] {c5b52bcd-58ca-4365-984f-6894b67073bb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57996) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:52.255113 [ 69187 ] {c5b52bcd-58ca-4365-984f-6894b67073bb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:52.877880 [ 69172 ] {97a4b0d6-341a-4563-ac80-14cc40b1d041} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58002) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:52.976474 [ 69172 ] {97a4b0d6-341a-4563-ac80-14cc40b1d041} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:53.429517 [ 69181 ] {e9f4577f-2c91-47ec-8eaa-c1eb83ed1090} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56970) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:53.447003 [ 69173 ] {47880fac-b713-4806-afef-5cd051363bc6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58008) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:53.523197 [ 69181 ] {e9f4577f-2c91-47ec-8eaa-c1eb83ed1090} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:53.559333 [ 69173 ] {47880fac-b713-4806-afef-5cd051363bc6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:54.302412 [ 69182 ] {488ba9fc-15ef-46bb-b146-68502ce5aed6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56996) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:54.394656 [ 69176 ] {9f1a56bc-2fe1-468a-a500-530d3f2c1680} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57010) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:54.461029 [ 69176 ] {9f1a56bc-2fe1-468a-a500-530d3f2c1680} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:54.476167 [ 69182 ] {488ba9fc-15ef-46bb-b146-68502ce5aed6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:54.541983 [ 69184 ] {e7cc9b8d-b512-4f4d-9229-d7fd53fc5415} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56986) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:32:54.603625 [ 69184 ] {e7cc9b8d-b512-4f4d-9229-d7fd53fc5415} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:32:54.930587 [ 69177 ] {25f1bc85-867a-4546-878f-cbd56d0f8087} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57016) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:54.949402 [ 69171 ] {904ab060-da83-4761-bc11-c398c66273ec} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57022) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:55.043469 [ 69171 ] {904ab060-da83-4761-bc11-c398c66273ec} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:55.073042 [ 69177 ] {25f1bc85-867a-4546-878f-cbd56d0f8087} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:55.247075 [ 62433 ] {dd1d73fa-c9e9-4cd2-ad75-33ea2f5b2467} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57014) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:55.383196 [ 62433 ] {dd1d73fa-c9e9-4cd2-ad75-33ea2f5b2467} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:56.189209 [ 69183 ] {a534285a-d2ac-4750-bbe8-c932405a3294} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57024) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:56.200339 [ 69174 ] {16758b50-06bd-4930-b55c-b94eca150e24} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57034) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:56.295797 [ 69183 ] {a534285a-d2ac-4750-bbe8-c932405a3294} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:56.411581 [ 69174 ] {16758b50-06bd-4930-b55c-b94eca150e24} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:56.909469 [ 69186 ] {224f53fd-34c5-4b31-be8c-9f734c35a09d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57040) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:57.075180 [ 69186 ] {224f53fd-34c5-4b31-be8c-9f734c35a09d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:57.174247 [ 62325 ] {48f17cdc-8eb0-429c-897b-0b85eccb65c7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57052) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:57.260180 [ 62325 ] {48f17cdc-8eb0-429c-897b-0b85eccb65c7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:57.542416 [ 69178 ] {1803cae7-55c2-4597-bd06-c2c16a65a560} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57084) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:57.647814 [ 69180 ] {08888082-2487-49e7-92c3-2c8f481a6757} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57068) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:57.661327 [ 69178 ] {1803cae7-55c2-4597-bd06-c2c16a65a560} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:57.740208 [ 69180 ] {08888082-2487-49e7-92c3-2c8f481a6757} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:58.193888 [ 69175 ] {93bbc3dc-cacb-4f33-9e99-c1314ad27113} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57088) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:58.501834 [ 69175 ] {93bbc3dc-cacb-4f33-9e99-c1314ad27113} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:58.942449 [ 69187 ] {e6a3b6dc-e1f6-41cd-9693-a47923d1e9e9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57094) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:59.037292 [ 69187 ] {e6a3b6dc-e1f6-41cd-9693-a47923d1e9e9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:59.863765 [ 69172 ] {3cdcd439-1b7f-437c-ab98-250ef5699932} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57098) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:59.924652 [ 69172 ] {3cdcd439-1b7f-437c-ab98-250ef5699932} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:32:59.982304 [ 69181 ] {b88d35fd-882c-4806-bdfb-dd27971bab74} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57110) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:00.228372 [ 69181 ] {b88d35fd-882c-4806-bdfb-dd27971bab74} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:00.795766 [ 69185 ] {eb4cbdbd-b8eb-47f5-9cf0-1c8ab4fc2e83} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57152) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:00.804753 [ 69176 ] {73c6ae8a-0c9b-40a3-8cc5-40fec8cb638e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.52 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57134) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:00.820152 [ 69173 ] {24691f96-d566-4dc5-a403-9488f876a795} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2099492 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57124) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:00.870492 [ 69176 ] {73c6ae8a-0c9b-40a3-8cc5-40fec8cb638e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.52 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:00.976562 [ 69173 ] {24691f96-d566-4dc5-a403-9488f876a795} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2099492 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:01.052167 [ 69185 ] {eb4cbdbd-b8eb-47f5-9cf0-1c8ab4fc2e83} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:01.080083 [ 69184 ] {b6b06354-af91-4b58-ad1a-99e78d5c49ac} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57144) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:01.161212 [ 69184 ] {b6b06354-af91-4b58-ad1a-99e78d5c49ac} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:01.313886 [ 69182 ] {f247813d-80c0-44f3-b623-0bce544e3973} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57136) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:01.368741 [ 69182 ] {f247813d-80c0-44f3-b623-0bce544e3973} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:01.483069 [ 69177 ] {4f9dd5c8-3509-444a-9a69-074d44bfcd20} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57162) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:01.567246 [ 69177 ] {4f9dd5c8-3509-444a-9a69-074d44bfcd20} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:02.991877 [ 62433 ] {497ee0e4-1668-447a-af01-d2375030b995} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57172) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:03.079441 [ 69183 ] {4d34d84a-3906-41ea-8813-a01029f70f58} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57174) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:33:03.130859 [ 62433 ] {497ee0e4-1668-447a-af01-d2375030b995} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:03.151484 [ 69183 ] {4d34d84a-3906-41ea-8813-a01029f70f58} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:33:03.896098 [ 69171 ] {4c090a8d-6966-42ca-bf1e-111a99f8f9c4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56704) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:04.115468 [ 69171 ] {4c090a8d-6966-42ca-bf1e-111a99f8f9c4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:04.227779 [ 69178 ] {16210826-c6a3-487a-b636-8bc962687fa6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102424 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56730) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:04.246470 [ 62325 ] {30439667-4125-4c9d-a697-ac5d068dc76c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56722) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:04.265754 [ 69186 ] {67038aac-7549-400d-b30f-8f141f5f62eb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56710) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:04.315758 [ 62325 ] {30439667-4125-4c9d-a697-ac5d068dc76c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:04.325050 [ 69178 ] {16210826-c6a3-487a-b636-8bc962687fa6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102424 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:04.362211 [ 69186 ] {67038aac-7549-400d-b30f-8f141f5f62eb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:04.952079 [ 69180 ] {8565c01c-4189-4bde-a358-34667aaa7e6e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56742) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:05.010316 [ 69175 ] {9e7b649e-5763-45b8-a091-5ec2eac6095a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56750) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:05.034445 [ 69180 ] {8565c01c-4189-4bde-a358-34667aaa7e6e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:05.192531 [ 69175 ] {9e7b649e-5763-45b8-a091-5ec2eac6095a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:05.922654 [ 69187 ] {f202e490-b368-4cca-a4c8-99b622b55e24} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56766) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:06.036812 [ 69187 ] {f202e490-b368-4cca-a4c8-99b622b55e24} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:06.594557 [ 69172 ] {288fee47-da98-41eb-9b36-9fbb5387319b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56770) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:06.892632 [ 69172 ] {288fee47-da98-41eb-9b36-9fbb5387319b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:07.046386 [ 69173 ] {26653025-155c-4970-b2f0-a6cf4744ae76} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56808) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:07.216322 [ 69181 ] {32703c73-a088-4b11-bc7b-76b2aaff3eb3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56780) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:07.227183 [ 69173 ] {26653025-155c-4970-b2f0-a6cf4744ae76} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:07.283368 [ 69181 ] {32703c73-a088-4b11-bc7b-76b2aaff3eb3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:07.458760 [ 69174 ] {af4cf2a2-18ce-4dfb-b47e-c6642c864cfb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56792) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:07.498563 [ 69176 ] {1f15088a-4bfe-445e-a7cd-72e611fcb656} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56822) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:07.540755 [ 69174 ] {af4cf2a2-18ce-4dfb-b47e-c6642c864cfb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:07.590532 [ 69184 ] {f4a44300-7074-4885-a017-751623360965} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56828) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:07.613146 [ 69176 ] {1f15088a-4bfe-445e-a7cd-72e611fcb656} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:07.720504 [ 69184 ] {f4a44300-7074-4885-a017-751623360965} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:08.314782 [ 69182 ] {840c648d-9c90-4167-96a3-9d0e5b0ad3e5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56840) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:08.457406 [ 69182 ] {840c648d-9c90-4167-96a3-9d0e5b0ad3e5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:09.624576 [ 62433 ] {5993e8c2-41d4-446d-8ed9-27e4a06f9922} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56854) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:09.669201 [ 69185 ] {445ecf4b-0e88-4fc8-b2bc-a141083ebc23} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56842) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:09.698505 [ 62433 ] {5993e8c2-41d4-446d-8ed9-27e4a06f9922} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:09.775682 [ 69185 ] {445ecf4b-0e88-4fc8-b2bc-a141083ebc23} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:10.723594 [ 69177 ] {b7c19f6f-8502-4f85-ab68-0d24296eac5a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56870) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:10.885387 [ 69171 ] {95eb8893-1b9b-4a76-92c6-944769cb1e5c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56884) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:10.934675 [ 69177 ] {b7c19f6f-8502-4f85-ab68-0d24296eac5a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:11.046432 [ 69179 ] {9ad698c6-bda8-4dc4-95ce-fc785f55dbed} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56894) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:11.050298 [ 69171 ] {95eb8893-1b9b-4a76-92c6-944769cb1e5c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:11.087089 [ 69183 ] {f9c803d8-b2f2-488b-b9fa-c7a2e9bce3ad} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56860) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:11.108454 [ 69179 ] {9ad698c6-bda8-4dc4-95ce-fc785f55dbed} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:11.339876 [ 69183 ] {f9c803d8-b2f2-488b-b9fa-c7a2e9bce3ad} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:11.453759 [ 69180 ] {2cf7f150-f7a7-445d-ad8b-67cd5de86ea9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56914) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:11.469253 [ 62325 ] {339fd5cd-be2c-4360-b803-a68379a98ab0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56898) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:11.541958 [ 62325 ] {339fd5cd-be2c-4360-b803-a68379a98ab0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:11.740158 [ 69175 ] {65d6b54e-47a1-4c63-a010-a4a743d0dc6f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56918) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:11.746270 [ 69180 ] {2cf7f150-f7a7-445d-ad8b-67cd5de86ea9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:11.848307 [ 69175 ] {65d6b54e-47a1-4c63-a010-a4a743d0dc6f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:13.463956 [ 69187 ] {b1d16561-8c08-4086-b149-860c7782a036} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34558) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:33:13.615992 [ 69178 ] {1ddd1fc4-c7b1-4592-a77a-1d5096ece72f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103336 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34562) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:13.646798 [ 69176 ] {ad90dba8-4028-4a44-b1bf-33912c36c1e6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2104416 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34588) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:13.676368 [ 69187 ] {b1d16561-8c08-4086-b149-860c7782a036} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:33:13.696571 [ 69178 ] {1ddd1fc4-c7b1-4592-a77a-1d5096ece72f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103336 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:13.798610 [ 69172 ] {32ea3a15-9fb4-4518-8e51-e46eeccd178c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34560) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:13.862244 [ 69173 ] {14d48189-62ea-4f1c-b8e3-847ffa226913} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34566) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:13.951652 [ 69176 ] {ad90dba8-4028-4a44-b1bf-33912c36c1e6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2104416 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:13.970558 [ 69173 ] {14d48189-62ea-4f1c-b8e3-847ffa226913} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:14.013701 [ 69172 ] {32ea3a15-9fb4-4518-8e51-e46eeccd178c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:14.214411 [ 69181 ] {dcbbc30b-8f18-482f-b6d9-6abe8f5715cf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34578) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:14.272707 [ 69181 ] {dcbbc30b-8f18-482f-b6d9-6abe8f5715cf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:14.563421 [ 69184 ] {50fda2ff-efc4-4b61-aaa5-2bf01b33e116} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34600) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:14.660766 [ 69184 ] {50fda2ff-efc4-4b61-aaa5-2bf01b33e116} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:15.753579 [ 69186 ] {c7e206ed-cf98-485c-84ac-9d74c6518820} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34618) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:16.010559 [ 69186 ] {c7e206ed-cf98-485c-84ac-9d74c6518820} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:16.150461 [ 69182 ] {46d5a9af-8b80-45d7-9c9f-57fd30b3c6c1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34608) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:16.264262 [ 69182 ] {46d5a9af-8b80-45d7-9c9f-57fd30b3c6c1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:17.157479 [ 69185 ] {4e03132c-76b9-42d0-affe-aea69cdf068e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34628) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:17.234991 [ 69177 ] {f1ec4d0f-d5a6-4c4b-8311-7f88aff4ed5d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34630) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:17.235892 [ 69185 ] {4e03132c-76b9-42d0-affe-aea69cdf068e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:17.581180 [ 69179 ] {f4f82e7c-2f5a-4eab-a9b2-baa7ef11ce96} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103886 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34646) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:17.590714 [ 69177 ] {f1ec4d0f-d5a6-4c4b-8311-7f88aff4ed5d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:17.837668 [ 69179 ] {f4f82e7c-2f5a-4eab-a9b2-baa7ef11ce96} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103886 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:18.355451 [ 62325 ] {0a9eaa98-11df-48cc-89bd-babffc02d19e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34656) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:18.383505 [ 62433 ] {cb0f2162-1881-4dd2-8845-64c98638e71b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34652) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:18.415975 [ 62433 ] {cb0f2162-1881-4dd2-8845-64c98638e71b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:18.426902 [ 69171 ] {3320e8cf-27c8-480a-bc3e-6f2d21bfe057} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34644) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:18.445298 [ 62325 ] {0a9eaa98-11df-48cc-89bd-babffc02d19e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:18.539380 [ 69180 ] {325e452d-e64d-455d-9952-077cce208742} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34662) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:18.575275 [ 69171 ] {3320e8cf-27c8-480a-bc3e-6f2d21bfe057} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:18.668226 [ 69180 ] {325e452d-e64d-455d-9952-077cce208742} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:19.928171 [ 69187 ] {fb4b1cfa-8d90-4c0e-a527-479989d3e61b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34690) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:20.070521 [ 69173 ] {9b406bde-1ca3-4edc-9197-88aeaff42e98} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34716) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:20.186042 [ 69173 ] {9b406bde-1ca3-4edc-9197-88aeaff42e98} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:20.198600 [ 69187 ] {fb4b1cfa-8d90-4c0e-a527-479989d3e61b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:20.316524 [ 69176 ] {f69a6e65-4130-4728-8c9a-6b6e5c0de597} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34710) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:20.330488 [ 69178 ] {192243e6-b028-4769-9809-8f76b4df2e60} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34696) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:20.359291 [ 69176 ] {f69a6e65-4130-4728-8c9a-6b6e5c0de597} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:20.485898 [ 69178 ] {192243e6-b028-4769-9809-8f76b4df2e60} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:20.568070 [ 69175 ] {f412e0b3-1645-4fe1-97d1-8641e2f88de4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34676) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:20.651504 [ 69175 ] {f412e0b3-1645-4fe1-97d1-8641e2f88de4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:21.110461 [ 69181 ] {768e8429-5b6d-4589-bffc-4c9c47e4ef52} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34744) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:21.174198 [ 69181 ] {768e8429-5b6d-4589-bffc-4c9c47e4ef52} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:21.230372 [ 69172 ] {3680b14e-5d1b-494f-9c26-8ae04adc61ea} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34728) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:21.534308 [ 69172 ] {3680b14e-5d1b-494f-9c26-8ae04adc61ea} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:22.039952 [ 69184 ] {4700c4ee-06f3-4de6-84ff-0b9f929f5db1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103502 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34754) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:22.120365 [ 69184 ] {4700c4ee-06f3-4de6-84ff-0b9f929f5db1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103502 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:22.951454 [ 69183 ] {d8bea46d-a142-4be3-8595-d75f47e567e3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34766) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:22.993749 [ 69183 ] {d8bea46d-a142-4be3-8595-d75f47e567e3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:23.375528 [ 69186 ] {521447e0-908a-4603-8d14-5c156b14e720} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48286) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:23.378413 [ 69182 ] {a1d0b287-4c45-44e2-85fa-6b41ccc687ad} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48274) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:23.532865 [ 69182 ] {a1d0b287-4c45-44e2-85fa-6b41ccc687ad} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:23.692798 [ 69186 ] {521447e0-908a-4603-8d14-5c156b14e720} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:24.566869 [ 69185 ] {bbd823ff-fbed-4906-9e57-4d7e03e4217e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48298) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:24.772304 [ 69185 ] {bbd823ff-fbed-4906-9e57-4d7e03e4217e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:24.785723 [ 69174 ] {a80b73bf-dcb2-43a9-8ddd-5147b9f5baf1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48312) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:24.880323 [ 69174 ] {a80b73bf-dcb2-43a9-8ddd-5147b9f5baf1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:25.142113 [ 69171 ] {2e0410cc-dcb3-486e-a9a9-fa08b426bcd2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48344) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:25.266309 [ 69171 ] {2e0410cc-dcb3-486e-a9a9-fa08b426bcd2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:25.323338 [ 69177 ] {2c54f1a5-1531-44bc-9681-476c9ae2c8c0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48322) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:25.338148 [ 69179 ] {7e104ab5-010a-4b68-8570-16bae85328dc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48332) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:25.403685 [ 69177 ] {2c54f1a5-1531-44bc-9681-476c9ae2c8c0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:25.478537 [ 69179 ] {7e104ab5-010a-4b68-8570-16bae85328dc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:26.910390 [ 69180 ] {b5a2f983-0471-4148-89da-1e3ea14f6d20} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48372) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:27.004734 [ 69180 ] {b5a2f983-0471-4148-89da-1e3ea14f6d20} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:27.014757 [ 62325 ] {d44b8d5e-3eed-4df7-9033-517735d95f2c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48356) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:27.104284 [ 69178 ] {e362437c-66d7-4759-8279-9316533a1f7d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102888 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48392) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:27.119803 [ 69175 ] {5db57b4a-0e2e-455d-a48d-c172b19636a1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48400) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:27.155264 [ 69178 ] {e362437c-66d7-4759-8279-9316533a1f7d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102888 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:27.153994 [ 69187 ] {6d43ccdf-15ff-46b7-9e3c-8e21f968f434} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48378) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:27.170326 [ 69173 ] {12ae6ed3-a478-49a9-8bb8-32cbb8aea8c4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48382) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:27.191493 [ 69175 ] {5db57b4a-0e2e-455d-a48d-c172b19636a1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:27.243374 [ 69173 ] {12ae6ed3-a478-49a9-8bb8-32cbb8aea8c4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:27.271176 [ 69187 ] {6d43ccdf-15ff-46b7-9e3c-8e21f968f434} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:27.283777 [ 62325 ] {d44b8d5e-3eed-4df7-9033-517735d95f2c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:28.782522 [ 69181 ] {a36afcf2-1b68-445f-a332-9016078e0a5b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48402) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:28.930986 [ 69181 ] {a36afcf2-1b68-445f-a332-9016078e0a5b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:29.138442 [ 69172 ] {b354c073-b884-472a-bdb6-2cd462bee08d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48408) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:29.248295 [ 69172 ] {b354c073-b884-472a-bdb6-2cd462bee08d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:29.786882 [ 69176 ] {e9b01ff8-b9e9-4fbd-9ebe-3aebe00b44e3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103500 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48420) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:29.875763 [ 69176 ] {e9b01ff8-b9e9-4fbd-9ebe-3aebe00b44e3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103500 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:30.306941 [ 69182 ] {6a1ec8a9-2868-42d3-9117-18cc4f6684c5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48436) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:30.418853 [ 69182 ] {6a1ec8a9-2868-42d3-9117-18cc4f6684c5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:30.464749 [ 69184 ] {021427c4-2d63-4ca7-8d80-ea3557d7684d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48424) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:30.562617 [ 69184 ] {021427c4-2d63-4ca7-8d80-ea3557d7684d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:30.978558 [ 69185 ] {b2c9192f-a20e-4486-87ac-abbc4c6ee18e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48468) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:31.104477 [ 69185 ] {b2c9192f-a20e-4486-87ac-abbc4c6ee18e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:31.319236 [ 69186 ] {de8cb40a-f9ef-459d-ae18-b936e8111a0e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103756 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48452) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:31.553395 [ 69174 ] {a425c0b2-1b94-415d-be75-b85105169615} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48476) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:31.557659 [ 69186 ] {de8cb40a-f9ef-459d-ae18-b936e8111a0e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103756 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:31.617975 [ 69174 ] {a425c0b2-1b94-415d-be75-b85105169615} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:31.828139 [ 69177 ] {f1a0212e-f9f0-44ab-a712-860e9e4a61d3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48496) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:31.954563 [ 69177 ] {f1a0212e-f9f0-44ab-a712-860e9e4a61d3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:32.322186 [ 69171 ] {f2ffee32-b31d-43e4-a815-5f1860e575a3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48482) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:32.627560 [ 69171 ] {f2ffee32-b31d-43e4-a815-5f1860e575a3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:33.223015 [ 69175 ] {753e331b-0cec-494c-a500-3e807dbd3867} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48636) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:33.283199 [ 69175 ] {753e331b-0cec-494c-a500-3e807dbd3867} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:33.542593 [ 69180 ] {56549805-2795-450e-beab-88f87d89c01c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48604) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:33.580203 [ 69173 ] {e8f5433c-cedc-4ba8-a3ec-d2e26a98de9f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48644) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:33.656685 [ 69183 ] {1fdbd6b4-704c-440b-afec-b23479b3db13} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48660) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:33.675719 [ 69180 ] {56549805-2795-450e-beab-88f87d89c01c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:33.692574 [ 69183 ] {1fdbd6b4-704c-440b-afec-b23479b3db13} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:33.782618 [ 69173 ] {e8f5433c-cedc-4ba8-a3ec-d2e26a98de9f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:33.788120 [ 69179 ] {d300c97f-946b-47cc-846d-15208816e8fb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48598) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:33.870597 [ 69178 ] {c2bb923d-fd4c-4525-b28c-604e9b1bc82a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48620) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:33.878001 [ 69179 ] {d300c97f-946b-47cc-846d-15208816e8fb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:33.965482 [ 69178 ] {c2bb923d-fd4c-4525-b28c-604e9b1bc82a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:35.564593 [ 62325 ] {302ad5f8-a35d-4317-a368-4452c329270b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48676) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:35.614261 [ 69187 ] {5c96ab33-5c98-4d7f-9c74-dc95299b7017} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48690) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:35.714774 [ 62325 ] {302ad5f8-a35d-4317-a368-4452c329270b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:35.781535 [ 69187 ] {5c96ab33-5c98-4d7f-9c74-dc95299b7017} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:36.270650 [ 69172 ] {4391d377-4d59-4d99-ac30-a48104a22bf1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48692) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:36.352299 [ 69172 ] {4391d377-4d59-4d99-ac30-a48104a22bf1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:36.477664 [ 69176 ] {644159b5-a2d9-4ff8-b078-7d2e48e4f1e5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48704) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:36.571704 [ 69176 ] {644159b5-a2d9-4ff8-b078-7d2e48e4f1e5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:36.822705 [ 69181 ] {8ef64ddd-d41f-4634-ac93-a071e7ccfac4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48700) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:36.897229 [ 69181 ] {8ef64ddd-d41f-4634-ac93-a071e7ccfac4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:37.517423 [ 69182 ] {a1d1c676-e892-4e95-9c3e-2cfba3ee533f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48706) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:37.642905 [ 69182 ] {a1d1c676-e892-4e95-9c3e-2cfba3ee533f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:37.650419 [ 69186 ] {61159172-a099-4904-9291-8c9ff128913b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48738) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:37.871835 [ 69186 ] {61159172-a099-4904-9291-8c9ff128913b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:37.891188 [ 69185 ] {98a7f21a-af59-4197-9527-a4be43a86172} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48746) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:37.972490 [ 62433 ] {eb3fcb17-ed40-4eec-bfe1-c7281a777afc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48722) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:37.980898 [ 69185 ] {98a7f21a-af59-4197-9527-a4be43a86172} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:38.222766 [ 62433 ] {eb3fcb17-ed40-4eec-bfe1-c7281a777afc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:38.719409 [ 69174 ] {486efb4b-1e82-454d-b610-79c9023f7514} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48762) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:38.789575 [ 69174 ] {486efb4b-1e82-454d-b610-79c9023f7514} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:39.801918 [ 69180 ] {7f2412f9-f100-4827-bc7a-192f60ef6046} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48794) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:39.914075 [ 69180 ] {7f2412f9-f100-4827-bc7a-192f60ef6046} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:40.016710 [ 69177 ] {418c2fa9-ab8f-49e3-bf15-f70a5825843e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48774) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:33:40.171149 [ 69177 ] {418c2fa9-ab8f-49e3-bf15-f70a5825843e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:33:40.208700 [ 69175 ] {f5dec34e-1d46-45d6-acae-08f511f43589} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48806) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:40.233083 [ 69173 ] {b6327d73-f563-4d63-96ee-97a2a70bcf20} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48820) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:40.374986 [ 69173 ] {b6327d73-f563-4d63-96ee-97a2a70bcf20} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:40.516799 [ 69171 ] {1d24b71a-05ce-4de8-ad81-6595928d3fb5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48782) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:40.595766 [ 69179 ] {b6dd93c4-51ed-453b-a375-0f806a7335b7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48832) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:40.665395 [ 69179 ] {b6dd93c4-51ed-453b-a375-0f806a7335b7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:40.696540 [ 69175 ] {f5dec34e-1d46-45d6-acae-08f511f43589} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:40.824524 [ 69171 ] {1d24b71a-05ce-4de8-ad81-6595928d3fb5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:42.326582 [ 69178 ] {5a9b1fb7-c13a-4277-b945-f065c7eee270} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48846) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:42.376728 [ 69178 ] {5a9b1fb7-c13a-4277-b945-f065c7eee270} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:42.448291 [ 69184 ] {4592c512-359a-4f68-8fe6-e5d5185a55ed} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48858) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:42.479618 [ 62325 ] {caf7ca05-1a48-43e9-b212-545dedc32da6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48868) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:42.589133 [ 62325 ] {caf7ca05-1a48-43e9-b212-545dedc32da6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:42.663409 [ 69172 ] {67a90417-995c-4c9b-b795-5f127fa6708b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41184) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:42.729908 [ 69172 ] {67a90417-995c-4c9b-b795-5f127fa6708b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:42.873814 [ 69184 ] {4592c512-359a-4f68-8fe6-e5d5185a55ed} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:42.972055 [ 69176 ] {4bd31fc1-1b7b-426d-9aaa-e727df8cc7fa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41200) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:43.050106 [ 69176 ] {4bd31fc1-1b7b-426d-9aaa-e727df8cc7fa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:44.502460 [ 69186 ] {3920400f-43c8-4906-bd33-f6ddfe1673d7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41224) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:44.526444 [ 69182 ] {03ec0f5d-a225-492b-8c17-1b99bb68e8a0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41218) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:44.588092 [ 69186 ] {3920400f-43c8-4906-bd33-f6ddfe1673d7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:44.634401 [ 69182 ] {03ec0f5d-a225-492b-8c17-1b99bb68e8a0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:44.639143 [ 69187 ] {22d88496-fe07-4083-a0f3-68f7fb338d24} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41204) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:44.716190 [ 69187 ] {22d88496-fe07-4083-a0f3-68f7fb338d24} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:44.766436 [ 69185 ] {c8e60d1f-7f5d-4ede-a56f-c2ec47ce3cdb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41234) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:44.942255 [ 69185 ] {c8e60d1f-7f5d-4ede-a56f-c2ec47ce3cdb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:45.173170 [ 62433 ] {cc735465-db88-4ec2-b42c-5cf82177d0f7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41238) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:45.246148 [ 62433 ] {cc735465-db88-4ec2-b42c-5cf82177d0f7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:46.472983 [ 69174 ] {5ac08bdf-fbac-43d0-9a20-ec6954f5f024} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41240) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:46.515688 [ 69174 ] {5ac08bdf-fbac-43d0-9a20-ec6954f5f024} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:46.743037 [ 69177 ] {c79a1757-fae3-4e89-a74b-4d72a8da054b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103320 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41262) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:46.750249 [ 69180 ] {b5b416df-df48-4d8a-8092-49a73e0317d0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41246) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:33:46.777408 [ 69179 ] {cbd81822-1998-4905-b0c8-bfe22c7686a6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41286) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:46.843077 [ 69179 ] {cbd81822-1998-4905-b0c8-bfe22c7686a6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:46.866848 [ 69175 ] {48580fdf-1f44-44d6-9d44-0c058696309e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41302) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:46.914012 [ 69173 ] {30b20100-22bc-4253-912b-3852daf5383e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41272) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:46.926861 [ 69175 ] {48580fdf-1f44-44d6-9d44-0c058696309e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:46.929600 [ 69180 ] {b5b416df-df48-4d8a-8092-49a73e0317d0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:33:46.949910 [ 69173 ] {30b20100-22bc-4253-912b-3852daf5383e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:47.010124 [ 69177 ] {c79a1757-fae3-4e89-a74b-4d72a8da054b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103320 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:48.339713 [ 69171 ] {69531b42-d86a-4fb3-a3e1-71c6d144bfe9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41304) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:48.468626 [ 69171 ] {69531b42-d86a-4fb3-a3e1-71c6d144bfe9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:48.601807 [ 69178 ] {a9af3fc1-5558-45be-a370-0c6fac881376} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41310) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:48.682339 [ 69178 ] {a9af3fc1-5558-45be-a370-0c6fac881376} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:48.811588 [ 62325 ] {09e95dc1-2f73-48bc-9d61-c1791a1de7e6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41324) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:48.909721 [ 62325 ] {09e95dc1-2f73-48bc-9d61-c1791a1de7e6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:49.193279 [ 69181 ] {7ef91b06-5e4a-4217-85eb-29d0173c9e0c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098576 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41338) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:49.209367 [ 69172 ] {129922ff-af0c-440d-99b6-57dd2b69aeae} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41326) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:49.288552 [ 69172 ] {129922ff-af0c-440d-99b6-57dd2b69aeae} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:49.412576 [ 69181 ] {7ef91b06-5e4a-4217-85eb-29d0173c9e0c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098576 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:51.078454 [ 69184 ] {40b32935-b60b-4814-9757-405226e7451b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41342) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:51.197319 [ 69183 ] {3a4396e0-0913-4dd3-9fa5-33d47eddf85b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41354) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:51.258525 [ 69184 ] {40b32935-b60b-4814-9757-405226e7451b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:51.298728 [ 69182 ] {0379d6d2-6abb-44eb-a307-b3ff4ad37e1d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41372) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:51.347955 [ 69183 ] {3a4396e0-0913-4dd3-9fa5-33d47eddf85b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:51.573624 [ 69176 ] {c9386578-edad-47bc-9a6a-b8625c8b86b7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41356) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:51.701783 [ 69186 ] {ceabaead-71bf-43b7-9e04-efab50d0f3d8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41384) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:51.709668 [ 69182 ] {0379d6d2-6abb-44eb-a307-b3ff4ad37e1d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:51.720511 [ 69176 ] {c9386578-edad-47bc-9a6a-b8625c8b86b7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:51.779182 [ 69186 ] {ceabaead-71bf-43b7-9e04-efab50d0f3d8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:53.150455 [ 62433 ] {786d19a0-a639-4123-b9a3-fe25d9c4eeb7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40420) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:53.263000 [ 62433 ] {786d19a0-a639-4123-b9a3-fe25d9c4eeb7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:53.669260 [ 69180 ] {aba51ace-b915-4884-bb1e-5ae1275d8fb7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40462) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:53.741118 [ 69179 ] {5b8a56d6-67c7-48c8-b3cc-7cb6e9700c07} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40436) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:53.890624 [ 69179 ] {5b8a56d6-67c7-48c8-b3cc-7cb6e9700c07} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:53.898392 [ 69180 ] {aba51ace-b915-4884-bb1e-5ae1275d8fb7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:53.979293 [ 69185 ] {2d24f1c4-bb91-474e-a321-49b82db2bfd8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40424) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:54.059786 [ 69185 ] {2d24f1c4-bb91-474e-a321-49b82db2bfd8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:54.220839 [ 69174 ] {b946fbae-cb7c-4aed-9507-b9bd795d56cb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40426) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:54.287309 [ 69174 ] {b946fbae-cb7c-4aed-9507-b9bd795d56cb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:54.326350 [ 69187 ] {782df5a2-6d5c-44c2-9e36-6695b283f1b3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40446) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:54.488145 [ 69187 ] {782df5a2-6d5c-44c2-9e36-6695b283f1b3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:55.433643 [ 69177 ] {4f846b50-b66a-44e1-b4d5-d1c4c983144d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098576 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40468) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:55.558724 [ 69177 ] {4f846b50-b66a-44e1-b4d5-d1c4c983144d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098576 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:55.691389 [ 69175 ] {c1aa357a-76f7-4583-9c70-99a62861afcc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40484) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:55.899854 [ 69171 ] {bbc8ca21-2e5d-4b94-83ad-8dc1549880fa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40480) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:56.037349 [ 69175 ] {c1aa357a-76f7-4583-9c70-99a62861afcc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:56.115567 [ 69171 ] {bbc8ca21-2e5d-4b94-83ad-8dc1549880fa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:56.374623 [ 62325 ] {bd8c4a0b-91f7-451d-9bfe-537216fbd6bb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40486) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:56.603812 [ 62325 ] {bd8c4a0b-91f7-451d-9bfe-537216fbd6bb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:57.426308 [ 69172 ] {b215ff38-4db1-43c0-b748-bcee88e5c0af} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40494) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:33:57.536079 [ 69172 ] {b215ff38-4db1-43c0-b748-bcee88e5c0af} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:33:57.656974 [ 69181 ] {ae3dccb5-3efd-4ad5-8c95-1d31e724e7e6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40508) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:57.776705 [ 69181 ] {ae3dccb5-3efd-4ad5-8c95-1d31e724e7e6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:57.831654 [ 69182 ] {becc633d-0d17-421c-92ea-22d082ca6e53} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40540) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:57.987769 [ 69182 ] {becc633d-0d17-421c-92ea-22d082ca6e53} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:58.011578 [ 69183 ] {5adacff1-0867-48cc-b8b4-c53299e88394} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40532) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:58.054763 [ 69184 ] {001e51fd-fa47-4beb-9a6b-cdde499b0ff4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40516) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:58.082702 [ 69183 ] {5adacff1-0867-48cc-b8b4-c53299e88394} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:58.190397 [ 69176 ] {75c76ae5-ec76-46b1-89be-dbc69429b611} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40554) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:58.249716 [ 69176 ] {75c76ae5-ec76-46b1-89be-dbc69429b611} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:58.301401 [ 69184 ] {001e51fd-fa47-4beb-9a6b-cdde499b0ff4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:33:59.962692 [ 69186 ] {17b242a9-782d-4513-8643-c49af1988291} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40562) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:00.187491 [ 69186 ] {17b242a9-782d-4513-8643-c49af1988291} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:00.294875 [ 62433 ] {350acc60-c870-4d13-86be-a933fe426001} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40576) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:00.351232 [ 69180 ] {e8ed1a23-0884-49b5-9960-0d3073e81d05} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40590) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:00.429416 [ 69174 ] {88aaef2e-5edc-4386-9b83-269418d1f7fb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40622) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:00.463115 [ 62433 ] {350acc60-c870-4d13-86be-a933fe426001} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:00.507343 [ 69180 ] {e8ed1a23-0884-49b5-9960-0d3073e81d05} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:00.583375 [ 69174 ] {88aaef2e-5edc-4386-9b83-269418d1f7fb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:00.712214 [ 69179 ] {9495e4d6-1f12-4f8d-bf0a-5905cf549385} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2104204 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40588) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:00.867613 [ 69185 ] {8e41ce83-f8bf-4a97-b80f-6938a9e3ddd7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40606) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:00.880699 [ 69179 ] {9495e4d6-1f12-4f8d-bf0a-5905cf549385} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2104204 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:00.948606 [ 69185 ] {8e41ce83-f8bf-4a97-b80f-6938a9e3ddd7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:02.629979 [ 69187 ] {979627ec-d746-4984-a145-d50fb2d43552} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40632) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:02.674717 [ 69177 ] {2da3b813-4065-42c2-a32a-43c41f552122} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40642) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:02.837165 [ 69177 ] {2da3b813-4065-42c2-a32a-43c41f552122} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:02.867311 [ 69175 ] {1c521783-878b-4e7b-b666-2b387825af30} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40644) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:02.951259 [ 69175 ] {1c521783-878b-4e7b-b666-2b387825af30} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:03.029896 [ 69187 ] {979627ec-d746-4984-a145-d50fb2d43552} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:03.090691 [ 69171 ] {0223c438-bfd0-4134-ae21-d2b5f800291d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39258) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:03.382649 [ 69171 ] {0223c438-bfd0-4134-ae21-d2b5f800291d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:04.604723 [ 69178 ] {58c96c39-f191-4dda-af8f-90e71c663188} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103272 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39280) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:04.636279 [ 62325 ] {686a11b2-ae3d-4ef8-bb30-5c1333914751} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39262) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:04.690462 [ 69181 ] {361bea97-2511-4880-9923-3c700c101cf3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39296) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:04.687496 [ 69173 ] {d88344dc-9b66-43d1-b8e7-31247bc2109b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39266) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:04.720169 [ 62325 ] {686a11b2-ae3d-4ef8-bb30-5c1333914751} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:04.768102 [ 69176 ] {d84c247d-5355-4618-b219-d19b015b51c0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39314) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:04.769341 [ 69181 ] {361bea97-2511-4880-9923-3c700c101cf3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:04.817883 [ 69176 ] {d84c247d-5355-4618-b219-d19b015b51c0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:04.895468 [ 69173 ] {d88344dc-9b66-43d1-b8e7-31247bc2109b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:04.900667 [ 69178 ] {58c96c39-f191-4dda-af8f-90e71c663188} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103272 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:05.061342 [ 69183 ] {f51093ef-4095-4633-beb1-e576da89ae62} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39310) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:05.141654 [ 69183 ] {f51093ef-4095-4633-beb1-e576da89ae62} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:06.488301 [ 69184 ] {0c1eb1cb-d7b4-4f66-83b5-af9d46cfe349} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39316) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:06.596990 [ 69184 ] {0c1eb1cb-d7b4-4f66-83b5-af9d46cfe349} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:06.981439 [ 69186 ] {9ac007dd-1e9d-47a3-8c03-57e12cad59e3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39352) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:07.085059 [ 69186 ] {9ac007dd-1e9d-47a3-8c03-57e12cad59e3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:07.152364 [ 62433 ] {1114fdec-94a3-479c-98aa-fe0aa97ba484} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39340) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:07.365658 [ 69179 ] {7633ada6-4a1f-450c-8caf-12a57bbb9233} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39366) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:07.417610 [ 62433 ] {1114fdec-94a3-479c-98aa-fe0aa97ba484} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:07.515152 [ 69179 ] {7633ada6-4a1f-450c-8caf-12a57bbb9233} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:07.885759 [ 69174 ] {2fe9e349-5f31-4c39-8556-51c829ba678e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103292 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39364) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:07.977461 [ 69174 ] {2fe9e349-5f31-4c39-8556-51c829ba678e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103292 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:09.419980 [ 69180 ] {ab1b941e-13eb-458e-bc36-7f8372617e3e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39390) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:09.485826 [ 69180 ] {ab1b941e-13eb-458e-bc36-7f8372617e3e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:09.736071 [ 69185 ] {fd44f9d7-7c61-4082-aade-a2d944913382} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39372) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:09.813207 [ 69177 ] {e9ac5b87-f44d-4b2d-8c65-2afbab9fba9b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39388) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:09.891925 [ 69177 ] {e9ac5b87-f44d-4b2d-8c65-2afbab9fba9b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:09.954755 [ 69175 ] {56eb8f3d-40e0-4773-aac8-9f1c40664524} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39402) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:10.018448 [ 69185 ] {fd44f9d7-7c61-4082-aade-a2d944913382} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:10.042555 [ 69175 ] {56eb8f3d-40e0-4773-aac8-9f1c40664524} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:11.068929 [ 69176 ] {27e7976a-d7a8-47a0-bc3d-582a5b9d4093} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39446) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:11.078160 [ 62325 ] {160fb915-a02d-4cc3-b522-813029963cda} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103320 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39430) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:11.125906 [ 69171 ] {8e234bb1-95a7-4af2-8881-8e60efc2e1ce} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39418) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:11.146995 [ 62325 ] {160fb915-a02d-4cc3-b522-813029963cda} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103320 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:11.163614 [ 69181 ] {612409fa-ccd0-449e-929f-72cef3a667b1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39432) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:11.220413 [ 69176 ] {27e7976a-d7a8-47a0-bc3d-582a5b9d4093} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:11.228475 [ 69171 ] {8e234bb1-95a7-4af2-8881-8e60efc2e1ce} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:11.321312 [ 69181 ] {612409fa-ccd0-449e-929f-72cef3a667b1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:11.496082 [ 69173 ] {2490798e-6fef-4470-8a81-9f71b5115620} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39458) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:11.586765 [ 69173 ] {2490798e-6fef-4470-8a81-9f71b5115620} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:11.651598 [ 69172 ] {029a7b9d-ce7b-471e-a3c5-a300ce811dde} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39452) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:11.785913 [ 69172 ] {029a7b9d-ce7b-471e-a3c5-a300ce811dde} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:13.358685 [ 69184 ] {af98e6a4-4cc9-42c7-98fc-e9e18b0eca63} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35118) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:13.419932 [ 69178 ] {4226fd0d-aad7-4d0b-917c-10a9a2d00829} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35108) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:13.451297 [ 69184 ] {af98e6a4-4cc9-42c7-98fc-e9e18b0eca63} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:13.521780 [ 69178 ] {4226fd0d-aad7-4d0b-917c-10a9a2d00829} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:13.855750 [ 69183 ] {f221f4bd-e2e5-4e8d-a269-9157ef226f9d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35134) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:13.921034 [ 69183 ] {f221f4bd-e2e5-4e8d-a269-9157ef226f9d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:14.463324 [ 69186 ] {025ddd0f-c2d2-401d-b734-138debe2bde4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35146) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:14.488946 [ 62433 ] {45817204-2a18-423d-a9b9-e42fd4dd8488} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1177824 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_8_8_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 31 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35140) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:34:14.586160 [ 69186 ] {025ddd0f-c2d2-401d-b734-138debe2bde4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:14.602091 [ 62433 ] {45817204-2a18-423d-a9b9-e42fd4dd8488} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1177824 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_8_8_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 31 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:34:15.826538 [ 69174 ] {efb9aff6-ba84-4cba-827c-b81738515e73} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35154) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:15.938560 [ 69174 ] {efb9aff6-ba84-4cba-827c-b81738515e73} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:16.009820 [ 69179 ] {bb9a4af9-160d-4425-8fbe-adf090070db4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35168) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:16.193655 [ 69177 ] {1be0180c-59a7-447c-89b4-7b903d0d39fc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35174) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:16.255701 [ 69177 ] {1be0180c-59a7-447c-89b4-7b903d0d39fc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:16.290813 [ 69179 ] {bb9a4af9-160d-4425-8fbe-adf090070db4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:16.542226 [ 69180 ] {9b4d2eef-3260-4b9a-92cb-b1298e825dd2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35190) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:16.618827 [ 69180 ] {9b4d2eef-3260-4b9a-92cb-b1298e825dd2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:17.539794 [ 69187 ] {bd2b538d-f35d-4b06-a1b8-4a94823fffc9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1182504 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_8_8_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 23 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35230) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:34:17.595479 [ 69182 ] {bf4d14d0-9d21-47f8-9ad4-d3890f4ceceb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 54.00 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_10_10_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 47 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39324) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:34:17.620305 [ 62325 ] {ed5b6e8f-ccfe-4543-98ba-9dd969668f3b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35208) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:17.705748 [ 62325 ] {ed5b6e8f-ccfe-4543-98ba-9dd969668f3b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:17.711349 [ 69182 ] {bf4d14d0-9d21-47f8-9ad4-d3890f4ceceb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 54.00 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_10_10_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 47 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:34:17.774804 [ 69173 ] {0363e9dc-d8a2-4f71-aa8a-db5d81b287d6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35246) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:17.810847 [ 69187 ] {bd2b538d-f35d-4b06-a1b8-4a94823fffc9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1182504 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_8_8_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 23 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:34:17.866321 [ 69173 ] {0363e9dc-d8a2-4f71-aa8a-db5d81b287d6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:17.892566 [ 69181 ] {f5a8e4e2-4fb0-4989-bc89-9d192ace162a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35234) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:17.933392 [ 69181 ] {f5a8e4e2-4fb0-4989-bc89-9d192ace162a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:18.115364 [ 69175 ] {386648a2-0bf5-4ce7-bdc6-a455dc387f79} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35218) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:34:18.117114 [ 69185 ] {960ba43d-4eda-4158-97a1-694c57f2ed97} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 1182716 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_1_6_1/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 126 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35196) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:34:18.226950 [ 69185 ] {960ba43d-4eda-4158-97a1-694c57f2ed97} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 1182716 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_1_6_1/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 126 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:34:18.312833 [ 69175 ] {386648a2-0bf5-4ce7-bdc6-a455dc387f79} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:34:20.305910 [ 69176 ] {a731ef81-f188-4f25-8e28-7983e0fad8e0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35254) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:20.324011 [ 69184 ] {b06e1592-d325-47ba-a79b-b1987c5a1406} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35258) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:20.344838 [ 69178 ] {3441eb84-4ad4-431b-afd6-08794633372e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102424 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35262) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:20.394982 [ 69178 ] {3441eb84-4ad4-431b-afd6-08794633372e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102424 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:20.496989 [ 69184 ] {b06e1592-d325-47ba-a79b-b1987c5a1406} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:20.573485 [ 69176 ] {a731ef81-f188-4f25-8e28-7983e0fad8e0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:20.829921 [ 69171 ] {6d8bfdb2-359b-4807-8f78-61472de7be4b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35288) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:21.017205 [ 69171 ] {6d8bfdb2-359b-4807-8f78-61472de7be4b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:21.124525 [ 69183 ] {e1935535-acf3-4147-819c-1eb48cc044e6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098624 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35274) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:21.244928 [ 69183 ] {e1935535-acf3-4147-819c-1eb48cc044e6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098624 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:22.375177 [ 62433 ] {baa5f10b-045a-4fb6-86ca-7d2a25f0111a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35300) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:22.456825 [ 62433 ] {baa5f10b-045a-4fb6-86ca-7d2a25f0111a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:22.552149 [ 69186 ] {64760aaf-5f1e-4983-9719-36ae4902af37} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35304) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:22.564943 [ 69174 ] {21624555-9234-4ce5-9220-3193ce13ddb7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35316) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:22.658551 [ 69186 ] {64760aaf-5f1e-4983-9719-36ae4902af37} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:22.659982 [ 69174 ] {21624555-9234-4ce5-9220-3193ce13ddb7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:23.595878 [ 69177 ] {72851edf-bac1-4a73-96c5-953a2715c80c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37986) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:23.735821 [ 69177 ] {72851edf-bac1-4a73-96c5-953a2715c80c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:24.523133 [ 69173 ] {bb4714f5-b10a-4399-912b-96b0042f24aa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38036) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:24.680557 [ 69187 ] {1abf0a80-9201-4507-b008-90c1dbb2e912} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38020) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:24.755039 [ 69173 ] {bb4714f5-b10a-4399-912b-96b0042f24aa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:24.785012 [ 69187 ] {1abf0a80-9201-4507-b008-90c1dbb2e912} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:24.839455 [ 69179 ] {12a5255f-8a61-4960-ae91-b69bb257238c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37996) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:24.991346 [ 69179 ] {12a5255f-8a61-4960-ae91-b69bb257238c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:25.036575 [ 69180 ] {f4a89a10-84bb-4d21-8e19-6008aa22d659} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38008) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:25.138344 [ 69182 ] {53bcc064-3f71-46df-b96f-c16222abfc56} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38022) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:25.240100 [ 69182 ] {53bcc064-3f71-46df-b96f-c16222abfc56} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:25.283129 [ 69180 ] {f4a89a10-84bb-4d21-8e19-6008aa22d659} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:25.402705 [ 69181 ] {c7418455-ca7a-4336-a7f4-407226503145} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103454 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38044) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:25.588698 [ 69181 ] {c7418455-ca7a-4336-a7f4-407226503145} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103454 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:27.174428 [ 69178 ] {aa0fd0d4-53df-427b-a7bb-65ad7f3d3a58} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38062) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:27.262014 [ 69178 ] {aa0fd0d4-53df-427b-a7bb-65ad7f3d3a58} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:27.346613 [ 69175 ] {504c0b50-1a39-4b87-99df-c0b1464c4dae} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38056) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:27.434692 [ 69184 ] {5177195c-4dc9-425e-a3a9-8a7d4262d5ae} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38064) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:27.507202 [ 69175 ] {504c0b50-1a39-4b87-99df-c0b1464c4dae} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:27.585919 [ 69184 ] {5177195c-4dc9-425e-a3a9-8a7d4262d5ae} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:27.998511 [ 69185 ] {f5b38886-d7db-4692-8834-f63ef9947001} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38080) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:28.064071 [ 69185 ] {f5b38886-d7db-4692-8834-f63ef9947001} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:28.069161 [ 69176 ] {fe408001-cf6c-4e4e-817a-436542ed4e2e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38074) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:28.285678 [ 69176 ] {fe408001-cf6c-4e4e-817a-436542ed4e2e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:29.599172 [ 69183 ] {4160dbe3-e16c-4d1a-afc2-e0dabfb71802} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38084) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:29.689582 [ 69171 ] {027544ef-53f7-47d2-aa7b-14ab0849732d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38106) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:29.782329 [ 69171 ] {027544ef-53f7-47d2-aa7b-14ab0849732d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:30.021400 [ 69183 ] {4160dbe3-e16c-4d1a-afc2-e0dabfb71802} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:30.235657 [ 62433 ] {320e109d-6883-4a28-b531-15907fa038e8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38094) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:30.395284 [ 62433 ] {320e109d-6883-4a28-b531-15907fa038e8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:31.305726 [ 69186 ] {3c3772f1-3c6e-439a-b3c7-82c026617c5a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38110) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:31.310976 [ 69174 ] {265b47e6-45b1-4433-bddb-3e42c8b914e1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38116) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:31.358409 [ 69173 ] {ce961ef2-bede-4e09-afb1-0fdade2f4ecf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38144) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:31.392938 [ 69174 ] {265b47e6-45b1-4433-bddb-3e42c8b914e1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:31.454536 [ 69182 ] {6f51ef96-b00e-4ebf-ad5a-81d7aa3245d4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38166) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:31.452636 [ 69187 ] {af844c1d-f995-4d49-882a-6f98ecbb4feb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38128) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:31.504178 [ 69182 ] {6f51ef96-b00e-4ebf-ad5a-81d7aa3245d4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:31.545198 [ 69172 ] {164862f1-5bcd-4688-816d-d2bc2530ce06} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38156) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:31.553587 [ 69177 ] {04411d3b-41eb-42df-b2bf-e2d9978fbc25} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38126) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:31.607410 [ 69172 ] {164862f1-5bcd-4688-816d-d2bc2530ce06} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:31.620321 [ 69173 ] {ce961ef2-bede-4e09-afb1-0fdade2f4ecf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:31.654312 [ 69187 ] {af844c1d-f995-4d49-882a-6f98ecbb4feb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:31.749048 [ 69177 ] {04411d3b-41eb-42df-b2bf-e2d9978fbc25} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:31.833676 [ 69186 ] {3c3772f1-3c6e-439a-b3c7-82c026617c5a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:33.297403 [ 69181 ] {73644b20-1bab-4366-aabb-a538bc64d7cc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60250) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:33.371327 [ 69181 ] {73644b20-1bab-4366-aabb-a538bc64d7cc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:33.575850 [ 69178 ] {db1cdb84-e2de-45e0-a034-6d10e4cf27eb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60258) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:34:33.664323 [ 69184 ] {0bb90478-d66d-4b6d-a9f0-338015ea1653} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60272) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:33.735043 [ 69184 ] {0bb90478-d66d-4b6d-a9f0-338015ea1653} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:33.766454 [ 69185 ] {81b868ee-ba23-4ea0-9e3f-a5d7d464ec2e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2104204 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60286) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:33.926353 [ 69185 ] {81b868ee-ba23-4ea0-9e3f-a5d7d464ec2e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2104204 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:34.138504 [ 69175 ] {0ecc2a14-4422-45c5-b9fc-9e43aa5e0039} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60266) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:34.169604 [ 69178 ] {db1cdb84-e2de-45e0-a034-6d10e4cf27eb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:34:34.231655 [ 69175 ] {0ecc2a14-4422-45c5-b9fc-9e43aa5e0039} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:34.832064 [ 62325 ] {82681a08-b032-4053-bc6c-f749f569ab72} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 62.77 MiB (attempt to allocate chunk of 1181592 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38018) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:34:34.935537 [ 62325 ] {82681a08-b032-4053-bc6c-f749f569ab72} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 62.77 MiB (attempt to allocate chunk of 1181592 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/70c/70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb/all_9_9_0/ in table test_hcsqx1lp.t (70c37b08-45ae-4bd3-9e34-fa24dc5f5cdb) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387c58d in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1a8702 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba9e33f in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba232f2 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e10008b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0ff3ee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e13b00c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13b2e4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e13bba5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e145731 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e143e66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e1313af in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e131bb1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e12fe99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001ef11f4a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 2024.10.22 10:34:35.834371 [ 69176 ] {95258667-2d0a-4c6c-b71d-6796bd5960ce} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60294) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:35.911344 [ 69183 ] {b1c6361a-82ec-4569-a1a1-530d967762e4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60310) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:35.922424 [ 69176 ] {95258667-2d0a-4c6c-b71d-6796bd5960ce} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:35.920286 [ 69171 ] {f1f0457a-cdf6-483a-a7fb-6c58d686ada8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60302) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:36.119705 [ 69171 ] {f1f0457a-cdf6-483a-a7fb-6c58d686ada8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:36.175708 [ 69183 ] {b1c6361a-82ec-4569-a1a1-530d967762e4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:37.463144 [ 62433 ] {9e0003c7-35a3-486a-92c5-26de9423bacd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60314) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:37.718302 [ 69173 ] {261d5e09-07dd-453e-9a9d-f66d7902259d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60346) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:37.741471 [ 62433 ] {9e0003c7-35a3-486a-92c5-26de9423bacd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:37.789354 [ 69182 ] {48859132-54da-450b-8592-ba2dd68228de} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60332) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:37.803075 [ 69187 ] {e4cc2dea-7839-4ca3-b1b6-e8f9154e59b8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60342) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:37.803810 [ 69173 ] {261d5e09-07dd-453e-9a9d-f66d7902259d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:37.860801 [ 69182 ] {48859132-54da-450b-8592-ba2dd68228de} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:37.869020 [ 69174 ] {0bed13d8-0a0d-4069-8d93-017e8aa2b82e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60322) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:37.929240 [ 69179 ] {93dbaa77-00bd-4a44-86ed-b14caf027b1b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60334) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:37.943601 [ 69187 ] {e4cc2dea-7839-4ca3-b1b6-e8f9154e59b8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:37.960129 [ 69172 ] {059b139b-f283-4c78-8bf1-d85c14b6ed44} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60340) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:38.000482 [ 69174 ] {0bed13d8-0a0d-4069-8d93-017e8aa2b82e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:38.023739 [ 69172 ] {059b139b-f283-4c78-8bf1-d85c14b6ed44} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:38.134470 [ 69179 ] {93dbaa77-00bd-4a44-86ed-b14caf027b1b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:40.373705 [ 69186 ] {98b0ce9d-6bf1-4759-a42e-8d0296c3142e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60348) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:40.382585 [ 69184 ] {e3305740-cb66-41e9-85c6-50269461e939} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60366) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:40.390334 [ 69185 ] {f671e9c0-ee2d-4c5d-8175-23557c926539} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60378) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:40.448461 [ 69185 ] {f671e9c0-ee2d-4c5d-8175-23557c926539} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:40.481300 [ 69186 ] {98b0ce9d-6bf1-4759-a42e-8d0296c3142e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:40.536786 [ 69181 ] {94c8134a-81e4-463c-95e6-84f1ba491464} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60352) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:40.632118 [ 69184 ] {e3305740-cb66-41e9-85c6-50269461e939} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:40.710270 [ 69181 ] {94c8134a-81e4-463c-95e6-84f1ba491464} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:40.823012 [ 69178 ] {9592fd48-2252-4762-a2ba-9377f1a7cb40} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098624 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60394) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:41.078532 [ 69178 ] {9592fd48-2252-4762-a2ba-9377f1a7cb40} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098624 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:41.637698 [ 69177 ] {2a0cc34d-7e62-455c-bc42-0d4e7087b1fa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103320 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60426) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:41.738682 [ 69175 ] {5f688d68-52b8-4c4d-a801-71683ca438ec} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60406) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:41.800097 [ 69175 ] {5f688d68-52b8-4c4d-a801-71683ca438ec} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:41.863638 [ 69177 ] {2a0cc34d-7e62-455c-bc42-0d4e7087b1fa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103320 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:42.005914 [ 69176 ] {0bf4b802-1bf8-4872-b102-b74b8b797e18} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60422) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:42.022626 [ 62325 ] {e1bd62e3-4de0-4ec4-a149-589b9054646b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60416) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:42.060730 [ 62325 ] {e1bd62e3-4de0-4ec4-a149-589b9054646b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:42.136092 [ 69176 ] {0bf4b802-1bf8-4872-b102-b74b8b797e18} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:42.285896 [ 62433 ] {981e8d42-3e48-4698-90a5-1d015f19c0ed} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102632 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41904) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:42.292577 [ 69171 ] {39ff20b1-29e8-4cf8-9d50-d4bea9fc4f9c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41914) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:42.342279 [ 69171 ] {39ff20b1-29e8-4cf8-9d50-d4bea9fc4f9c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:42.342437 [ 69183 ] {cffd4f04-b8eb-4b9f-abee-e3d1dea11be8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41888) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:34:42.362329 [ 69173 ] {70d53b16-8eec-4914-afd3-3fc3abb0a402} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41912) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:42.370721 [ 62433 ] {981e8d42-3e48-4698-90a5-1d015f19c0ed} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102632 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:42.427923 [ 69173 ] {70d53b16-8eec-4914-afd3-3fc3abb0a402} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:42.451169 [ 69183 ] {cffd4f04-b8eb-4b9f-abee-e3d1dea11be8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:34:42.567902 [ 69180 ] {6e89cf01-a21d-4209-b89f-6f367d9e7095} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41928) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:34:42.755929 [ 69180 ] {6e89cf01-a21d-4209-b89f-6f367d9e7095} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:34:43.048137 [ 69172 ] {5cde66a6-f076-4e62-bdc0-4ccbf09ebad2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098576 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41932) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:43.123849 [ 69172 ] {5cde66a6-f076-4e62-bdc0-4ccbf09ebad2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098576 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:43.356944 [ 69182 ] {02c01441-1485-40ed-b236-ee6dcd82f60d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.06 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41918) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:34:43.374259 [ 69187 ] {f41d4fa3-36bb-404a-98c1-64901c4e8bf3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 8388608 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41916) (in query: select count(distinct s) from test_hcsqx1lp.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:43.375314 [ 69182 ] {02c01441-1485-40ed-b236-ee6dcd82f60d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.06 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 10:34:43.388970 [ 69187 ] {f41d4fa3-36bb-404a-98c1-64901c4e8bf3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 8388608 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cbf6ea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c8bd00 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0e2e0e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02512f in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:34:58.026344 [ 69187 ] {271eb7ad-3268-4073-ae78-5998d145280d} executeQuery: Code: 36. DB::Exception: Replicated database requires 3 arguments: zookeeper path, shard name and replica name. (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33682) (comment: 02762_replicated_database_no_args.sql) (in query: create database replicated_db_no_args engine=Replicated;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [86]) @ 0x000000000f200c9e in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseFactory.cpp:289: DB::DatabaseFactory::getImpl(DB::ASTCreateQuery const&, String const&, std::shared_ptr) @ 0x000000001c80e2a2 in /usr/bin/clickhouse 7. /build/src/Databases/DatabaseFactory.cpp:110: DB::DatabaseFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr) @ 0x000000001c80c14f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:280: DB::InterpreterCreateQuery::createDatabase(DB::ASTCreateQuery&) @ 0x000000001c7e98e0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1728: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd43f in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:34:58.027141 [ 69187 ] {271eb7ad-3268-4073-ae78-5998d145280d} TCPHandler: Code: 36. DB::Exception: Replicated database requires 3 arguments: zookeeper path, shard name and replica name. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [86]) @ 0x000000000f200c9e in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseFactory.cpp:289: DB::DatabaseFactory::getImpl(DB::ASTCreateQuery const&, String const&, std::shared_ptr) @ 0x000000001c80e2a2 in /usr/bin/clickhouse 7. /build/src/Databases/DatabaseFactory.cpp:110: DB::DatabaseFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr) @ 0x000000001c80c14f in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:280: DB::InterpreterCreateQuery::createDatabase(DB::ASTCreateQuery&) @ 0x000000001c7e98e0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1728: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd43f in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:35:31.963735 [ 938 ] {} test_ykayxxpk.r5 (dcdcb256-baa9-431c-bb36-c247bd9bf3a8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:31.966714 [ 941 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:31.967224 [ 940 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:32.123822 [ 936 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_1_1_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:32.124656 [ 944 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:32.126430 [ 938 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_1_1_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:32.127289 [ 935 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:32.227923 [ 942 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr3&part=all_2_2_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:32.227970 [ 938 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_1_1_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:32.229102 [ 941 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_1_1_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:32.231062 [ 936 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:32.231951 [ 944 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:33.071737 [ 940 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:33.074308 [ 941 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr3&part=all_2_2_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:33.075590 [ 938 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_1_1_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:33.228753 [ 944 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:33.230857 [ 942 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_1_1_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:33.331902 [ 938 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr3&part=all_2_2_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:33.333024 [ 941 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:33.333428 [ 936 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_1_1_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:33.610303 [ 940 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_1_1_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:33.612332 [ 942 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:33.930101 [ 944 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_1_1_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:33.931643 [ 940 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:33.932412 [ 939 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_1_1_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:33.952943 [ 935 ] {} test_ykayxxpk.r4 (ab9414d5-1b0c-42a5-8b28-d1e90a0f8757): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:33.965780 [ 941 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_1_1_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:33.981240 [ 935 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_1_1_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:33.983325 [ 941 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_1_1_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:33.983627 [ 936 ] {} test_ykayxxpk.r4 (ab9414d5-1b0c-42a5-8b28-d1e90a0f8757): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:33.987156 [ 940 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:34.012342 [ 944 ] {} test_ykayxxpk.r4 (ab9414d5-1b0c-42a5-8b28-d1e90a0f8757): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr2&part=all_4_4_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:34.014910 [ 940 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_1_1_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:34.015360 [ 941 ] {} test_ykayxxpk.r4 (ab9414d5-1b0c-42a5-8b28-d1e90a0f8757): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:34.021451 [ 944 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr2&part=all_3_3_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:34.025969 [ 936 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_1_1_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:34.027367 [ 939 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr2&part=all_4_4_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:34.028675 [ 938 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:34.042006 [ 940 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_3_3_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:34.043770 [ 939 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_1_1_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:34.045468 [ 941 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr2&part=all_4_4_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:34.046739 [ 936 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:34.065025 [ 944 ] {} test_ykayxxpk.r5 (dcdcb256-baa9-431c-bb36-c247bd9bf3a8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_2_2_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:34.068409 [ 938 ] {} test_ykayxxpk.r5 (dcdcb256-baa9-431c-bb36-c247bd9bf3a8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_1_1_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:34.076204 [ 935 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_1_1_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:34.094643 [ 938 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_1_1_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:34.101818 [ 942 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_1_1_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:34.120886 [ 938 ] {} test_ykayxxpk.r5 (dcdcb256-baa9-431c-bb36-c247bd9bf3a8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_1_1_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:34.133668 [ 942 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_1_1_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:34.136111 [ 936 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_1_1_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:36.000374 [ 940 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_7_7_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:36.159024 [ 938 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_7_7_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:36.161588 [ 935 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_8_8_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:36.884352 [ 942 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_7_7_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:36.884727 [ 940 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_8_8_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:37.562083 [ 944 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_8_8_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:37.564696 [ 938 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_7_7_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:37.582294 [ 939 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_7_7_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:37.585149 [ 940 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_8_8_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:37.597597 [ 935 ] {} test_ykayxxpk.r5 (dcdcb256-baa9-431c-bb36-c247bd9bf3a8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_8_8_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:37.599986 [ 938 ] {} test_ykayxxpk.r5 (dcdcb256-baa9-431c-bb36-c247bd9bf3a8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_7_7_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:37.606036 [ 936 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_8_8_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:37.609966 [ 944 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_7_7_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:37.735431 [ 941 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr3&part=all_7_7_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:37.736648 [ 940 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr3&part=all_9_9_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:37.739039 [ 944 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr3&part=all_9_9_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:37.760072 [ 938 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr3&part=all_7_7_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:37.760950 [ 939 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr3&part=all_9_9_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:39.532591 [ 941 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_13_13_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:39.532772 [ 944 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_13_13_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:39.726879 [ 935 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_13_13_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:40.014649 [ 939 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_13_13_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:40.034694 [ 941 ] {} test_ykayxxpk.r5 (dcdcb256-baa9-431c-bb36-c247bd9bf3a8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:40.037258 [ 944 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:40.038725 [ 940 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_13_13_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:40.042922 [ 935 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:40.043953 [ 942 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_13_13_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:40.059906 [ 939 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:40.060385 [ 941 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_13_13_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:40.062827 [ 944 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_13_13_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:40.063440 [ 942 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:40.064268 [ 940 ] {} test_ykayxxpk.r5 (dcdcb256-baa9-431c-bb36-c247bd9bf3a8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:40.088785 [ 940 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:40.089783 [ 944 ] {} test_ykayxxpk.r5 (dcdcb256-baa9-431c-bb36-c247bd9bf3a8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:40.091347 [ 939 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_13_13_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:40.094013 [ 942 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_13_13_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:40.094537 [ 935 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:40.779618 [ 944 ] {} test_ykayxxpk.r5 (dcdcb256-baa9-431c-bb36-c247bd9bf3a8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:40.872057 [ 936 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_13_13_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:40.872602 [ 939 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:40.999310 [ 941 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:41.000613 [ 935 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_13_13_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:41.032590 [ 936 ] {} test_ykayxxpk.r5 (dcdcb256-baa9-431c-bb36-c247bd9bf3a8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:41.203945 [ 940 ] {} test_ykayxxpk.r5 (dcdcb256-baa9-431c-bb36-c247bd9bf3a8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:41.311516 [ 939 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:41.333111 [ 935 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:41.415951 [ 942 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_16_16_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:41.417027 [ 944 ] {} test_ykayxxpk.r5 (dcdcb256-baa9-431c-bb36-c247bd9bf3a8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_16_16_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:41.418197 [ 941 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:41.445795 [ 944 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr2&part=all_13_13_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:43.289679 [ 941 ] {} test_ykayxxpk.r4 (ab9414d5-1b0c-42a5-8b28-d1e90a0f8757): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_19_19_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:43.291925 [ 938 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_19_19_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:43.292023 [ 942 ] {} test_ykayxxpk.r5 (dcdcb256-baa9-431c-bb36-c247bd9bf3a8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_19_19_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:43.537777 [ 944 ] {} test_ykayxxpk.r4 (ab9414d5-1b0c-42a5-8b28-d1e90a0f8757): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_19_19_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:43.760938 [ 938 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_19_19_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:43.761027 [ 941 ] {} test_ykayxxpk.r4 (ab9414d5-1b0c-42a5-8b28-d1e90a0f8757): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_19_19_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:43.761194 [ 942 ] {} test_ykayxxpk.r5 (dcdcb256-baa9-431c-bb36-c247bd9bf3a8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_19_19_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:43.778137 [ 941 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_19_19_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:43.778883 [ 936 ] {} test_ykayxxpk.r5 (dcdcb256-baa9-431c-bb36-c247bd9bf3a8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_21_21_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:43.781741 [ 935 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_21_21_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:43.781737 [ 944 ] {} test_ykayxxpk.r4 (ab9414d5-1b0c-42a5-8b28-d1e90a0f8757): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_19_19_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:43.781814 [ 938 ] {} test_ykayxxpk.r5 (dcdcb256-baa9-431c-bb36-c247bd9bf3a8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_19_19_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:43.782879 [ 942 ] {} test_ykayxxpk.r4 (ab9414d5-1b0c-42a5-8b28-d1e90a0f8757): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_21_21_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:43.797984 [ 941 ] {} test_ykayxxpk.r4 (ab9414d5-1b0c-42a5-8b28-d1e90a0f8757): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_19_19_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:43.798915 [ 936 ] {} test_ykayxxpk.r4 (ab9414d5-1b0c-42a5-8b28-d1e90a0f8757): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_21_21_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:43.799038 [ 942 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_21_21_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:43.802234 [ 935 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_19_19_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:44.196976 [ 941 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_21_21_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:44.197417 [ 939 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_19_19_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:44.252319 [ 942 ] {} test_ykayxxpk.r5 (dcdcb256-baa9-431c-bb36-c247bd9bf3a8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_19_19_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:44.253022 [ 940 ] {} test_ykayxxpk.r5 (dcdcb256-baa9-431c-bb36-c247bd9bf3a8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_21_21_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:44.423952 [ 936 ] {} test_ykayxxpk.r4 (ab9414d5-1b0c-42a5-8b28-d1e90a0f8757): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_19_19_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:44.425139 [ 941 ] {} test_ykayxxpk.r4 (ab9414d5-1b0c-42a5-8b28-d1e90a0f8757): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_21_21_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:44.973786 [ 923 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {7a8df88c-1e0d-47c8-b4b3-61d2113494bd::all_0_21_4}: Code: 234. DB::Exception: No active replica has part all_0_21_4 or covering part (cannot execute queue-0000000024: MERGE_PARTS with virtual parts [all_0_21_4]). (NO_REPLICA_HAS_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&, String&&) @ 0x000000001ac08088 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:1940: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d832f58 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e27dd34 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e27caff in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e27b560 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de56fed in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de57a4e in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5ff38 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>()()) std::__invoke[abi:v15000]::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001de5ff15 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001de5fef5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001de5fed5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001de5fe9d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a6a4e0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:45.038375 [ 940 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr4&part=all_0_21_4&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:47.012896 [ 935 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_25_25_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:47.420934 [ 941 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_25_25_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:47.494247 [ 939 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_26_26_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:47.496253 [ 936 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_25_25_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:47.835810 [ 938 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_27_27_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:47.836189 [ 944 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_26_26_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:47.836932 [ 941 ] {} test_ykayxxpk.r5 (dcdcb256-baa9-431c-bb36-c247bd9bf3a8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_27_27_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:47.836916 [ 940 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_25_25_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.009909 [ 939 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_25_25_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.014134 [ 944 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_27_27_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.014836 [ 938 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_26_26_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.237482 [ 940 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_25_25_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.238285 [ 939 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_27_27_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.242847 [ 942 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_26_26_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.392849 [ 936 ] {} test_ykayxxpk.r4 (ab9414d5-1b0c-42a5-8b28-d1e90a0f8757): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_26_26_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.393632 [ 938 ] {} test_ykayxxpk.r4 (ab9414d5-1b0c-42a5-8b28-d1e90a0f8757): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_25_25_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.397491 [ 935 ] {} test_ykayxxpk.r4 (ab9414d5-1b0c-42a5-8b28-d1e90a0f8757): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_27_27_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.556898 [ 942 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_25_25_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.558665 [ 941 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_26_26_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.782879 [ 944 ] {} test_ykayxxpk.r5 (dcdcb256-baa9-431c-bb36-c247bd9bf3a8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_27_27_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.808810 [ 936 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_25_25_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.809064 [ 942 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_27_27_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.810217 [ 940 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_26_26_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.921101 [ 935 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_26_26_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.921778 [ 936 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_27_27_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.922308 [ 942 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_25_25_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.924004 [ 941 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_26_26_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.928847 [ 944 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_25_25_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.929152 [ 940 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_27_27_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.955779 [ 941 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_27_27_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.955890 [ 942 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr1&part=all_27_27_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.957601 [ 935 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_25_25_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.958018 [ 944 ] {} test_ykayxxpk.r3 (a3b7eb1f-757a-424d-a248-7ce546153c39): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_26_26_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.959047 [ 940 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_25_25_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:48.964305 [ 939 ] {} test_ykayxxpk.r2 (7a8df88c-1e0d-47c8-b4b3-61d2113494bd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_26_26_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:49.026021 [ 935 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_25_25_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:49.027769 [ 941 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_26_26_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:49.045093 [ 939 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_25_25_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:49.046579 [ 938 ] {} test_ykayxxpk.r1 (949f89f4-60f3-47b9-9270-aed402d391e8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_ykayxxpk%2Fr%2Freplicas%2Fr5&part=all_26_26_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.16.42.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013cb1964 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5b8b in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013cb1731 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013ca5a2b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013ca5846 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c743cb in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c77970 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c76300 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c76032 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c67533 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dd34846 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dd279cc in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4596: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d8e1929 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1595 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d8e1555 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d8e1515 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8e14e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d934156 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d8ecd35 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4620: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83de34 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:35:49.231368 [ 920 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {7a8df88c-1e0d-47c8-b4b3-61d2113494bd::all_0_28_5}: Code: 234. DB::Exception: No active replica has part all_0_28_5 or covering part (cannot execute queue-0000000032: MERGE_PARTS with virtual parts [all_0_28_5]). (NO_REPLICA_HAS_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&, String&&) @ 0x000000001ac08088 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:1940: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d832f58 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e27dd34 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e27caff in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e27b560 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de56fed in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de57a4e in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5ff38 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>()()) std::__invoke[abi:v15000]::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001de5ff15 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001de5fef5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001de5fed5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001de5fe9d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a6a4e0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:36:55.679753 [ 69183 ] {ba819cef-a76c-4039-bc80-d4b1d4241347} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48404) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:36:55.680544 [ 69183 ] {ba819cef-a76c-4039-bc80-d4b1d4241347} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:39:52.728318 [ 69183 ] {30e5174a-e6c4-44eb-8042-37407616e254} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack UUID into column with type Int32.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58402) (comment: 02422_msgpack_uuid_wrong_column.sql) (in query: select * from file(02422_data.msgpack, auto, 'x Int32');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:338: DB::insertUUID(DB::IColumn&, std::shared_ptr, char const*, unsigned long) @ 0x000000001e8d977f in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:486: DB::MsgPackVisitor::visit_ext(char const*, unsigned int) @ 0x000000001e8d94c4 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:453: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f2b5e in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 2024.10.22 10:39:52.732247 [ 69183 ] {30e5174a-e6c4-44eb-8042-37407616e254} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack UUID into column with type Int32.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:338: DB::insertUUID(DB::IColumn&, std::shared_ptr, char const*, unsigned long) @ 0x000000001e8d977f in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:486: DB::MsgPackVisitor::visit_ext(char const*, unsigned int) @ 0x000000001e8d94c4 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:453: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f2b5e in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 2024.10.22 10:39:55.878525 [ 69183 ] {358f53ae-a2e3-4618-832b-1e23f4035070} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58412) (in query: select _path, _file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:39:55.879431 [ 69183 ] {358f53ae-a2e3-4618-832b-1e23f4035070} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:40:14.161812 [ 69183 ] {f51be259-79da-4fad-b314-77539c004ed4} executeQuery: Code: 471. DB::Exception: Invalid value '0' for max_read_buffer_size. (INVALID_SETTING_VALUE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39068) (comment: 02411_merge_tree_zero_max_read_buffer_size.sql) (in query: SELECT * FROM data_02411 FORMAT Null SETTINGS max_read_buffer_size=0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception const&>(int, FormatStringHelperImpl const&>::type>, DB::SettingFieldNumber const&) @ 0x000000001bdf60f3 in /usr/bin/clickhouse 6. /build/src/Interpreters/Context.cpp:4632: DB::Context::getReadSettings() const @ 0x000000001bde5560 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:114: DB::getMergeTreeReaderSettings(std::shared_ptr const&, DB::SelectQueryInfo const&) @ 0x000000001ee9b22d in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:259: DB::ReadFromMergeTree::ReadFromMergeTree(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector>, std::vector>, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr, std::shared_ptr, unsigned long, unsigned long, bool, std::shared_ptr, std::equal_to, std::allocator>>>, Poco::Logger*, std::shared_ptr, bool) @ 0x000000001ee9a3ce in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000], std::allocator>>, std::vector, std::allocator>>, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&>(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&) @ 0x000000001dfc1798 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1305: DB::MergeTreeDataSelectExecutor::readFromParts(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, std::shared_ptr, bool) const @ 0x000000001dfaebab in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:168: DB::MergeTreeDataSelectExecutor::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, DB::QueryProcessingStage::Enum, std::shared_ptr, std::equal_to, std::allocator>>>, bool) const @ 0x000000001dfab40c in /usr/bin/clickhouse 12. /build/src/Storages/StorageMergeTree.cpp:252: DB::StorageMergeTree::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001e365a5f in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:40:14.162922 [ 69183 ] {f51be259-79da-4fad-b314-77539c004ed4} TCPHandler: Code: 471. DB::Exception: Invalid value '0' for max_read_buffer_size. (INVALID_SETTING_VALUE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception const&>(int, FormatStringHelperImpl const&>::type>, DB::SettingFieldNumber const&) @ 0x000000001bdf60f3 in /usr/bin/clickhouse 6. /build/src/Interpreters/Context.cpp:4632: DB::Context::getReadSettings() const @ 0x000000001bde5560 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:114: DB::getMergeTreeReaderSettings(std::shared_ptr const&, DB::SelectQueryInfo const&) @ 0x000000001ee9b22d in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:259: DB::ReadFromMergeTree::ReadFromMergeTree(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector>, std::vector>, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr, std::shared_ptr, unsigned long, unsigned long, bool, std::shared_ptr, std::equal_to, std::allocator>>>, Poco::Logger*, std::shared_ptr, bool) @ 0x000000001ee9a3ce in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000], std::allocator>>, std::vector, std::allocator>>, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&>(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&) @ 0x000000001dfc1798 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1305: DB::MergeTreeDataSelectExecutor::readFromParts(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, std::shared_ptr, bool) const @ 0x000000001dfaebab in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:168: DB::MergeTreeDataSelectExecutor::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, DB::QueryProcessingStage::Enum, std::shared_ptr, std::equal_to, std::allocator>>>, bool) const @ 0x000000001dfab40c in /usr/bin/clickhouse 12. /build/src/Storages/StorageMergeTree.cpp:252: DB::StorageMergeTree::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001e365a5f in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 27. ? @ 0x00007f1a0debbac3 in ? 28. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:40:20.239791 [ 69183 ] {2fe7acd9-a22f-4ad7-a4fc-4acbe484629b} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54600) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:40:20.240481 [ 69183 ] {2fe7acd9-a22f-4ad7-a4fc-4acbe484629b} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:40:22.258413 [ 69183 ] {433e6ae4-1cd3-4332-a7ff-f49769b05575} executeQuery: std::exception. Code: 1001, type: avro::Exception, e.what() = Cannot read compressed data, expected at least 4 bytes, got 0 (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54608) (comment: 02373_heap_buffer_overflow_in_avro.sh) (in query: select * from file(corrupted.avro)), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/contrib/llvm-project/libcxx/src/support/runtime/stdexcept_default.ipp:33: std::runtime_error::runtime_error(String const&) @ 0x000000002887e7fd in /usr/bin/clickhouse 3. /build/contrib/avro/lang/c++/api/Exception.hh:36: avro::Exception::Exception(String const&) @ 0x000000001e76c685 in /usr/bin/clickhouse 4. /build/contrib/avro/lang/c++/impl/DataFile.cc:418: avro::DataFileReaderBase::readDataBlock() @ 0x0000000025183675 in /usr/bin/clickhouse 5. /build/contrib/avro/lang/c++/impl/DataFile.cc:322: avro::DataFileReaderBase::hasMore() @ 0x0000000025184502 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/AvroRowInputFormat.cpp:906: DB::AvroRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e758e90 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 8. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 9. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 10. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 15. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 16. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 17. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:40:22.263059 [ 69183 ] {433e6ae4-1cd3-4332-a7ff-f49769b05575} TCPHandler: Code: 1001. DB::Exception: avro::Exception: Cannot read compressed data, expected at least 4 bytes, got 0. (STD_EXCEPTION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/contrib/llvm-project/libcxx/src/support/runtime/stdexcept_default.ipp:33: std::runtime_error::runtime_error(String const&) @ 0x000000002887e7fd in /usr/bin/clickhouse 3. /build/contrib/avro/lang/c++/api/Exception.hh:36: avro::Exception::Exception(String const&) @ 0x000000001e76c685 in /usr/bin/clickhouse 4. /build/contrib/avro/lang/c++/impl/DataFile.cc:418: avro::DataFileReaderBase::readDataBlock() @ 0x0000000025183675 in /usr/bin/clickhouse 5. /build/contrib/avro/lang/c++/impl/DataFile.cc:322: avro::DataFileReaderBase::hasMore() @ 0x0000000025184502 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/AvroRowInputFormat.cpp:906: DB::AvroRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e758e90 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 8. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 9. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 10. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 15. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 16. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 17. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 2024.10.22 10:40:26.664454 [ 69183 ] {8a2b73a8-8705-4aea-b1d2-6f407314d0d3} executeQuery: Code: 497. DB::Exception: u_02311: Not enough privileges. To execute this query, it's necessary to have the grant INSERT(path, name, value) ON system.zookeeper. (ACCESS_DENIED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:54630) (in query: insert into system.zookeeper (path, name, value) values ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:520: auto bool DB::ContextAccess::checkAccessImplHelper>, std::basic_string_view>, std::vector>>(DB::AccessFlags, std::basic_string_view> const&, std::basic_string_view> const&, std::vector> const&) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b05c7cd in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:560: bool DB::ContextAccess::checkAccessImplHelper>, std::basic_string_view>, std::vector>>(DB::AccessFlags, std::basic_string_view> const&, std::basic_string_view> const&, std::vector> const&) const @ 0x000000001b05b196 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:631: bool DB::ContextAccess::checkAccessImpl>, std::vector>>(DB::AccessFlags const&, std::basic_string_view>, std::basic_string_view> const&, std::vector> const&) const @ 0x000000001b022630 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:703: DB::ContextAccess::checkAccess(DB::AccessFlags const&, std::basic_string_view>, std::basic_string_view>, std::vector> const&) const @ 0x000000001b01d6f1 in /usr/bin/clickhouse 10. /build/src/Interpreters/Context.cpp:1200: void DB::Context::checkAccessImpl>>(DB::AccessFlags const&, String const&, String const&, std::vector> const&) const @ 0x000000001bde986e in /usr/bin/clickhouse 11. /build/src/Interpreters/Context.cpp:1212: DB::Context::checkAccess(DB::AccessFlags const&, DB::StorageID const&, std::vector> const&) const @ 0x000000001bdc9a40 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterInsertQuery.cpp:398: DB::InterpreterInsertQuery::execute() @ 0x000000001ca8591a in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:40:26.665513 [ 69183 ] {8a2b73a8-8705-4aea-b1d2-6f407314d0d3} TCPHandler: Code: 497. DB::Exception: u_02311: Not enough privileges. To execute this query, it's necessary to have the grant INSERT(path, name, value) ON system.zookeeper. (ACCESS_DENIED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:520: auto bool DB::ContextAccess::checkAccessImplHelper>, std::basic_string_view>, std::vector>>(DB::AccessFlags, std::basic_string_view> const&, std::basic_string_view> const&, std::vector> const&) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b05c7cd in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:560: bool DB::ContextAccess::checkAccessImplHelper>, std::basic_string_view>, std::vector>>(DB::AccessFlags, std::basic_string_view> const&, std::basic_string_view> const&, std::vector> const&) const @ 0x000000001b05b196 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:631: bool DB::ContextAccess::checkAccessImpl>, std::vector>>(DB::AccessFlags const&, std::basic_string_view>, std::basic_string_view> const&, std::vector> const&) const @ 0x000000001b022630 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:703: DB::ContextAccess::checkAccess(DB::AccessFlags const&, std::basic_string_view>, std::basic_string_view>, std::vector> const&) const @ 0x000000001b01d6f1 in /usr/bin/clickhouse 10. /build/src/Interpreters/Context.cpp:1200: void DB::Context::checkAccessImpl>>(DB::AccessFlags const&, String const&, String const&, std::vector> const&) const @ 0x000000001bde986e in /usr/bin/clickhouse 11. /build/src/Interpreters/Context.cpp:1212: DB::Context::checkAccess(DB::AccessFlags const&, DB::StorageID const&, std::vector> const&) const @ 0x000000001bdc9a40 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterInsertQuery.cpp:398: DB::InterpreterInsertQuery::execute() @ 0x000000001ca8591a in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:40:30.362875 [ 69183 ] {fa6afca5-6d6e-409a-b21f-5d77ae670322} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:50424) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:40:30.363645 [ 69183 ] {fa6afca5-6d6e-409a-b21f-5d77ae670322} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:40:37.917753 [ 69183 ] {d3d64946-aa67-4010-b4ab-9c64a39a132a} executeQuery: Code: 117. DB::Exception: Unknown field found in format header: 'y' at position 1 Set the 'input_format_skip_unknown_fields' parameter explicitly to ignore and proceed: (in file/uri /var/lib/clickhouse/user_files/dump1.sql): (while reading header): While executing MySQLDumpRowInputFormat: While executing File. (INCORRECT_DATA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57738) (comment: 02286_mysql_dump_input_format.sh) (in query: select * from file(dump1.sql, MySQLDump, 'x Nullable(Int32), z String') order by x, z settings input_format_skip_unknown_fields = 0), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, unsigned long&&) @ 0x000000000c3c400c in /usr/bin/clickhouse 6. /build/src/Formats/ColumnMapping.cpp:38: DB::ColumnMapping::addColumns(std::vector> const&, google::dense_hash_map, google::libc_allocator_with_realloc>> const&, DB::FormatSettings const&) @ 0x000000001e7f3dda in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MySQLDumpRowInputFormat.cpp:359: DB::MySQLDumpRowInputFormat::readPrefix() @ 0x000000001e8fb2aa in /usr/bin/clickhouse 8. /build/src/Processors/Formats/IRowInputFormat.cpp:94: DB::IRowInputFormat::generate() @ 0x000000001e7ac3d9 in /usr/bin/clickhouse 9. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 10. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 11. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 17. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 18. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 2024.10.22 10:40:37.928525 [ 69183 ] {d3d64946-aa67-4010-b4ab-9c64a39a132a} TCPHandler: Code: 117. DB::Exception: Unknown field found in format header: 'y' at position 1 Set the 'input_format_skip_unknown_fields' parameter explicitly to ignore and proceed: (in file/uri /var/lib/clickhouse/user_files/dump1.sql): (while reading header): While executing MySQLDumpRowInputFormat: While executing File. (INCORRECT_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, unsigned long&&) @ 0x000000000c3c400c in /usr/bin/clickhouse 6. /build/src/Formats/ColumnMapping.cpp:38: DB::ColumnMapping::addColumns(std::vector> const&, google::dense_hash_map, google::libc_allocator_with_realloc>> const&, DB::FormatSettings const&) @ 0x000000001e7f3dda in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MySQLDumpRowInputFormat.cpp:359: DB::MySQLDumpRowInputFormat::readPrefix() @ 0x000000001e8fb2aa in /usr/bin/clickhouse 8. /build/src/Processors/Formats/IRowInputFormat.cpp:94: DB::IRowInputFormat::generate() @ 0x000000001e7ac3d9 in /usr/bin/clickhouse 9. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 10. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 11. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 17. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 18. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 2024.10.22 10:40:52.833908 [ 69183 ] {c5325cfb-54ab-43c5-932c-39ecd2e85be0} executeQuery: Code: 92. DB::Exception: There is no INSERT queries for table test 3 in MySQL dump file: Cannot extract table structure from MySQLDump format file. You can specify the structure manually: (in file/uri /var/lib/clickhouse/user_files/dump1.sql). (EMPTY_DATA_PASSED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52622) (comment: 02286_mysql_dump_input_format.sh) (in query: desc file(dump1.sql, MySQLDump) settings input_format_mysql_dump_table_name='test 3'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MySQLDumpRowInputFormat.cpp:346: DB::readFirstCreateAndInsertQueries(DB::ReadBuffer&, String&, DB::NamesAndTypesList&, std::vector>&) @ 0x000000001e8fb4d2 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MySQLDumpRowInputFormat.cpp:433: DB::MySQLDumpSchemaReader::readSchema() @ 0x000000001e8fbd5c in /usr/bin/clickhouse 8. /build/src/Formats/ReadSchemaUtils.cpp:124: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&, std::unique_ptr>&) @ 0x000000001e69b343 in /usr/bin/clickhouse 9. /build/src/Formats/ReadSchemaUtils.cpp:239: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&) @ 0x000000001e69c8c8 in /usr/bin/clickhouse 10. /build/src/Storages/StorageFile.cpp:828: DB::StorageFile::getTableStructureFromFile(String const&, std::vector> const&, String const&, std::optional const&, std::shared_ptr, std::optional const&) @ 0x000000001d6a22b2 in /usr/bin/clickhouse 11. /build/src/TableFunctions/TableFunctionFile.cpp:107: DB::TableFunctionFile::getActualTableStructure(std::shared_ptr, bool) const @ 0x000000001a97c42d in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterDescribeQuery.cpp:99: DB::InterpreterDescribeQuery::execute() @ 0x000000001ca78273 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:40:52.835607 [ 69183 ] {c5325cfb-54ab-43c5-932c-39ecd2e85be0} TCPHandler: Code: 92. DB::Exception: There is no INSERT queries for table test 3 in MySQL dump file: Cannot extract table structure from MySQLDump format file. You can specify the structure manually: (in file/uri /var/lib/clickhouse/user_files/dump1.sql). (EMPTY_DATA_PASSED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MySQLDumpRowInputFormat.cpp:346: DB::readFirstCreateAndInsertQueries(DB::ReadBuffer&, String&, DB::NamesAndTypesList&, std::vector>&) @ 0x000000001e8fb4d2 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MySQLDumpRowInputFormat.cpp:433: DB::MySQLDumpSchemaReader::readSchema() @ 0x000000001e8fbd5c in /usr/bin/clickhouse 8. /build/src/Formats/ReadSchemaUtils.cpp:124: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&, std::unique_ptr>&) @ 0x000000001e69b343 in /usr/bin/clickhouse 9. /build/src/Formats/ReadSchemaUtils.cpp:239: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&) @ 0x000000001e69c8c8 in /usr/bin/clickhouse 10. /build/src/Storages/StorageFile.cpp:828: DB::StorageFile::getTableStructureFromFile(String const&, std::vector> const&, String const&, std::optional const&, std::shared_ptr, std::optional const&) @ 0x000000001d6a22b2 in /usr/bin/clickhouse 11. /build/src/TableFunctions/TableFunctionFile.cpp:107: DB::TableFunctionFile::getActualTableStructure(std::shared_ptr, bool) const @ 0x000000001a97c42d in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterDescribeQuery.cpp:99: DB::InterpreterDescribeQuery::execute() @ 0x000000001ca78273 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:40:54.805905 [ 69183 ] {bdcf48bc-fc09-48a2-a29c-d361e037311d} executeQuery: Code: 92. DB::Exception: There is no INSERT queries for table test 3 in MySQL dump file: (in file/uri /var/lib/clickhouse/user_files/dump1.sql): (while reading header): While executing MySQLDumpRowInputFormat: While executing File. (EMPTY_DATA_PASSED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52628) (comment: 02286_mysql_dump_input_format.sh) (in query: select * from file(dump1.sql, MySQLDump, 'x Nullable(Int32)') settings input_format_mysql_dump_table_name='test 3'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MySQLDumpRowInputFormat.cpp:346: DB::readFirstCreateAndInsertQueries(DB::ReadBuffer&, String&, DB::NamesAndTypesList&, std::vector>&) @ 0x000000001e8fb4d2 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MySQLDumpRowInputFormat.cpp:356: DB::MySQLDumpRowInputFormat::readPrefix() @ 0x000000001e8fb250 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/IRowInputFormat.cpp:94: DB::IRowInputFormat::generate() @ 0x000000001e7ac3d9 in /usr/bin/clickhouse 9. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 10. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 11. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 17. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 18. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 2024.10.22 10:40:54.809838 [ 69183 ] {bdcf48bc-fc09-48a2-a29c-d361e037311d} TCPHandler: Code: 92. DB::Exception: There is no INSERT queries for table test 3 in MySQL dump file: (in file/uri /var/lib/clickhouse/user_files/dump1.sql): (while reading header): While executing MySQLDumpRowInputFormat: While executing File. (EMPTY_DATA_PASSED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MySQLDumpRowInputFormat.cpp:346: DB::readFirstCreateAndInsertQueries(DB::ReadBuffer&, String&, DB::NamesAndTypesList&, std::vector>&) @ 0x000000001e8fb4d2 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MySQLDumpRowInputFormat.cpp:356: DB::MySQLDumpRowInputFormat::readPrefix() @ 0x000000001e8fb250 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/IRowInputFormat.cpp:94: DB::IRowInputFormat::generate() @ 0x000000001e7ac3d9 in /usr/bin/clickhouse 9. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 10. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 11. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 17. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 18. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 2024.10.22 10:43:31.325501 [ 69183 ] {01ebb98a-b094-4fb5-aef6-8b8cd2ed16c8} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:48858) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:43:31.326380 [ 69183 ] {01ebb98a-b094-4fb5-aef6-8b8cd2ed16c8} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:44:16.821905 [ 70764 ] {c9373b04-64a9-40a6-8808-5307c29d94e8} executeQuery: Code: 192. DB::Exception: There is no user `test_user_02242` in user directories. (UNKNOWN_USER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:46778) (comment: 02242_delete_user_race.sh) (in query: SET DEFAULT ROLE test_role_02242 TO test_user_02242), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0f9899 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:76: ? @ 0x000000001b0f97d3 in /usr/bin/clickhouse 8. /build/src/Access/IAccessStorage.h:93: StrongTypedef, DB::UUIDTag> DB::IAccessStorage::getID(String const&) const @ 0x000000001b1f5d9f in /usr/bin/clickhouse 9. /build/src/Access/RolesOrUsersSet.cpp:85: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&)::$_0::operator()(String const&) const @ 0x000000001b1f1dcd in /usr/bin/clickhouse 10. /build/src/Access/RolesOrUsersSet.cpp:98: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1f1128 in /usr/bin/clickhouse 11. /build/src/Access/RolesOrUsersSet.cpp:64: DB::RolesOrUsersSet::RolesOrUsersSet(DB::ASTRolesOrUsersSet const&, DB::AccessControl const&, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1f1c5e in /usr/bin/clickhouse 12. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:66: DB::InterpreterSetRoleQuery::setDefaultRole(DB::ASTSetRoleQuery const&) @ 0x000000001d187bfa in /usr/bin/clickhouse 13. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:22: DB::InterpreterSetRoleQuery::execute() @ 0x000000001d187a76 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:44:16.823651 [ 70764 ] {c9373b04-64a9-40a6-8808-5307c29d94e8} TCPHandler: Code: 192. DB::Exception: There is no user `test_user_02242` in user directories. (UNKNOWN_USER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0f9899 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:76: ? @ 0x000000001b0f97d3 in /usr/bin/clickhouse 8. /build/src/Access/IAccessStorage.h:93: StrongTypedef, DB::UUIDTag> DB::IAccessStorage::getID(String const&) const @ 0x000000001b1f5d9f in /usr/bin/clickhouse 9. /build/src/Access/RolesOrUsersSet.cpp:85: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&)::$_0::operator()(String const&) const @ 0x000000001b1f1dcd in /usr/bin/clickhouse 10. /build/src/Access/RolesOrUsersSet.cpp:98: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1f1128 in /usr/bin/clickhouse 11. /build/src/Access/RolesOrUsersSet.cpp:64: DB::RolesOrUsersSet::RolesOrUsersSet(DB::ASTRolesOrUsersSet const&, DB::AccessControl const&, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1f1c5e in /usr/bin/clickhouse 12. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:66: DB::InterpreterSetRoleQuery::setDefaultRole(DB::ASTSetRoleQuery const&) @ 0x000000001d187bfa in /usr/bin/clickhouse 13. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:22: DB::InterpreterSetRoleQuery::execute() @ 0x000000001d187a76 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:44:18.183459 [ 69183 ] {} Access(user directories): from: ::1, user: test_user_02242: Authentication failed: Code: 192. DB::Exception: There is no user `test_user_02242` in local_directory. (UNKNOWN_USER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0f9899 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:0: DB::IAccessStorage::authenticateImpl(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool, bool) const @ 0x000000001b0fc99d in /usr/bin/clickhouse 8. /build/src/Access/IAccessStorage.cpp:510: DB::IAccessStorage::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool, bool) const @ 0x000000001b0fc74f in /usr/bin/clickhouse 9. /build/src/Access/MultipleAccessStorage.cpp:451: DB::MultipleAccessStorage::authenticateImpl(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool, bool) const @ 0x000000001b187529 in /usr/bin/clickhouse 10. /build/src/Access/IAccessStorage.cpp:498: DB::IAccessStorage::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool) const @ 0x000000001b0fc69a in /usr/bin/clickhouse 11. /build/src/Access/AccessControl.cpp:584: DB::AccessControl::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&) const @ 0x000000001afb666c in /usr/bin/clickhouse 12. /build/src/Interpreters/Session.cpp:353: DB::Session::authenticate(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0x000000001cdfd0e9 in /usr/bin/clickhouse 13. /build/src/Interpreters/Session.cpp:333: DB::Session::authenticate(String const&, String const&, Poco::Net::SocketAddress const&) @ 0x000000001cdfc5c9 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:1362: DB::TCPHandler::receiveHello() @ 0x000000001e64e31f in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:247: DB::TCPHandler::runImpl() @ 0x000000001e6450d6 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:44:18.261864 [ 69183 ] {} ServerErrorHandler: Code: 516. DB::Exception: test_user_02242: Authentication failed: password is incorrect, or there is no user with such name. (AUTHENTICATION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Access/AccessControl.cpp:605: DB::AccessControl::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&) const @ 0x000000001afb6a44 in /usr/bin/clickhouse 7. /build/src/Interpreters/Session.cpp:353: DB::Session::authenticate(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0x000000001cdfd0e9 in /usr/bin/clickhouse 8. /build/src/Interpreters/Session.cpp:333: DB::Session::authenticate(String const&, String const&, Poco::Net::SocketAddress const&) @ 0x000000001cdfc5c9 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:1362: DB::TCPHandler::receiveHello() @ 0x000000001e64e31f in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:247: DB::TCPHandler::runImpl() @ 0x000000001e6450d6 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:44:19.001886 [ 69183 ] {a122f903-f407-4c50-9d5e-d459d1456b78} executeQuery: Code: 192. DB::Exception: There is no user `test_user_02242` in user directories. (UNKNOWN_USER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:36240) (comment: 02242_delete_user_race.sh) (in query: SET DEFAULT ROLE test_role_02242 TO test_user_02242), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0f9899 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:76: ? @ 0x000000001b0f97d3 in /usr/bin/clickhouse 8. /build/src/Access/IAccessStorage.h:93: StrongTypedef, DB::UUIDTag> DB::IAccessStorage::getID(String const&) const @ 0x000000001b1f5d9f in /usr/bin/clickhouse 9. /build/src/Access/RolesOrUsersSet.cpp:85: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&)::$_0::operator()(String const&) const @ 0x000000001b1f1dcd in /usr/bin/clickhouse 10. /build/src/Access/RolesOrUsersSet.cpp:98: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1f1128 in /usr/bin/clickhouse 11. /build/src/Access/RolesOrUsersSet.cpp:64: DB::RolesOrUsersSet::RolesOrUsersSet(DB::ASTRolesOrUsersSet const&, DB::AccessControl const&, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1f1c5e in /usr/bin/clickhouse 12. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:66: DB::InterpreterSetRoleQuery::setDefaultRole(DB::ASTSetRoleQuery const&) @ 0x000000001d187bfa in /usr/bin/clickhouse 13. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:22: DB::InterpreterSetRoleQuery::execute() @ 0x000000001d187a76 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:44:19.004033 [ 69183 ] {a122f903-f407-4c50-9d5e-d459d1456b78} TCPHandler: Code: 192. DB::Exception: There is no user `test_user_02242` in user directories. (UNKNOWN_USER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0f9899 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:76: ? @ 0x000000001b0f97d3 in /usr/bin/clickhouse 8. /build/src/Access/IAccessStorage.h:93: StrongTypedef, DB::UUIDTag> DB::IAccessStorage::getID(String const&) const @ 0x000000001b1f5d9f in /usr/bin/clickhouse 9. /build/src/Access/RolesOrUsersSet.cpp:85: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&)::$_0::operator()(String const&) const @ 0x000000001b1f1dcd in /usr/bin/clickhouse 10. /build/src/Access/RolesOrUsersSet.cpp:98: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1f1128 in /usr/bin/clickhouse 11. /build/src/Access/RolesOrUsersSet.cpp:64: DB::RolesOrUsersSet::RolesOrUsersSet(DB::ASTRolesOrUsersSet const&, DB::AccessControl const&, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1f1c5e in /usr/bin/clickhouse 12. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:66: DB::InterpreterSetRoleQuery::setDefaultRole(DB::ASTSetRoleQuery const&) @ 0x000000001d187bfa in /usr/bin/clickhouse 13. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:22: DB::InterpreterSetRoleQuery::execute() @ 0x000000001d187a76 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:44:21.583197 [ 69183 ] {ea4982f4-63da-4b58-9e36-a119e98d36d0} executeQuery: Code: 192. DB::Exception: There is no user `test_user_02242` in user directories. (UNKNOWN_USER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:36274) (comment: 02242_delete_user_race.sh) (in query: SET DEFAULT ROLE test_role_02242 TO test_user_02242), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0f9899 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:76: ? @ 0x000000001b0f97d3 in /usr/bin/clickhouse 8. /build/src/Access/IAccessStorage.h:93: StrongTypedef, DB::UUIDTag> DB::IAccessStorage::getID(String const&) const @ 0x000000001b1f5d9f in /usr/bin/clickhouse 9. /build/src/Access/RolesOrUsersSet.cpp:85: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&)::$_0::operator()(String const&) const @ 0x000000001b1f1dcd in /usr/bin/clickhouse 10. /build/src/Access/RolesOrUsersSet.cpp:98: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1f1128 in /usr/bin/clickhouse 11. /build/src/Access/RolesOrUsersSet.cpp:64: DB::RolesOrUsersSet::RolesOrUsersSet(DB::ASTRolesOrUsersSet const&, DB::AccessControl const&, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1f1c5e in /usr/bin/clickhouse 12. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:66: DB::InterpreterSetRoleQuery::setDefaultRole(DB::ASTSetRoleQuery const&) @ 0x000000001d187bfa in /usr/bin/clickhouse 13. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:22: DB::InterpreterSetRoleQuery::execute() @ 0x000000001d187a76 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:44:21.584972 [ 69183 ] {ea4982f4-63da-4b58-9e36-a119e98d36d0} TCPHandler: Code: 192. DB::Exception: There is no user `test_user_02242` in user directories. (UNKNOWN_USER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0f9899 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:76: ? @ 0x000000001b0f97d3 in /usr/bin/clickhouse 8. /build/src/Access/IAccessStorage.h:93: StrongTypedef, DB::UUIDTag> DB::IAccessStorage::getID(String const&) const @ 0x000000001b1f5d9f in /usr/bin/clickhouse 9. /build/src/Access/RolesOrUsersSet.cpp:85: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&)::$_0::operator()(String const&) const @ 0x000000001b1f1dcd in /usr/bin/clickhouse 10. /build/src/Access/RolesOrUsersSet.cpp:98: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1f1128 in /usr/bin/clickhouse 11. /build/src/Access/RolesOrUsersSet.cpp:64: DB::RolesOrUsersSet::RolesOrUsersSet(DB::ASTRolesOrUsersSet const&, DB::AccessControl const&, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1f1c5e in /usr/bin/clickhouse 12. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:66: DB::InterpreterSetRoleQuery::setDefaultRole(DB::ASTSetRoleQuery const&) @ 0x000000001d187bfa in /usr/bin/clickhouse 13. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:22: DB::InterpreterSetRoleQuery::execute() @ 0x000000001d187a76 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 23. ? @ 0x00007f1a0debbac3 in ? 24. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:44:21.619401 [ 70763 ] {} Access(user directories): from: ::1, user: test_user_02242: Authentication failed: Code: 192. DB::Exception: There is no user `test_user_02242` in local_directory. (UNKNOWN_USER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0f9899 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:0: DB::IAccessStorage::authenticateImpl(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool, bool) const @ 0x000000001b0fc99d in /usr/bin/clickhouse 8. /build/src/Access/IAccessStorage.cpp:510: DB::IAccessStorage::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool, bool) const @ 0x000000001b0fc74f in /usr/bin/clickhouse 9. /build/src/Access/MultipleAccessStorage.cpp:451: DB::MultipleAccessStorage::authenticateImpl(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool, bool) const @ 0x000000001b187529 in /usr/bin/clickhouse 10. /build/src/Access/IAccessStorage.cpp:498: DB::IAccessStorage::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool) const @ 0x000000001b0fc69a in /usr/bin/clickhouse 11. /build/src/Access/AccessControl.cpp:584: DB::AccessControl::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&) const @ 0x000000001afb666c in /usr/bin/clickhouse 12. /build/src/Interpreters/Session.cpp:353: DB::Session::authenticate(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0x000000001cdfd0e9 in /usr/bin/clickhouse 13. /build/src/Interpreters/Session.cpp:333: DB::Session::authenticate(String const&, String const&, Poco::Net::SocketAddress const&) @ 0x000000001cdfc5c9 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:1362: DB::TCPHandler::receiveHello() @ 0x000000001e64e31f in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:247: DB::TCPHandler::runImpl() @ 0x000000001e6450d6 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:44:21.620487 [ 70763 ] {} ServerErrorHandler: Code: 516. DB::Exception: test_user_02242: Authentication failed: password is incorrect, or there is no user with such name. (AUTHENTICATION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Access/AccessControl.cpp:605: DB::AccessControl::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&) const @ 0x000000001afb6a44 in /usr/bin/clickhouse 7. /build/src/Interpreters/Session.cpp:353: DB::Session::authenticate(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0x000000001cdfd0e9 in /usr/bin/clickhouse 8. /build/src/Interpreters/Session.cpp:333: DB::Session::authenticate(String const&, String const&, Poco::Net::SocketAddress const&) @ 0x000000001cdfc5c9 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:1362: DB::TCPHandler::receiveHello() @ 0x000000001e64e31f in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:247: DB::TCPHandler::runImpl() @ 0x000000001e6450d6 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:44:23.639767 [ 70763 ] {57937758-f9b7-47f4-ba1a-aadf231ee868} executeQuery: Code: 512. DB::Exception: Role should be granted to set default. (SET_NON_GRANTED_ROLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:36308) (comment: 02242_delete_user_race.sh) (in query: SET DEFAULT ROLE test_role_02242 TO test_user_02242), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [38]) @ 0x000000000f82675e in /usr/bin/clickhouse 6. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:87: DB::InterpreterSetRoleQuery::updateUserSetDefaultRoles(DB::User&, DB::RolesOrUsersSet const&) @ 0x000000001d188338 in /usr/bin/clickhouse 7. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:72: DB::InterpreterSetRoleQuery::setDefaultRole(DB::ASTSetRoleQuery const&)::$_0::operator()(std::shared_ptr const&) const @ 0x000000001d18868b in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval const&>())) std::__invoke[abi:v15000] const&>(DB::InterpreterSetRoleQuery::setDefaultRole(DB::ASTSetRoleQuery const&)::$_0&, std::shared_ptr const&) @ 0x000000001d1885fd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&>(DB::InterpreterSetRoleQuery::setDefaultRole(DB::ASTSetRoleQuery const&)::$_0&, std::shared_ptr const&) @ 0x000000001d1885bd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (std::shared_ptr const&)>::operator()[abi:v15000](std::shared_ptr const&) @ 0x000000001d18857d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (std::shared_ptr const&)>::__call_impl (std::shared_ptr const&)>>(std::__function::__policy_storage const*, std::shared_ptr const&) @ 0x000000001d188545 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (std::shared_ptr const&)>::operator()[abi:v15000](std::shared_ptr const&) const @ 0x000000001b09f25e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (std::shared_ptr const&)>::operator()(std::shared_ptr const&) const @ 0x000000001b08967d in /usr/bin/clickhouse 14. /build/src/Access/MultipleAccessStorage.cpp:419: DB::MultipleAccessStorage::updateImpl(StrongTypedef, DB::UUIDTag> const&, std::function (std::shared_ptr const&)> const&, bool) @ 0x000000001b186ed2 in /usr/bin/clickhouse 15. /build/src/Access/AccessControl.cpp:568: DB::AccessControl::updateImpl(StrongTypedef, DB::UUIDTag> const&, std::function (std::shared_ptr const&)> const&, bool) @ 0x000000001afb6538 in /usr/bin/clickhouse 16. /build/src/Access/IAccessStorage.cpp:396: DB::IAccessStorage::update(StrongTypedef, DB::UUIDTag> const&, std::function (std::shared_ptr const&)> const&, bool) @ 0x000000001b0fbb59 in /usr/bin/clickhouse 17. /build/src/Access/IAccessStorage.cpp:405: DB::IAccessStorage::update(std::vector, DB::UUIDTag>, std::allocator, DB::UUIDTag>>> const&, std::function (std::shared_ptr const&)> const&, bool) @ 0x000000001b0fbc21 in /usr/bin/clickhouse 18. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:76: DB::InterpreterSetRoleQuery::setDefaultRole(DB::ASTSetRoleQuery const&) @ 0x000000001d187cbb in /usr/bin/clickhouse 19. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:22: DB::InterpreterSetRoleQuery::execute() @ 0x000000001d187a76 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 29. ? @ 0x00007f1a0debbac3 in ? 30. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:44:23.641417 [ 70763 ] {57937758-f9b7-47f4-ba1a-aadf231ee868} TCPHandler: Code: 512. DB::Exception: Role should be granted to set default. (SET_NON_GRANTED_ROLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [38]) @ 0x000000000f82675e in /usr/bin/clickhouse 6. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:87: DB::InterpreterSetRoleQuery::updateUserSetDefaultRoles(DB::User&, DB::RolesOrUsersSet const&) @ 0x000000001d188338 in /usr/bin/clickhouse 7. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:72: DB::InterpreterSetRoleQuery::setDefaultRole(DB::ASTSetRoleQuery const&)::$_0::operator()(std::shared_ptr const&) const @ 0x000000001d18868b in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval const&>())) std::__invoke[abi:v15000] const&>(DB::InterpreterSetRoleQuery::setDefaultRole(DB::ASTSetRoleQuery const&)::$_0&, std::shared_ptr const&) @ 0x000000001d1885fd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&>(DB::InterpreterSetRoleQuery::setDefaultRole(DB::ASTSetRoleQuery const&)::$_0&, std::shared_ptr const&) @ 0x000000001d1885bd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (std::shared_ptr const&)>::operator()[abi:v15000](std::shared_ptr const&) @ 0x000000001d18857d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (std::shared_ptr const&)>::__call_impl (std::shared_ptr const&)>>(std::__function::__policy_storage const*, std::shared_ptr const&) @ 0x000000001d188545 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (std::shared_ptr const&)>::operator()[abi:v15000](std::shared_ptr const&) const @ 0x000000001b09f25e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (std::shared_ptr const&)>::operator()(std::shared_ptr const&) const @ 0x000000001b08967d in /usr/bin/clickhouse 14. /build/src/Access/MultipleAccessStorage.cpp:419: DB::MultipleAccessStorage::updateImpl(StrongTypedef, DB::UUIDTag> const&, std::function (std::shared_ptr const&)> const&, bool) @ 0x000000001b186ed2 in /usr/bin/clickhouse 15. /build/src/Access/AccessControl.cpp:568: DB::AccessControl::updateImpl(StrongTypedef, DB::UUIDTag> const&, std::function (std::shared_ptr const&)> const&, bool) @ 0x000000001afb6538 in /usr/bin/clickhouse 16. /build/src/Access/IAccessStorage.cpp:396: DB::IAccessStorage::update(StrongTypedef, DB::UUIDTag> const&, std::function (std::shared_ptr const&)> const&, bool) @ 0x000000001b0fbb59 in /usr/bin/clickhouse 17. /build/src/Access/IAccessStorage.cpp:405: DB::IAccessStorage::update(std::vector, DB::UUIDTag>, std::allocator, DB::UUIDTag>>> const&, std::function (std::shared_ptr const&)> const&, bool) @ 0x000000001b0fbc21 in /usr/bin/clickhouse 18. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:76: DB::InterpreterSetRoleQuery::setDefaultRole(DB::ASTSetRoleQuery const&) @ 0x000000001d187cbb in /usr/bin/clickhouse 19. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:22: DB::InterpreterSetRoleQuery::execute() @ 0x000000001d187a76 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 29. ? @ 0x00007f1a0debbac3 in ? 30. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:44:24.827400 [ 69183 ] {} Access(user directories): from: ::1, user: test_user_02242: Authentication failed: Code: 192. DB::Exception: There is no user `test_user_02242` in local_directory. (UNKNOWN_USER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0f9899 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:0: DB::IAccessStorage::authenticateImpl(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool, bool) const @ 0x000000001b0fc99d in /usr/bin/clickhouse 8. /build/src/Access/IAccessStorage.cpp:510: DB::IAccessStorage::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool, bool) const @ 0x000000001b0fc74f in /usr/bin/clickhouse 9. /build/src/Access/MultipleAccessStorage.cpp:451: DB::MultipleAccessStorage::authenticateImpl(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool, bool) const @ 0x000000001b187529 in /usr/bin/clickhouse 10. /build/src/Access/IAccessStorage.cpp:498: DB::IAccessStorage::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool) const @ 0x000000001b0fc69a in /usr/bin/clickhouse 11. /build/src/Access/AccessControl.cpp:584: DB::AccessControl::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&) const @ 0x000000001afb666c in /usr/bin/clickhouse 12. /build/src/Interpreters/Session.cpp:353: DB::Session::authenticate(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0x000000001cdfd0e9 in /usr/bin/clickhouse 13. /build/src/Interpreters/Session.cpp:333: DB::Session::authenticate(String const&, String const&, Poco::Net::SocketAddress const&) @ 0x000000001cdfc5c9 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:1362: DB::TCPHandler::receiveHello() @ 0x000000001e64e31f in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:247: DB::TCPHandler::runImpl() @ 0x000000001e6450d6 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:44:24.828431 [ 69183 ] {} ServerErrorHandler: Code: 516. DB::Exception: test_user_02242: Authentication failed: password is incorrect, or there is no user with such name. (AUTHENTICATION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Access/AccessControl.cpp:605: DB::AccessControl::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&) const @ 0x000000001afb6a44 in /usr/bin/clickhouse 7. /build/src/Interpreters/Session.cpp:353: DB::Session::authenticate(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0x000000001cdfd0e9 in /usr/bin/clickhouse 8. /build/src/Interpreters/Session.cpp:333: DB::Session::authenticate(String const&, String const&, Poco::Net::SocketAddress const&) @ 0x000000001cdfc5c9 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:1362: DB::TCPHandler::receiveHello() @ 0x000000001e64e31f in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:247: DB::TCPHandler::runImpl() @ 0x000000001e6450d6 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 10:45:51.866103 [ 69183 ] {63481a79-ca1f-422a-8e3f-d95417f8c689} executeQuery: Code: 641. DB::Exception: Cannot append data in format Parquet to file, because this format doesn't support appends. You can allow to create a new file on each insert by enabling setting engine_file_allow_create_multiple_files. (CANNOT_APPEND_TO_FILE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59916) (comment: 02155_multiple_inserts_for_formats_with_suffix.sql) (in query: insert into test select * from numbers(10, 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1804: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d6a6704 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece579a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca86d7b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:45:51.866909 [ 69183 ] {63481a79-ca1f-422a-8e3f-d95417f8c689} TCPHandler: Code: 641. DB::Exception: Cannot append data in format Parquet to file, because this format doesn't support appends. You can allow to create a new file on each insert by enabling setting engine_file_allow_create_multiple_files. (CANNOT_APPEND_TO_FILE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1804: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d6a6704 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece579a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca86d7b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:45:51.970929 [ 69183 ] {6a407706-7c08-4215-ac74-5b11fc0aabad} executeQuery: Code: 641. DB::Exception: Cannot append data in format Parquet to file, because this format doesn't support appends. You can allow to create a new file on each insert by enabling setting engine_file_allow_create_multiple_files. (CANNOT_APPEND_TO_FILE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59916) (comment: 02155_multiple_inserts_for_formats_with_suffix.sql) (in query: insert into test select * from numbers(10, 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1804: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d6a6704 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece579a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca86d7b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:45:51.971783 [ 69183 ] {6a407706-7c08-4215-ac74-5b11fc0aabad} TCPHandler: Code: 641. DB::Exception: Cannot append data in format Parquet to file, because this format doesn't support appends. You can allow to create a new file on each insert by enabling setting engine_file_allow_create_multiple_files. (CANNOT_APPEND_TO_FILE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1804: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d6a6704 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece579a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca86d7b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:45:52.070687 [ 69183 ] {799afa9a-4f09-47fe-8974-170be1d7500c} executeQuery: Code: 641. DB::Exception: Cannot append data in format Parquet to file, because this format doesn't support appends. You can allow to create a new file on each insert by enabling setting engine_file_allow_create_multiple_files. (CANNOT_APPEND_TO_FILE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59916) (comment: 02155_multiple_inserts_for_formats_with_suffix.sql) (in query: insert into table function file(concat(currentDatabase(), '/test2/data.Parquet'), 'Parquet', 'number UInt64') select * from numbers(10, 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1804: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d6a6704 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece579a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca86d7b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:45:52.071667 [ 69183 ] {799afa9a-4f09-47fe-8974-170be1d7500c} TCPHandler: Code: 641. DB::Exception: Cannot append data in format Parquet to file, because this format doesn't support appends. You can allow to create a new file on each insert by enabling setting engine_file_allow_create_multiple_files. (CANNOT_APPEND_TO_FILE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1804: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d6a6704 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece579a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca86d7b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:45:52.185722 [ 69183 ] {329b765b-afe9-4e53-8480-8bb3f80bc30c} executeQuery: Code: 641. DB::Exception: Cannot append data in format Parquet to file, because this format doesn't support appends. You can allow to create a new file on each insert by enabling setting engine_file_allow_create_multiple_files. (CANNOT_APPEND_TO_FILE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59916) (comment: 02155_multiple_inserts_for_formats_with_suffix.sql) (in query: insert into test select * from numbers(10, 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1804: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d6a6704 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece579a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca86d7b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:45:52.186328 [ 69183 ] {329b765b-afe9-4e53-8480-8bb3f80bc30c} TCPHandler: Code: 641. DB::Exception: Cannot append data in format Parquet to file, because this format doesn't support appends. You can allow to create a new file on each insert by enabling setting engine_file_allow_create_multiple_files. (CANNOT_APPEND_TO_FILE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1804: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d6a6704 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece579a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca86d7b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:45:52.275583 [ 69183 ] {37108142-6cc2-4eaf-a5a1-a25d33e7b736} executeQuery: Code: 641. DB::Exception: Cannot append data in format Parquet to file, because this format doesn't support appends. You can allow to create a new file on each insert by enabling setting engine_file_allow_create_multiple_files. (CANNOT_APPEND_TO_FILE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59916) (comment: 02155_multiple_inserts_for_formats_with_suffix.sql) (in query: insert into table function file(concat(currentDatabase(), '/test4/data.Parquet.gz'), 'Parquet', 'number UInt64') select * from numbers(10, 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1804: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d6a6704 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece579a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca86d7b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:45:52.276507 [ 69183 ] {37108142-6cc2-4eaf-a5a1-a25d33e7b736} TCPHandler: Code: 641. DB::Exception: Cannot append data in format Parquet to file, because this format doesn't support appends. You can allow to create a new file on each insert by enabling setting engine_file_allow_create_multiple_files. (CANNOT_APPEND_TO_FILE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1804: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d6a6704 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ece579a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca84760 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca86d7b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:45:55.483315 [ 69183 ] {4d2f755e-6b4b-40e9-a064-ee923041438d} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59918) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:45:55.484082 [ 69183 ] {4d2f755e-6b4b-40e9-a064-ee923041438d} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:45:56.041702 [ 69183 ] {56e101d2-59bf-4e17-a9ec-28dec5f74716} executeQuery: Code: 107. DB::ErrnoException: Cannot open file /var/lib/clickhouse/format_schemas/nonexist, errno: 2, strerror: No such file or directory: While executing File. (FILE_DOESNT_EXIST) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59930) (in query: select * from file('test_02149_schema_inference_test_7mwrsd89.data', 'Template', 'val1 char') settings format_template_row='nonexist'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b2043aa in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:169: DB::ErrnoException::ErrnoException(String const&, int, int, std::optional const&) @ 0x00000000138e6cb0 in /usr/bin/clickhouse 6. /build/src/Common/Exception.cpp:224: DB::throwFromErrnoWithPath(String const&, String const&, int, int) @ 0x00000000138e245b in /usr/bin/clickhouse 7. /build/src/IO/ReadBufferFromFile.cpp:48: DB::ReadBufferFromFile::ReadBufferFromFile(String const&, unsigned long, int, char*, unsigned long, std::optional, std::shared_ptr) @ 0x0000000013978f76 in /usr/bin/clickhouse 8. /build/src/Formats/ParsedTemplateFormatString.cpp:19: DB::ParsedTemplateFormatString::ParsedTemplateFormatString(DB::FormatSchemaInfo const&, std::function (String const&)> const&, bool) @ 0x000000001eb4a427 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/TemplateRowInputFormat.cpp:562: DB::fillRowFormat(DB::FormatSettings const&, std::function (String const&)>, bool) @ 0x000000001eb515b0 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/TemplateRowInputFormat.cpp:590: DB::registerInputFormatTemplate(DB::FormatFactory&)::$_0::operator()(DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams, DB::FormatSettings const&) const @ 0x000000001eb5116f in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval())) std::__invoke[abi:v15000](DB::registerInputFormatTemplate(DB::FormatFactory&)::$_0&, DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) @ 0x000000001eb51059 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerInputFormatTemplate(DB::FormatFactory&)::$_0&, DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) @ 0x000000001eb50f95 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) @ 0x000000001eb50f35 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&)>::__call_impl (DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&)>>(std::__function::__policy_storage const*, DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) @ 0x000000001eb50edd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) const @ 0x000000001e680356 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&)>::operator()(DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) const @ 0x000000001e67e655 in /usr/bin/clickhouse 17. /build/src/Formats/FormatFactory.cpp:330: DB::FormatFactory::getInput(String const&, DB::ReadBuffer&, DB::Block const&, std::shared_ptr, unsigned long, std::optional const&, std::optional, std::optional, bool, DB::CompressionMethod) const @ 0x000000001e673977 in /usr/bin/clickhouse 18. /build/src/Interpreters/Context.cpp:3778: DB::Context::getInputFormat(String const&, DB::ReadBuffer&, DB::Block const&, unsigned long, std::optional const&, std::optional) const @ 0x000000001bdde903 in /usr/bin/clickhouse 19. /build/src/Storages/StorageFile.cpp:1278: DB::StorageFileSource::generate() @ 0x000000001d6b502c in /usr/bin/clickhouse 20. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 2024.10.22 10:45:56.044310 [ 69183 ] {56e101d2-59bf-4e17-a9ec-28dec5f74716} TCPHandler: Code: 107. DB::ErrnoException: Cannot open file /var/lib/clickhouse/format_schemas/nonexist, errno: 2, strerror: No such file or directory: While executing File. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b2043aa in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:169: DB::ErrnoException::ErrnoException(String const&, int, int, std::optional const&) @ 0x00000000138e6cb0 in /usr/bin/clickhouse 6. /build/src/Common/Exception.cpp:224: DB::throwFromErrnoWithPath(String const&, String const&, int, int) @ 0x00000000138e245b in /usr/bin/clickhouse 7. /build/src/IO/ReadBufferFromFile.cpp:48: DB::ReadBufferFromFile::ReadBufferFromFile(String const&, unsigned long, int, char*, unsigned long, std::optional, std::shared_ptr) @ 0x0000000013978f76 in /usr/bin/clickhouse 8. /build/src/Formats/ParsedTemplateFormatString.cpp:19: DB::ParsedTemplateFormatString::ParsedTemplateFormatString(DB::FormatSchemaInfo const&, std::function (String const&)> const&, bool) @ 0x000000001eb4a427 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/TemplateRowInputFormat.cpp:562: DB::fillRowFormat(DB::FormatSettings const&, std::function (String const&)>, bool) @ 0x000000001eb515b0 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/TemplateRowInputFormat.cpp:590: DB::registerInputFormatTemplate(DB::FormatFactory&)::$_0::operator()(DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams, DB::FormatSettings const&) const @ 0x000000001eb5116f in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval())) std::__invoke[abi:v15000](DB::registerInputFormatTemplate(DB::FormatFactory&)::$_0&, DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) @ 0x000000001eb51059 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerInputFormatTemplate(DB::FormatFactory&)::$_0&, DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) @ 0x000000001eb50f95 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) @ 0x000000001eb50f35 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&)>::__call_impl (DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&)>>(std::__function::__policy_storage const*, DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) @ 0x000000001eb50edd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) const @ 0x000000001e680356 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&)>::operator()(DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) const @ 0x000000001e67e655 in /usr/bin/clickhouse 17. /build/src/Formats/FormatFactory.cpp:330: DB::FormatFactory::getInput(String const&, DB::ReadBuffer&, DB::Block const&, std::shared_ptr, unsigned long, std::optional const&, std::optional, std::optional, bool, DB::CompressionMethod) const @ 0x000000001e673977 in /usr/bin/clickhouse 18. /build/src/Interpreters/Context.cpp:3778: DB::Context::getInputFormat(String const&, DB::ReadBuffer&, DB::Block const&, unsigned long, std::optional const&, std::optional) const @ 0x000000001bdde903 in /usr/bin/clickhouse 19. /build/src/Storages/StorageFile.cpp:1278: DB::StorageFileSource::generate() @ 0x000000001d6b502c in /usr/bin/clickhouse 20. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 2024.10.22 10:47:37.377232 [ 69183 ] {17637877-da91-42b1-a27b-4d191b9fd9de} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58404) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:47:37.377876 [ 69183 ] {17637877-da91-42b1-a27b-4d191b9fd9de} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:55:03.697048 [ 69183 ] {153eaa5d-2d08-47e3-b7ac-b29f87c6f947} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58758) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:55:03.697855 [ 69183 ] {153eaa5d-2d08-47e3-b7ac-b29f87c6f947} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:55:22.950559 [ 69183 ] {60ea9395-efda-4dd4-b1e5-eda6c2a4b318} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:33720) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:55:22.951633 [ 69183 ] {60ea9395-efda-4dd4-b1e5-eda6c2a4b318} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:56:01.334555 [ 71885 ] {2e6d2c98-09f3-4e04-9be4-d23c1844ebeb} executeQuery: Code: 60. DB::Exception: Table shard_1.data_01850 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58654) (comment: 01850_dist_INSERT_preserve_error.sql) (in query: INSERT INTO data_01850 (key) VALUES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:121: DB::InterpreterInsertQuery::getTable(DB::ASTInsertQuery&) @ 0x000000001ca83452 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:380: DB::InterpreterInsertQuery::execute() @ 0x000000001ca85446 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:56:01.335230 [ 71885 ] {2e6d2c98-09f3-4e04-9be4-d23c1844ebeb} TCPHandler: Code: 60. DB::Exception: Table shard_1.data_01850 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:121: DB::InterpreterInsertQuery::getTable(DB::ASTInsertQuery&) @ 0x000000001ca83452 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:380: DB::InterpreterInsertQuery::execute() @ 0x000000001ca85446 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:56:01.485108 [ 69183 ] {5a8509b3-3ab1-45ff-b549-fb68c7b0e0c6} executeQuery: Code: 60. DB::Exception: Received from localhost:9000. DB::Exception: Table shard_1.data_01850 does not exist. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:121: DB::InterpreterInsertQuery::getTable(DB::ASTInsertQuery&) @ 0x000000001ca83452 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:380: DB::InterpreterInsertQuery::execute() @ 0x000000001ca85446 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? : Insertion status: Wrote 1 blocks and 1 rows on shard 0 replica 0, localhost:9000 (average 24 ms per block) Wrote 0 blocks and 0 rows on shard 0 replica 1, localhost:9000 (average 102 ms per block) . (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58652) (comment: 01850_dist_INSERT_preserve_error.sql) (in query: insert into dist_01850 values ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b2043aa in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:80: DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000b204355 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:1364: DB::readException(DB::ReadBuffer&, String const&, bool) @ 0x0000000013986ae2 in /usr/bin/clickhouse 7. /build/src/Client/Connection.cpp:1150: DB::Connection::receiveException() const @ 0x000000001e4ca3b9 in /usr/bin/clickhouse 8. /build/src/Client/Connection.cpp:987: DB::Connection::receivePacket() @ 0x000000001e4d09b1 in /usr/bin/clickhouse 9. /build/src/QueryPipeline/RemoteInserter.cpp:59: DB::RemoteInserter::RemoteInserter(DB::Connection&, DB::ConnectionTimeouts const&, String const&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dcf41d8 in /usr/bin/clickhouse 10. /build/src/Processors/Sinks/RemoteSink.h:17: DB::RemoteSink::RemoteSink(DB::Connection&, DB::ConnectionTimeouts const&, String const&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dd15fac in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::RemoteSink* std::construct_at[abi:v15000](DB::RemoteSink*, DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dd15f41 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::RemoteSink*, DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dd15ce1 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dd159cd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&, void>(std::allocator const&, DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dd15820 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dd155e6 in /usr/bin/clickhouse 16. /build/src/Storages/Distributed/DistributedSink.cpp:398: DB::DistributedSink::runWritingJob(DB::DistributedSink::JobReplica&, DB::Block const&, unsigned long)::$_0::operator()() const @ 0x000000001dd0ecd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::DistributedSink::runWritingJob(DB::DistributedSink::JobReplica&, DB::Block const&, unsigned long)::$_0&) @ 0x000000001dd0dd35 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::DistributedSink::runWritingJob(DB::DistributedSink::JobReplica&, DB::Block const&, unsigned long)::$_0&) @ 0x000000001dd0dd15 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001dd0dcf5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001dd0dcc0 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse 2024.10.22 10:56:01.486787 [ 69183 ] {5a8509b3-3ab1-45ff-b549-fb68c7b0e0c6} TCPHandler: Code: 60. DB::Exception: Received from localhost:9000. DB::Exception: Table shard_1.data_01850 does not exist. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:121: DB::InterpreterInsertQuery::getTable(DB::ASTInsertQuery&) @ 0x000000001ca83452 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:380: DB::InterpreterInsertQuery::execute() @ 0x000000001ca85446 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? : Insertion status: Wrote 1 blocks and 1 rows on shard 0 replica 0, localhost:9000 (average 24 ms per block) Wrote 0 blocks and 0 rows on shard 0 replica 1, localhost:9000 (average 102 ms per block) . (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b2043aa in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:80: DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000b204355 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:1364: DB::readException(DB::ReadBuffer&, String const&, bool) @ 0x0000000013986ae2 in /usr/bin/clickhouse 7. /build/src/Client/Connection.cpp:1150: DB::Connection::receiveException() const @ 0x000000001e4ca3b9 in /usr/bin/clickhouse 8. /build/src/Client/Connection.cpp:987: DB::Connection::receivePacket() @ 0x000000001e4d09b1 in /usr/bin/clickhouse 9. /build/src/QueryPipeline/RemoteInserter.cpp:59: DB::RemoteInserter::RemoteInserter(DB::Connection&, DB::ConnectionTimeouts const&, String const&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dcf41d8 in /usr/bin/clickhouse 10. /build/src/Processors/Sinks/RemoteSink.h:17: DB::RemoteSink::RemoteSink(DB::Connection&, DB::ConnectionTimeouts const&, String const&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dd15fac in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::RemoteSink* std::construct_at[abi:v15000](DB::RemoteSink*, DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dd15f41 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::RemoteSink*, DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dd15ce1 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dd159cd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&, void>(std::allocator const&, DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dd15820 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dd155e6 in /usr/bin/clickhouse 16. /build/src/Storages/Distributed/DistributedSink.cpp:398: DB::DistributedSink::runWritingJob(DB::DistributedSink::JobReplica&, DB::Block const&, unsigned long)::$_0::operator()() const @ 0x000000001dd0ecd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::DistributedSink::runWritingJob(DB::DistributedSink::JobReplica&, DB::Block const&, unsigned long)::$_0&) @ 0x000000001dd0dd35 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::DistributedSink::runWritingJob(DB::DistributedSink::JobReplica&, DB::Block const&, unsigned long)::$_0&) @ 0x000000001dd0dd15 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001dd0dcf5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001dd0dcc0 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse 2024.10.22 10:56:01.579403 [ 69183 ] {} TCPHandler: Code: 101. DB::NetException: Unexpected packet Data received from client. (UNEXPECTED_PACKET_FROM_CLIENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:14: DB::NetException::NetException(int, char const (&) [44]) @ 0x000000001e65f39e in /usr/bin/clickhouse 6. /build/src/Server/TCPHandler.cpp:1848: DB::TCPHandler::receiveUnexpectedData(bool) @ 0x000000001e657d42 in /usr/bin/clickhouse 7. /build/src/Server/TCPHandler.cpp:0: DB::TCPHandler::receivePacket() @ 0x000000001e64eeaf in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:348: DB::TCPHandler::runImpl() @ 0x000000001e647041 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 10. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 12. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 15. ? @ 0x00007f1a0debbac3 in ? 16. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:57:10.774358 [ 69183 ] {608def0a-35d9-488c-9077-2d2650ea284e} executeQuery: Code: 57. DB::Exception: Table `test_1603_rename_bug_ordinary`.`foo` already exists (detached). (TABLE_ALREADY_EXISTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49854) (comment: 01603_rename_overwrite_bug.sql) (in query: rename table test_1603_rename_bug_ordinary.bar to test_1603_rename_bug_ordinary.foo;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseOnDisk.cpp:356: DB::DatabaseOnDisk::checkMetadataFilenameAvailabilityUnlocked(String const&) const @ 0x000000001bacdffd in /usr/bin/clickhouse 7. /build/src/Databases/DatabaseOnDisk.cpp:341: DB::DatabaseOnDisk::checkMetadataFilenameAvailability(String const&) const @ 0x000000001bacdbf2 in /usr/bin/clickhouse 8. /build/src/Databases/DatabaseOnDisk.cpp:418: DB::DatabaseOnDisk::renameTable(std::shared_ptr, String const&, DB::IDatabase&, String const&, bool, bool) @ 0x000000001baceb69 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterRenameQuery.cpp:141: DB::InterpreterRenameQuery::executeToTables(DB::ASTRenameQuery const&, std::vector> const&, std::map>, std::less, std::allocator>>>>&) @ 0x000000001ca9c48c in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterRenameQuery.cpp:75: DB::InterpreterRenameQuery::execute() @ 0x000000001ca9af59 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:57:10.775105 [ 69183 ] {608def0a-35d9-488c-9077-2d2650ea284e} TCPHandler: Code: 57. DB::Exception: Table `test_1603_rename_bug_ordinary`.`foo` already exists (detached). (TABLE_ALREADY_EXISTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseOnDisk.cpp:356: DB::DatabaseOnDisk::checkMetadataFilenameAvailabilityUnlocked(String const&) const @ 0x000000001bacdffd in /usr/bin/clickhouse 7. /build/src/Databases/DatabaseOnDisk.cpp:341: DB::DatabaseOnDisk::checkMetadataFilenameAvailability(String const&) const @ 0x000000001bacdbf2 in /usr/bin/clickhouse 8. /build/src/Databases/DatabaseOnDisk.cpp:418: DB::DatabaseOnDisk::renameTable(std::shared_ptr, String const&, DB::IDatabase&, String const&, bool, bool) @ 0x000000001baceb69 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterRenameQuery.cpp:141: DB::InterpreterRenameQuery::executeToTables(DB::ASTRenameQuery const&, std::vector> const&, std::map>, std::less, std::allocator>>>>&) @ 0x000000001ca9c48c in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterRenameQuery.cpp:75: DB::InterpreterRenameQuery::execute() @ 0x000000001ca9af59 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:57:11.006976 [ 69183 ] {96ef898d-f39b-4860-8532-f7ca814c2daf} executeQuery: Code: 57. DB::Exception: Table `test_1603_rename_bug_atomic`.`foo` already exists (detached). (TABLE_ALREADY_EXISTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49854) (comment: 01603_rename_overwrite_bug.sql) (in query: rename table test_1603_rename_bug_atomic.bar to test_1603_rename_bug_atomic.foo;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseOnDisk.cpp:356: DB::DatabaseOnDisk::checkMetadataFilenameAvailabilityUnlocked(String const&) const @ 0x000000001bacdffd in /usr/bin/clickhouse 7. /build/src/Databases/DatabaseAtomic.cpp:240: DB::DatabaseAtomic::renameTable(std::shared_ptr, String const&, DB::IDatabase&, String const&, bool, bool) @ 0x000000001badd053 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterRenameQuery.cpp:141: DB::InterpreterRenameQuery::executeToTables(DB::ASTRenameQuery const&, std::vector> const&, std::map>, std::less, std::allocator>>>>&) @ 0x000000001ca9c48c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterRenameQuery.cpp:75: DB::InterpreterRenameQuery::execute() @ 0x000000001ca9af59 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:57:11.007857 [ 69183 ] {96ef898d-f39b-4860-8532-f7ca814c2daf} TCPHandler: Code: 57. DB::Exception: Table `test_1603_rename_bug_atomic`.`foo` already exists (detached). (TABLE_ALREADY_EXISTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseOnDisk.cpp:356: DB::DatabaseOnDisk::checkMetadataFilenameAvailabilityUnlocked(String const&) const @ 0x000000001bacdffd in /usr/bin/clickhouse 7. /build/src/Databases/DatabaseAtomic.cpp:240: DB::DatabaseAtomic::renameTable(std::shared_ptr, String const&, DB::IDatabase&, String const&, bool, bool) @ 0x000000001badd053 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterRenameQuery.cpp:141: DB::InterpreterRenameQuery::executeToTables(DB::ASTRenameQuery const&, std::vector> const&, std::map>, std::less, std::allocator>>>>&) @ 0x000000001ca9c48c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterRenameQuery.cpp:75: DB::InterpreterRenameQuery::execute() @ 0x000000001ca9af59 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:59:05.043141 [ 62467 ] {50e682cf-c60d-4b8e-9906-addead478698} executeQuery: Code: 520. DB::Exception: Cannot drop/detach dictionary database_for_dict.dict1 as table, use DROP DICTIONARY or DETACH DICTIONARY query instead. (CANNOT_DETACH_DICTIONARY_AS_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47612) (comment: 01575_disable_detach_table_of_dictionary.sql) (in query: DETACH TABLE database_for_dict.dict1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDictionary.cpp:151: DB::StorageDictionary::checkTableCanBeDropped(std::shared_ptr) const @ 0x000000001d64fc6a in /usr/bin/clickhouse 7. /build/src/Storages/StorageDictionary.cpp:165: DB::StorageDictionary::checkTableCanBeDetached() const @ 0x000000001d64fdd9 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterDropQuery.cpp:176: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8ba0d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:59:05.043791 [ 62467 ] {50e682cf-c60d-4b8e-9906-addead478698} TCPHandler: Code: 520. DB::Exception: Cannot drop/detach dictionary database_for_dict.dict1 as table, use DROP DICTIONARY or DETACH DICTIONARY query instead. (CANNOT_DETACH_DICTIONARY_AS_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDictionary.cpp:151: DB::StorageDictionary::checkTableCanBeDropped(std::shared_ptr) const @ 0x000000001d64fc6a in /usr/bin/clickhouse 7. /build/src/Storages/StorageDictionary.cpp:165: DB::StorageDictionary::checkTableCanBeDetached() const @ 0x000000001d64fdd9 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterDropQuery.cpp:176: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8ba0d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:59:05.129414 [ 62467 ] {c673527e-a281-4727-938c-43cf7098cd52} executeQuery: Code: 80. DB::Exception: Cannot ATTACH TABLE database_for_dict.dict1, it is a Dictionary. (INCORRECT_QUERY) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47612) (comment: 01575_disable_detach_table_of_dictionary.sql) (in query: ATTACH TABLE database_for_dict.dict1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1118: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f2a5d in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:59:05.130076 [ 62467 ] {c673527e-a281-4727-938c-43cf7098cd52} TCPHandler: Code: 80. DB::Exception: Cannot ATTACH TABLE database_for_dict.dict1, it is a Dictionary. (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1118: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f2a5d in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 10:59:35.357334 [ 72439 ] {bd14b3eb-40ba-4bab-a729-6aac1ff13a14} executeQuery: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_0_0_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r4 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:44362) (comment: 01459_manual_write_to_replicas_quorum_detach_attach.sh) (in query: INSERT INTO r6 SELECT 0), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e33d59c in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e33c77b in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e325061 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e32473d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e322d2f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 2024.10.22 10:59:35.357334 [ 72938 ] {f573471c-772e-4512-ad68-44deb113a008} executeQuery: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_0_0_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r4 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:44370) (comment: 01459_manual_write_to_replicas_quorum_detach_attach.sh) (in query: INSERT INTO r1 SELECT 0), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e33d59c in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e33c77b in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e325061 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e32473d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e322d2f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 2024.10.22 10:59:35.359524 [ 72439 ] {bd14b3eb-40ba-4bab-a729-6aac1ff13a14} TCPHandler: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_0_0_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r4 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e33d59c in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e33c77b in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e325061 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e32473d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e322d2f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 2024.10.22 10:59:35.359902 [ 72938 ] {f573471c-772e-4512-ad68-44deb113a008} TCPHandler: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_0_0_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r4 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e33d59c in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e33c77b in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e325061 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e32473d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e322d2f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 2024.10.22 10:59:40.344771 [ 72439 ] {55ba991f-51e3-423a-ac63-cc1f5c013eff} executeQuery: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_1_1_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r4 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59772) (comment: 01459_manual_write_to_replicas_quorum_detach_attach.sh) (in query: INSERT INTO r5 SELECT 1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e33d59c in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e33c77b in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e325061 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e32473d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e322d2f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 2024.10.22 10:59:40.346778 [ 72439 ] {55ba991f-51e3-423a-ac63-cc1f5c013eff} TCPHandler: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_1_1_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r4 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e33d59c in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e33c77b in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e325061 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e32473d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e322d2f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 2024.10.22 10:59:45.450488 [ 72941 ] {c585fa0f-3def-4ea5-afcf-147dde759439} executeQuery: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_2_2_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r2 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59940) (comment: 01459_manual_write_to_replicas_quorum_detach_attach.sh) (in query: INSERT INTO r4 SELECT 2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e33d59c in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e33c77b in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e325061 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e32473d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e322d2f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 2024.10.22 10:59:45.453090 [ 72941 ] {c585fa0f-3def-4ea5-afcf-147dde759439} TCPHandler: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_2_2_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r2 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e33d59c in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e33c77b in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e325061 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e32473d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e322d2f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 2024.10.22 10:59:55.902283 [ 72941 ] {462f7d17-0c29-4564-b4b0-d2d4b6d71bed} executeQuery: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_4_4_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r2 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59038) (comment: 01459_manual_write_to_replicas_quorum_detach_attach.sh) (in query: INSERT INTO r3 SELECT 4), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e33d59c in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e33c77b in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e325061 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e32473d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e322d2f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 2024.10.22 10:59:55.904211 [ 72941 ] {462f7d17-0c29-4564-b4b0-d2d4b6d71bed} TCPHandler: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_4_4_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r2 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e33d59c in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e33c77b in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e325061 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e32473d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e322d2f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ed32e82 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001ebcd77c in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd735 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001ebcd715 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001ebcd6f5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001ebcd6bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001ebccfd6 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001ebcca1e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 2024.10.22 11:01:09.575509 [ 942 ] {} test_fi3lhlcz.r6 (562efd7d-3766-4f1a-9014-10aaee79533b): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_0_0_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:01:09.575663 [ 941 ] {} test_fi3lhlcz.r8 (28f02444-944c-422f-ad06-2f1e5f30526a): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_0_0_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:01:09.576988 [ 938 ] {} test_fi3lhlcz.r7 (0c9abea9-811e-478d-8edc-da34d59f9edd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_0_0_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:01:15.169252 [ 938 ] {} test_fi3lhlcz.r6 (562efd7d-3766-4f1a-9014-10aaee79533b): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_3_3_0 (state PreActive) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:01:15.180307 [ 936 ] {} test_fi3lhlcz.r7 (0c9abea9-811e-478d-8edc-da34d59f9edd): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_3_3_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:01:17.140572 [ 941 ] {} test_fi3lhlcz.r6 (562efd7d-3766-4f1a-9014-10aaee79533b): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_4_4_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:01:25.186563 [ 939 ] {} test_fi3lhlcz.r6 (562efd7d-3766-4f1a-9014-10aaee79533b): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_8_8_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:01:27.112500 [ 942 ] {} test_fi3lhlcz.r6 (562efd7d-3766-4f1a-9014-10aaee79533b): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_9_9_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:01:29.200682 [ 942 ] {} test_fi3lhlcz.r6 (562efd7d-3766-4f1a-9014-10aaee79533b): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_10_10_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:01:38.664249 [ 940 ] {} test_fi3lhlcz.r10 (e5539217-8177-4537-b397-90daa47796c6): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_15_15_0 (state PreActive) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:01:40.547468 [ 941 ] {} test_fi3lhlcz.r4 (bc68522a-d090-4eb7-88be-c9a3c5698ba1): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_16_16_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:01:50.003055 [ 944 ] {} test_fi3lhlcz.r6 (562efd7d-3766-4f1a-9014-10aaee79533b): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_21_21_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:01:51.903258 [ 941 ] {} test_fi3lhlcz.r9 (6650b8ac-36ef-424f-acfb-1066cac94fda): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_22_22_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:01:51.926453 [ 935 ] {} test_fi3lhlcz.r6 (562efd7d-3766-4f1a-9014-10aaee79533b): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_22_22_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:01:53.904672 [ 936 ] {} test_fi3lhlcz.r4 (bc68522a-d090-4eb7-88be-c9a3c5698ba1): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_23_23_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:02:16.974968 [ 938 ] {} test_fi3lhlcz.r9 (6650b8ac-36ef-424f-acfb-1066cac94fda): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_35_35_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:02:28.646257 [ 6495 ] {ae385b48-23ec-431b-b288-9eef1360b10b} test_fi3lhlcz.r9 (6650b8ac-36ef-424f-acfb-1066cac94fda): checkPartAndAddToZooKeeper: node /clickhouse/tables/01459_manual_write_to_replicas_test_fi3lhlcz/r/replicas/r9/parts/all_41_41_0 already exists. Will not commit any nodes. 2024.10.22 11:02:38.613671 [ 942 ] {} test_fi3lhlcz.r9 (6650b8ac-36ef-424f-acfb-1066cac94fda): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_46_46_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:02:44.169825 [ 935 ] {} test_fi3lhlcz.r6 (562efd7d-3766-4f1a-9014-10aaee79533b): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_49_49_0 (state PreActive) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:03:30.251604 [ 944 ] {} test_fi3lhlcz.r10 (e5539217-8177-4537-b397-90daa47796c6): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_73_73_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:03:49.133061 [ 942 ] {} test_fi3lhlcz.r4 (bc68522a-d090-4eb7-88be-c9a3c5698ba1): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_83_83_0 (state PreActive) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:04:04.458275 [ 935 ] {} test_fi3lhlcz.r2 (204bbfb2-28f6-4037-a143-f05607179ae2): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_92_92_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:04:10.058287 [ 942 ] {} test_fi3lhlcz.r10 (e5539217-8177-4537-b397-90daa47796c6): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_96_96_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:04:13.871545 [ 936 ] {} test_fi3lhlcz.r10 (e5539217-8177-4537-b397-90daa47796c6): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_98_98_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:04:17.661268 [ 941 ] {} test_fi3lhlcz.r2 (204bbfb2-28f6-4037-a143-f05607179ae2): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_100_100_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de9c6fe in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de9ee51 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de9f4f9 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4625: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d83decc in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1953: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d8337bf in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1794: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d825f6e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3279: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d8de179 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de11d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d8de0dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d8de09d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d8de065 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e3043fe in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2ebf3d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1766: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e2d7a99 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3275: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d85b8a8 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3338: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d8df535 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8df4d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8df4b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d8df480 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138a4a76 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x00000000138a3cd5 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d92c2fd in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de5060d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de510ce in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001de5dbb8 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:05:01.624813 [ 72440 ] {9c9158df-9f3a-449f-8772-547785900351} executeQuery: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40246) (comment: 01444_create_table_drop_database_race.sh) (in query: CREATE TABLE IF NOT EXISTS test_01444.t27887 (`x` UInt8) ENGINE = MergeTree ORDER BY tuple() SETTINGS index_granularity = 32405, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 11259, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1000000, vertical_merge_algorithm_min_columns_to_activate = 100, min_merge_bytes_to_use_direct_io = 10737418240, index_granularity_bytes = 4554970, allow_vertical_merges_from_compact_to_wide_parts = true, marks_compress_block_size = 86707, primary_key_compress_block_size = 21284), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1266: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5a06 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:05:01.624990 [ 62467 ] {6a72254b-e61d-4b1c-a895-64d4ef7ecab4} executeQuery: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40234) (comment: 01444_create_table_drop_database_race.sh) (in query: CREATE TABLE IF NOT EXISTS test_01444.t31628 (`x` UInt8) ENGINE = MergeTree ORDER BY tuple() SETTINGS index_granularity = 32405, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 11259, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1000000, vertical_merge_algorithm_min_columns_to_activate = 100, min_merge_bytes_to_use_direct_io = 10737418240, index_granularity_bytes = 4554970, allow_vertical_merges_from_compact_to_wide_parts = true, marks_compress_block_size = 86707, primary_key_compress_block_size = 21284), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1266: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5a06 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:05:01.626430 [ 72440 ] {9c9158df-9f3a-449f-8772-547785900351} TCPHandler: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1266: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5a06 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:05:01.627268 [ 62467 ] {6a72254b-e61d-4b1c-a895-64d4ef7ecab4} TCPHandler: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1266: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5a06 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:05:04.979064 [ 62467 ] {215baa6d-5889-467f-9ccf-0c9af598d33b} executeQuery: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40292) (comment: 01444_create_table_drop_database_race.sh) (in query: CREATE TABLE IF NOT EXISTS test_01444.t26809 (`x` UInt8) ENGINE = MergeTree ORDER BY tuple() SETTINGS index_granularity = 32405, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 11259, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1000000, vertical_merge_algorithm_min_columns_to_activate = 100, min_merge_bytes_to_use_direct_io = 10737418240, index_granularity_bytes = 4554970, allow_vertical_merges_from_compact_to_wide_parts = true, marks_compress_block_size = 86707, primary_key_compress_block_size = 21284), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1266: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5a06 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:05:04.980740 [ 62467 ] {215baa6d-5889-467f-9ccf-0c9af598d33b} TCPHandler: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1266: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5a06 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:05:04.998058 [ 72440 ] {3f6b0ff2-b8e8-41a8-978e-53078a0a1159} executeQuery: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:40296) (comment: 01444_create_table_drop_database_race.sh) (in query: CREATE TABLE IF NOT EXISTS test_01444.t3228 (`x` UInt8) ENGINE = MergeTree ORDER BY tuple() SETTINGS index_granularity = 32405, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 11259, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1000000, vertical_merge_algorithm_min_columns_to_activate = 100, min_merge_bytes_to_use_direct_io = 10737418240, index_granularity_bytes = 4554970, allow_vertical_merges_from_compact_to_wide_parts = true, marks_compress_block_size = 86707, primary_key_compress_block_size = 21284), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1266: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5a06 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:05:04.999541 [ 72440 ] {3f6b0ff2-b8e8-41a8-978e-53078a0a1159} TCPHandler: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1266: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5a06 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:05:08.277456 [ 72440 ] {3ea11e16-7605-470c-80bf-01022dc71206} executeQuery: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49818) (comment: 01444_create_table_drop_database_race.sh) (in query: CREATE TABLE IF NOT EXISTS test_01444.t2374 (`x` UInt8) ENGINE = MergeTree ORDER BY tuple() SETTINGS index_granularity = 32405, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 11259, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1000000, vertical_merge_algorithm_min_columns_to_activate = 100, min_merge_bytes_to_use_direct_io = 10737418240, index_granularity_bytes = 4554970, allow_vertical_merges_from_compact_to_wide_parts = true, marks_compress_block_size = 86707, primary_key_compress_block_size = 21284), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1266: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5a06 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:05:08.278932 [ 72440 ] {3ea11e16-7605-470c-80bf-01022dc71206} TCPHandler: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1266: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5a06 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:05:08.328308 [ 72962 ] {ea04842e-9136-4ae4-8eb6-45b29279eae8} executeQuery: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49828) (comment: 01444_create_table_drop_database_race.sh) (in query: CREATE TABLE IF NOT EXISTS test_01444.t12691 (`x` UInt8) ENGINE = MergeTree ORDER BY tuple() SETTINGS index_granularity = 32405, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 11259, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1000000, vertical_merge_algorithm_min_columns_to_activate = 100, min_merge_bytes_to_use_direct_io = 10737418240, index_granularity_bytes = 4554970, allow_vertical_merges_from_compact_to_wide_parts = true, marks_compress_block_size = 86707, primary_key_compress_block_size = 21284), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1266: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5a06 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:05:08.330002 [ 72962 ] {ea04842e-9136-4ae4-8eb6-45b29279eae8} TCPHandler: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1266: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5a06 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:07:20.541427 [ 925 ] {} 31152a29-22b0-4566-8179-e61c085bff01::20191002_1_1_0_2 (MutateFromLogEntryTask): virtual bool DB::ReplicatedMergeMutateTaskBase::executeStep(): Code: 160. DB::Exception: The maximum sleep time is 3000000 microseconds. Requested: 10000000 microseconds per block (of size 10): while executing 'FUNCTION sleepEachRow(1 : 1) -> sleepEachRow(1) UInt8 : 4'. (TOO_SLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long const&, unsigned long&, unsigned long&) @ 0x0000000012546c08 in /usr/bin/clickhouse 6. /build/src/Functions/sleep.h:124: DB::FunctionSleep<(DB::FunctionSleepVariant)1>::execute(std::vector> const&, std::shared_ptr const&, bool) const @ 0x00000000125489ab in /usr/bin/clickhouse 7. /build/src/Functions/sleep.h:94: DB::FunctionSleep<(DB::FunctionSleepVariant)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125481f7 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e6fb081 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MutateTask.cpp:1137: DB::PartMergerWriter::mutateOriginalPartAndPrepareProjections() @ 0x000000001e21002a in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MutateTask.cpp:1062: DB::PartMergerWriter::execute() @ 0x000000001e2326e3 in /usr/bin/clickhouse 25. /build/src/Storages/MergeTree/MutateTask.cpp:1506: DB::MutateSomePartColumnsTask::executeStep() @ 0x000000001e236baa in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/MutateTask.cpp:1754: DB::MutateTask::execute() @ 0x000000001e21126f in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/MutateFromLogEntryTask.h:44: DB::MutateFromLogEntryTask::executeInnerTask() @ 0x000000001e20d924 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:188: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e27cb79 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e27b560 in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de56fed in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de57a4e in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:07:20.541522 [ 924 ] {} 31152a29-22b0-4566-8179-e61c085bff01::20191002_0_0_0_2 (MutateFromLogEntryTask): virtual bool DB::ReplicatedMergeMutateTaskBase::executeStep(): Code: 160. DB::Exception: The maximum sleep time is 3000000 microseconds. Requested: 10000000 microseconds per block (of size 10): while executing 'FUNCTION sleepEachRow(1 : 1) -> sleepEachRow(1) UInt8 : 4'. (TOO_SLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long const&, unsigned long&, unsigned long&) @ 0x0000000012546c08 in /usr/bin/clickhouse 6. /build/src/Functions/sleep.h:124: DB::FunctionSleep<(DB::FunctionSleepVariant)1>::execute(std::vector> const&, std::shared_ptr const&, bool) const @ 0x00000000125489ab in /usr/bin/clickhouse 7. /build/src/Functions/sleep.h:94: DB::FunctionSleep<(DB::FunctionSleepVariant)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125481f7 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e6fb081 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MutateTask.cpp:1137: DB::PartMergerWriter::mutateOriginalPartAndPrepareProjections() @ 0x000000001e21002a in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MutateTask.cpp:1062: DB::PartMergerWriter::execute() @ 0x000000001e2326e3 in /usr/bin/clickhouse 25. /build/src/Storages/MergeTree/MutateTask.cpp:1506: DB::MutateSomePartColumnsTask::executeStep() @ 0x000000001e236baa in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/MutateTask.cpp:1754: DB::MutateTask::execute() @ 0x000000001e21126f in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/MutateFromLogEntryTask.h:44: DB::MutateFromLogEntryTask::executeInnerTask() @ 0x000000001e20d924 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:188: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e27cb79 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e27b560 in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de56fed in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de57a4e in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:07:20.542221 [ 925 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {31152a29-22b0-4566-8179-e61c085bff01::20191002_1_1_0_2}: Code: 160. DB::Exception: The maximum sleep time is 3000000 microseconds. Requested: 10000000 microseconds per block (of size 10): while executing 'FUNCTION sleepEachRow(1 : 1) -> sleepEachRow(1) UInt8 : 4'. (TOO_SLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long const&, unsigned long&, unsigned long&) @ 0x0000000012546c08 in /usr/bin/clickhouse 6. /build/src/Functions/sleep.h:124: DB::FunctionSleep<(DB::FunctionSleepVariant)1>::execute(std::vector> const&, std::shared_ptr const&, bool) const @ 0x00000000125489ab in /usr/bin/clickhouse 7. /build/src/Functions/sleep.h:94: DB::FunctionSleep<(DB::FunctionSleepVariant)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125481f7 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e6fb081 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MutateTask.cpp:1137: DB::PartMergerWriter::mutateOriginalPartAndPrepareProjections() @ 0x000000001e21002a in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MutateTask.cpp:1062: DB::PartMergerWriter::execute() @ 0x000000001e2326e3 in /usr/bin/clickhouse 25. /build/src/Storages/MergeTree/MutateTask.cpp:1506: DB::MutateSomePartColumnsTask::executeStep() @ 0x000000001e236baa in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/MutateTask.cpp:1754: DB::MutateTask::execute() @ 0x000000001e21126f in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/MutateFromLogEntryTask.h:44: DB::MutateFromLogEntryTask::executeInnerTask() @ 0x000000001e20d924 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:188: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e27cb79 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e27b560 in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de56fed in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de57a4e in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:07:20.542439 [ 924 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {31152a29-22b0-4566-8179-e61c085bff01::20191002_0_0_0_2}: Code: 160. DB::Exception: The maximum sleep time is 3000000 microseconds. Requested: 10000000 microseconds per block (of size 10): while executing 'FUNCTION sleepEachRow(1 : 1) -> sleepEachRow(1) UInt8 : 4'. (TOO_SLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long const&, unsigned long&, unsigned long&) @ 0x0000000012546c08 in /usr/bin/clickhouse 6. /build/src/Functions/sleep.h:124: DB::FunctionSleep<(DB::FunctionSleepVariant)1>::execute(std::vector> const&, std::shared_ptr const&, bool) const @ 0x00000000125489ab in /usr/bin/clickhouse 7. /build/src/Functions/sleep.h:94: DB::FunctionSleep<(DB::FunctionSleepVariant)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125481f7 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e6fb081 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MutateTask.cpp:1137: DB::PartMergerWriter::mutateOriginalPartAndPrepareProjections() @ 0x000000001e21002a in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MutateTask.cpp:1062: DB::PartMergerWriter::execute() @ 0x000000001e2326e3 in /usr/bin/clickhouse 25. /build/src/Storages/MergeTree/MutateTask.cpp:1506: DB::MutateSomePartColumnsTask::executeStep() @ 0x000000001e236baa in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/MutateTask.cpp:1754: DB::MutateTask::execute() @ 0x000000001e21126f in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/MutateFromLogEntryTask.h:44: DB::MutateFromLogEntryTask::executeInnerTask() @ 0x000000001e20d924 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:188: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e27cb79 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e27b560 in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001de56fed in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001de57a4e in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:07:21.187721 [ 72440 ] {48558c28-022e-443d-9b1f-102f644a8ec1} executeQuery: Code: 341. DB::Exception: Mutation 0000000000 was killed, manually removed or table was dropped. (UNFINISHED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34490) (comment: 01414_mutations_and_errors_zookeeper.sh) (in query: ALTER TABLE replicated_mutation_table UPDATE key = key + 1 WHERE sleepEachRow(1) == 0 SETTINGS mutations_sync = 2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:599: DB::StorageReplicatedMergeTree::waitMutationToFinishOnReplicas(std::vector> const&, String const&) const @ 0x000000001d80e889 in /usr/bin/clickhouse 7. /build/src/Storages/StorageReplicatedMergeTree.cpp:7093: DB::StorageReplicatedMergeTree::waitMutation(String const&, unsigned long) const @ 0x000000001d882619 in /usr/bin/clickhouse 8. /build/src/Storages/StorageReplicatedMergeTree.cpp:7066: DB::StorageReplicatedMergeTree::mutate(DB::MutationCommands const&, std::shared_ptr) @ 0x000000001d89c8bf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:179: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da03a in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:07:21.189527 [ 72440 ] {48558c28-022e-443d-9b1f-102f644a8ec1} TCPHandler: Code: 341. DB::Exception: Mutation 0000000000 was killed, manually removed or table was dropped. (UNFINISHED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:599: DB::StorageReplicatedMergeTree::waitMutationToFinishOnReplicas(std::vector> const&, String const&) const @ 0x000000001d80e889 in /usr/bin/clickhouse 7. /build/src/Storages/StorageReplicatedMergeTree.cpp:7093: DB::StorageReplicatedMergeTree::waitMutation(String const&, unsigned long) const @ 0x000000001d882619 in /usr/bin/clickhouse 8. /build/src/Storages/StorageReplicatedMergeTree.cpp:7066: DB::StorageReplicatedMergeTree::mutate(DB::MutationCommands const&, std::shared_ptr) @ 0x000000001d89c8bf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:179: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da03a in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:07:21.710891 [ 916 ] {} test_b2ap8dum.replicated_mutation_table (ReplicatedMergeTreeQueue): There are no mutations for partition ID 20191002 (trying to mutate part 20191002_1_1_0 to 2) 2024.10.22 11:07:21.711094 [ 915 ] {} test_b2ap8dum.replicated_mutation_table (ReplicatedMergeTreeQueue): There are no mutations for partition ID 20191002 (trying to mutate part 20191002_0_0_0 to 2) 2024.10.22 11:07:23.510026 [ 914 ] {} 31152a29-22b0-4566-8179-e61c085bff01::20191002_1_1_0_3 (MutateFromLogEntryTask): virtual bool DB::ReplicatedMergeMutateTaskBase::executeStep(): Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/311/31152a29-22b0-4566-8179-e61c085bff01/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2f3d77 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2eea38 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2dd159 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2dc488 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2db69e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:780: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf8910e in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0d4c56 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:07:23.511230 [ 914 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {31152a29-22b0-4566-8179-e61c085bff01::20191002_1_1_0_3}: Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/311/31152a29-22b0-4566-8179-e61c085bff01/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2f3d77 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2eea38 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2dd159 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2dc488 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2db69e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:780: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf8910e in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0d4c56 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:07:24.042387 [ 911 ] {} 31152a29-22b0-4566-8179-e61c085bff01::20191002_1_1_0_3 (MutateFromLogEntryTask): virtual bool DB::ReplicatedMergeMutateTaskBase::executeStep(): Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/311/31152a29-22b0-4566-8179-e61c085bff01/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2f3d77 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2eea38 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2dd159 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2dc488 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2db69e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:780: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf8910e in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0d4c56 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:07:24.043812 [ 911 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {31152a29-22b0-4566-8179-e61c085bff01::20191002_1_1_0_3}: Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/311/31152a29-22b0-4566-8179-e61c085bff01/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2f3d77 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2eea38 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2dd159 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2dc488 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2db69e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:780: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf8910e in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0d4c56 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:07:24.523439 [ 72440 ] {0136509a-5ea4-41c2-a05c-a445c4284592} executeQuery: Code: 341. DB::Exception: Exception happened during execution of mutation '0000000001' with part '20191002_1_1_0_2' reason: 'Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/311/31152a29-22b0-4566-8179-e61c085bff01/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build))'. This error maybe retryable or not. In case of unretryable error, mutation can be killed with KILL MUTATION query. (UNFINISHED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34498) (comment: 01414_mutations_and_errors_zookeeper.sh) (in query: ALTER TABLE replicated_mutation_table MODIFY COLUMN value UInt64 SETTINGS replication_alter_partitions_sync = 2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&&, String&, String&) @ 0x000000001e0d5ca4 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeMutationStatus.cpp:26: DB::checkMutationStatus(std::optional&, std::set, std::allocator> const&) @ 0x000000001e0d5a50 in /usr/bin/clickhouse 7. /build/src/Storages/StorageReplicatedMergeTree.cpp:662: DB::StorageReplicatedMergeTree::waitMutationToFinishOnReplicas(std::vector> const&, String const&) const @ 0x000000001d81028e in /usr/bin/clickhouse 8. /build/src/Storages/StorageReplicatedMergeTree.cpp:7093: DB::StorageReplicatedMergeTree::waitMutation(String const&, unsigned long) const @ 0x000000001d882619 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:5911: DB::StorageReplicatedMergeTree::alter(DB::AlterCommands const&, std::shared_ptr, std::unique_lock&) @ 0x000000001d881b9f in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:197: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da5e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:07:24.525780 [ 72440 ] {0136509a-5ea4-41c2-a05c-a445c4284592} TCPHandler: Code: 341. DB::Exception: Exception happened during execution of mutation '0000000001' with part '20191002_1_1_0_2' reason: 'Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/311/31152a29-22b0-4566-8179-e61c085bff01/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build))'. This error maybe retryable or not. In case of unretryable error, mutation can be killed with KILL MUTATION query. (UNFINISHED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&&, String&, String&) @ 0x000000001e0d5ca4 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeMutationStatus.cpp:26: DB::checkMutationStatus(std::optional&, std::set, std::allocator> const&) @ 0x000000001e0d5a50 in /usr/bin/clickhouse 7. /build/src/Storages/StorageReplicatedMergeTree.cpp:662: DB::StorageReplicatedMergeTree::waitMutationToFinishOnReplicas(std::vector> const&, String const&) const @ 0x000000001d81028e in /usr/bin/clickhouse 8. /build/src/Storages/StorageReplicatedMergeTree.cpp:7093: DB::StorageReplicatedMergeTree::waitMutation(String const&, unsigned long) const @ 0x000000001d882619 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:5911: DB::StorageReplicatedMergeTree::alter(DB::AlterCommands const&, std::shared_ptr, std::unique_lock&) @ 0x000000001d881b9f in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:197: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7da5e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:07:24.914181 [ 920 ] {} 31152a29-22b0-4566-8179-e61c085bff01::20191002_1_1_0_3 (MutateFromLogEntryTask): virtual bool DB::ReplicatedMergeMutateTaskBase::executeStep(): Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/311/31152a29-22b0-4566-8179-e61c085bff01/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2f3d77 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2eea38 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2dd159 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2dc488 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2db69e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:780: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf8910e in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0d4c56 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:07:24.915743 [ 920 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {31152a29-22b0-4566-8179-e61c085bff01::20191002_1_1_0_3}: Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/311/31152a29-22b0-4566-8179-e61c085bff01/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2f3d77 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2eea38 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2dd159 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2dc488 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2db69e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:780: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf8910e in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0d4c56 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:07:25.532579 [ 914 ] {} 31152a29-22b0-4566-8179-e61c085bff01::20191002_1_1_0_3 (MutateFromLogEntryTask): virtual bool DB::ReplicatedMergeMutateTaskBase::executeStep(): Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/311/31152a29-22b0-4566-8179-e61c085bff01/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2f3d77 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2eea38 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2dd159 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2dc488 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2db69e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:780: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf8910e in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0d4c56 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:07:25.533911 [ 914 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {31152a29-22b0-4566-8179-e61c085bff01::20191002_1_1_0_3}: Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/311/31152a29-22b0-4566-8179-e61c085bff01/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2f3d77 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2eea38 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2dd159 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2dc488 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2db69e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:780: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf8910e in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0d4c56 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:07:25.911681 [ 911 ] {} 31152a29-22b0-4566-8179-e61c085bff01::20191002_1_1_0_3 (MutateFromLogEntryTask): virtual bool DB::ReplicatedMergeMutateTaskBase::executeStep(): Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/311/31152a29-22b0-4566-8179-e61c085bff01/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2f3d77 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2eea38 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2dd159 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2dc488 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2db69e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:780: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf8910e in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0d4c56 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:07:25.913039 [ 911 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {31152a29-22b0-4566-8179-e61c085bff01::20191002_1_1_0_3}: Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/311/31152a29-22b0-4566-8179-e61c085bff01/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2f3d77 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2eea38 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2dd159 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2dc488 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2db69e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:780: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf8910e in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0d4c56 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:07:26.283852 [ 920 ] {} test_b2ap8dum.replicated_mutation_table (ReplicatedMergeTreeQueue): There are no mutations for partition ID 20191002 (trying to mutate part 20191002_1_1_0_2 to 3) 2024.10.22 11:07:28.577942 [ 72440 ] {002b632c-c30e-4370-9ed7-7342a555e172} executeQuery: Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/311/31152a29-22b0-4566-8179-e61c085bff01/20191002_1_1_0_3/ located on disk default of type local): While executing MergeTreeThread. (CANNOT_PARSE_TEXT) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49312) (comment: 01414_mutations_and_errors_zookeeper.sh) (in query: SELECT distinct(value) FROM replicated_mutation_table ORDER BY value), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2f3d77 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2eea38 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2dd159 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2dc488 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2db69e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:780: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf8910e in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0d4c56 in /usr/bin/clickhouse 2024.10.22 11:07:28.581163 [ 72440 ] {002b632c-c30e-4370-9ed7-7342a555e172} TCPHandler: Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/311/31152a29-22b0-4566-8179-e61c085bff01/20191002_1_1_0_3/ located on disk default of type local): While executing MergeTreeThread. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b21b371 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2f3d77 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2eea38 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2dd159 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2dc488 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2db69e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b197a92 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b23c1d0 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c166 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c100 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b23c0a0 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23c04b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1fe8a7 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1fb140 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1fa5ef in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1dee in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:780: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf8910e in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0d4c56 in /usr/bin/clickhouse 2024.10.22 11:08:55.635679 [ 816 ] {} test_3bcmk3h2.test_table_2 (ReplicatedMergeTreeRestartingThread): Failed to restart the table. Will try again: Code: 415. DB::Exception: All replicas are lost. See SYSTEM DROP REPLICA and SYSTEM RESTORE REPLICA queries, they may help. (ALL_REPLICAS_LOST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [97]) @ 0x000000000b256dde in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:3165: DB::StorageReplicatedMergeTree::cloneReplicaIfNeeded(std::shared_ptr) @ 0x000000001d859db9 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:165: DB::ReplicatedMergeTreeRestartingThread::tryStartup() @ 0x000000001e3147df in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:131: DB::ReplicatedMergeTreeRestartingThread::runImpl() @ 0x000000001e313ae9 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:57: DB::ReplicatedMergeTreeRestartingThread::run() @ 0x000000001e312591 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:42: DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0::operator()() const @ 0x000000001e318e58 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e318e35 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e318e15 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e318df5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e318dbd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 17. /build/src/Core/BackgroundSchedulePool.cpp:104: DB::BackgroundSchedulePoolTaskInfo::execute() @ 0x000000001b3d7afd in /usr/bin/clickhouse 18. /build/src/Core/BackgroundSchedulePool.cpp:302: DB::BackgroundSchedulePool::threadFunction() @ 0x000000001b3da8e6 in /usr/bin/clickhouse 19. /build/src/Core/BackgroundSchedulePool.cpp:168: DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0::operator()() const @ 0x000000001b3db7d8 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0&>()()) std::__invoke[abi:v15000], StrongTypedef, char const*)::$_0&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&) @ 0x000000001b3db7b5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001b3db799 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&) @ 0x000000001b3db6fd in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()::operator()() @ 0x000000001b3db625 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0>()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&) @ 0x000000001b3db595 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&) @ 0x000000001b3db575 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001b3db555 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001b3db520 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:08:55.636171 [ 816 ] {} test_3bcmk3h2.test_table_2 (ReplicatedMergeTreeRestartingThread): Table was in readonly mode. Will try to activate it. 2024.10.22 11:08:55.636653 [ 827 ] {} test_3bcmk3h2.test_table_1 (ReplicatedMergeTreeRestartingThread): Failed to restart the table. Will try again: Code: 415. DB::Exception: All replicas are lost. See SYSTEM DROP REPLICA and SYSTEM RESTORE REPLICA queries, they may help. (ALL_REPLICAS_LOST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [97]) @ 0x000000000b256dde in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:3165: DB::StorageReplicatedMergeTree::cloneReplicaIfNeeded(std::shared_ptr) @ 0x000000001d859db9 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:165: DB::ReplicatedMergeTreeRestartingThread::tryStartup() @ 0x000000001e3147df in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:131: DB::ReplicatedMergeTreeRestartingThread::runImpl() @ 0x000000001e313ae9 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:57: DB::ReplicatedMergeTreeRestartingThread::run() @ 0x000000001e312591 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:42: DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0::operator()() const @ 0x000000001e318e58 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e318e35 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e318e15 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e318df5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e318dbd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 17. /build/src/Core/BackgroundSchedulePool.cpp:104: DB::BackgroundSchedulePoolTaskInfo::execute() @ 0x000000001b3d7afd in /usr/bin/clickhouse 18. /build/src/Core/BackgroundSchedulePool.cpp:302: DB::BackgroundSchedulePool::threadFunction() @ 0x000000001b3da8e6 in /usr/bin/clickhouse 19. /build/src/Core/BackgroundSchedulePool.cpp:168: DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0::operator()() const @ 0x000000001b3db7d8 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0&>()()) std::__invoke[abi:v15000], StrongTypedef, char const*)::$_0&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&) @ 0x000000001b3db7b5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001b3db799 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&) @ 0x000000001b3db6fd in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()::operator()() @ 0x000000001b3db625 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0>()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&) @ 0x000000001b3db595 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&) @ 0x000000001b3db575 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001b3db555 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001b3db520 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:08:55.648015 [ 816 ] {} test_3bcmk3h2.test_table_2 (ReplicatedMergeTreeRestartingThread): Failed to restart the table. Will try again: Code: 415. DB::Exception: All replicas are lost. See SYSTEM DROP REPLICA and SYSTEM RESTORE REPLICA queries, they may help. (ALL_REPLICAS_LOST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [97]) @ 0x000000000b256dde in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:3165: DB::StorageReplicatedMergeTree::cloneReplicaIfNeeded(std::shared_ptr) @ 0x000000001d859db9 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:165: DB::ReplicatedMergeTreeRestartingThread::tryStartup() @ 0x000000001e3147df in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:131: DB::ReplicatedMergeTreeRestartingThread::runImpl() @ 0x000000001e313ae9 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:57: DB::ReplicatedMergeTreeRestartingThread::run() @ 0x000000001e312591 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:42: DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0::operator()() const @ 0x000000001e318e58 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e318e35 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e318e15 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e318df5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e318dbd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 17. /build/src/Core/BackgroundSchedulePool.cpp:104: DB::BackgroundSchedulePoolTaskInfo::execute() @ 0x000000001b3d7afd in /usr/bin/clickhouse 18. /build/src/Core/BackgroundSchedulePool.cpp:302: DB::BackgroundSchedulePool::threadFunction() @ 0x000000001b3da8e6 in /usr/bin/clickhouse 19. /build/src/Core/BackgroundSchedulePool.cpp:168: DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0::operator()() const @ 0x000000001b3db7d8 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0&>()()) std::__invoke[abi:v15000], StrongTypedef, char const*)::$_0&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&) @ 0x000000001b3db7b5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001b3db799 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&) @ 0x000000001b3db6fd in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()::operator()() @ 0x000000001b3db625 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0>()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&) @ 0x000000001b3db595 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&) @ 0x000000001b3db575 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001b3db555 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001b3db520 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:08:55.661283 [ 747 ] {} test_3bcmk3h2.test_table_1 (ReplicatedMergeTreeRestartingThread): Table was in readonly mode. Will try to activate it. 2024.10.22 11:08:55.674257 [ 747 ] {} test_3bcmk3h2.test_table_1 (ReplicatedMergeTreeRestartingThread): Failed to restart the table. Will try again: Code: 415. DB::Exception: All replicas are lost. See SYSTEM DROP REPLICA and SYSTEM RESTORE REPLICA queries, they may help. (ALL_REPLICAS_LOST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [97]) @ 0x000000000b256dde in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:3165: DB::StorageReplicatedMergeTree::cloneReplicaIfNeeded(std::shared_ptr) @ 0x000000001d859db9 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:165: DB::ReplicatedMergeTreeRestartingThread::tryStartup() @ 0x000000001e3147df in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:131: DB::ReplicatedMergeTreeRestartingThread::runImpl() @ 0x000000001e313ae9 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:57: DB::ReplicatedMergeTreeRestartingThread::run() @ 0x000000001e312591 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:42: DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0::operator()() const @ 0x000000001e318e58 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e318e35 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e318e15 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e318df5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e318dbd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 17. /build/src/Core/BackgroundSchedulePool.cpp:104: DB::BackgroundSchedulePoolTaskInfo::execute() @ 0x000000001b3d7afd in /usr/bin/clickhouse 18. /build/src/Core/BackgroundSchedulePool.cpp:302: DB::BackgroundSchedulePool::threadFunction() @ 0x000000001b3da8e6 in /usr/bin/clickhouse 19. /build/src/Core/BackgroundSchedulePool.cpp:168: DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0::operator()() const @ 0x000000001b3db7d8 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0&>()()) std::__invoke[abi:v15000], StrongTypedef, char const*)::$_0&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&) @ 0x000000001b3db7b5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001b3db799 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&) @ 0x000000001b3db6fd in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()::operator()() @ 0x000000001b3db625 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0>()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&) @ 0x000000001b3db595 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&) @ 0x000000001b3db575 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001b3db555 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001b3db520 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:08:55.947580 [ 726 ] {} test_3bcmk3h2.test_table_2 (ReplicatedMergeTreeRestartingThread): Table was in readonly mode. Will try to activate it. 2024.10.22 11:08:55.957395 [ 726 ] {} test_3bcmk3h2.test_table_2 (ReplicatedMergeTreeRestartingThread): Failed to restart the table. Will try again: Code: 415. DB::Exception: All replicas are lost. See SYSTEM DROP REPLICA and SYSTEM RESTORE REPLICA queries, they may help. (ALL_REPLICAS_LOST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [97]) @ 0x000000000b256dde in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:3165: DB::StorageReplicatedMergeTree::cloneReplicaIfNeeded(std::shared_ptr) @ 0x000000001d859db9 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:165: DB::ReplicatedMergeTreeRestartingThread::tryStartup() @ 0x000000001e3147df in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:131: DB::ReplicatedMergeTreeRestartingThread::runImpl() @ 0x000000001e313ae9 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:57: DB::ReplicatedMergeTreeRestartingThread::run() @ 0x000000001e312591 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:42: DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0::operator()() const @ 0x000000001e318e58 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e318e35 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e318e15 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e318df5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e318dbd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 17. /build/src/Core/BackgroundSchedulePool.cpp:104: DB::BackgroundSchedulePoolTaskInfo::execute() @ 0x000000001b3d7afd in /usr/bin/clickhouse 18. /build/src/Core/BackgroundSchedulePool.cpp:302: DB::BackgroundSchedulePool::threadFunction() @ 0x000000001b3da8e6 in /usr/bin/clickhouse 19. /build/src/Core/BackgroundSchedulePool.cpp:168: DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0::operator()() const @ 0x000000001b3db7d8 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0&>()()) std::__invoke[abi:v15000], StrongTypedef, char const*)::$_0&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&) @ 0x000000001b3db7b5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001b3db799 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&) @ 0x000000001b3db6fd in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()::operator()() @ 0x000000001b3db625 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0>()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&) @ 0x000000001b3db595 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&) @ 0x000000001b3db575 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001b3db555 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001b3db520 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:08:55.973464 [ 779 ] {} test_3bcmk3h2.test_table_1 (ReplicatedMergeTreeRestartingThread): Table was in readonly mode. Will try to activate it. 2024.10.22 11:08:55.981828 [ 779 ] {} test_3bcmk3h2.test_table_1 (ReplicatedMergeTreeRestartingThread): Failed to restart the table. Will try again: Code: 415. DB::Exception: All replicas are lost. See SYSTEM DROP REPLICA and SYSTEM RESTORE REPLICA queries, they may help. (ALL_REPLICAS_LOST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [97]) @ 0x000000000b256dde in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:3165: DB::StorageReplicatedMergeTree::cloneReplicaIfNeeded(std::shared_ptr) @ 0x000000001d859db9 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:165: DB::ReplicatedMergeTreeRestartingThread::tryStartup() @ 0x000000001e3147df in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:131: DB::ReplicatedMergeTreeRestartingThread::runImpl() @ 0x000000001e313ae9 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:57: DB::ReplicatedMergeTreeRestartingThread::run() @ 0x000000001e312591 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:42: DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0::operator()() const @ 0x000000001e318e58 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e318e35 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e318e15 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e318df5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e318dbd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 17. /build/src/Core/BackgroundSchedulePool.cpp:104: DB::BackgroundSchedulePoolTaskInfo::execute() @ 0x000000001b3d7afd in /usr/bin/clickhouse 18. /build/src/Core/BackgroundSchedulePool.cpp:302: DB::BackgroundSchedulePool::threadFunction() @ 0x000000001b3da8e6 in /usr/bin/clickhouse 19. /build/src/Core/BackgroundSchedulePool.cpp:168: DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0::operator()() const @ 0x000000001b3db7d8 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0&>()()) std::__invoke[abi:v15000], StrongTypedef, char const*)::$_0&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&) @ 0x000000001b3db7b5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001b3db799 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&) @ 0x000000001b3db6fd in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()::operator()() @ 0x000000001b3db625 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0>()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&) @ 0x000000001b3db595 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&) @ 0x000000001b3db575 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001b3db555 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001b3db520 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:08:56.556792 [ 780 ] {} test_3bcmk3h2.test_table_2 (ReplicatedMergeTreeRestartingThread): Table was in readonly mode. Will try to activate it. 2024.10.22 11:08:56.567319 [ 780 ] {} test_3bcmk3h2.test_table_2 (ReplicatedMergeTreeRestartingThread): Failed to restart the table. Will try again: Code: 415. DB::Exception: All replicas are lost. See SYSTEM DROP REPLICA and SYSTEM RESTORE REPLICA queries, they may help. (ALL_REPLICAS_LOST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [97]) @ 0x000000000b256dde in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:3165: DB::StorageReplicatedMergeTree::cloneReplicaIfNeeded(std::shared_ptr) @ 0x000000001d859db9 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:165: DB::ReplicatedMergeTreeRestartingThread::tryStartup() @ 0x000000001e3147df in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:131: DB::ReplicatedMergeTreeRestartingThread::runImpl() @ 0x000000001e313ae9 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:57: DB::ReplicatedMergeTreeRestartingThread::run() @ 0x000000001e312591 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:42: DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0::operator()() const @ 0x000000001e318e58 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e318e35 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e318e15 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e318df5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e318dbd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 17. /build/src/Core/BackgroundSchedulePool.cpp:104: DB::BackgroundSchedulePoolTaskInfo::execute() @ 0x000000001b3d7afd in /usr/bin/clickhouse 18. /build/src/Core/BackgroundSchedulePool.cpp:302: DB::BackgroundSchedulePool::threadFunction() @ 0x000000001b3da8e6 in /usr/bin/clickhouse 19. /build/src/Core/BackgroundSchedulePool.cpp:168: DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0::operator()() const @ 0x000000001b3db7d8 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0&>()()) std::__invoke[abi:v15000], StrongTypedef, char const*)::$_0&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&) @ 0x000000001b3db7b5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001b3db799 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&) @ 0x000000001b3db6fd in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()::operator()() @ 0x000000001b3db625 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0>()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&) @ 0x000000001b3db595 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&) @ 0x000000001b3db575 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001b3db555 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001b3db520 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:08:56.581237 [ 811 ] {} test_3bcmk3h2.test_table_1 (ReplicatedMergeTreeRestartingThread): Table was in readonly mode. Will try to activate it. 2024.10.22 11:08:56.590698 [ 811 ] {} test_3bcmk3h2.test_table_1 (ReplicatedMergeTreeRestartingThread): Failed to restart the table. Will try again: Code: 415. DB::Exception: All replicas are lost. See SYSTEM DROP REPLICA and SYSTEM RESTORE REPLICA queries, they may help. (ALL_REPLICAS_LOST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [97]) @ 0x000000000b256dde in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:3165: DB::StorageReplicatedMergeTree::cloneReplicaIfNeeded(std::shared_ptr) @ 0x000000001d859db9 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:165: DB::ReplicatedMergeTreeRestartingThread::tryStartup() @ 0x000000001e3147df in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:131: DB::ReplicatedMergeTreeRestartingThread::runImpl() @ 0x000000001e313ae9 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:57: DB::ReplicatedMergeTreeRestartingThread::run() @ 0x000000001e312591 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:42: DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0::operator()() const @ 0x000000001e318e58 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e318e35 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e318e15 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e318df5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e318dbd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 17. /build/src/Core/BackgroundSchedulePool.cpp:104: DB::BackgroundSchedulePoolTaskInfo::execute() @ 0x000000001b3d7afd in /usr/bin/clickhouse 18. /build/src/Core/BackgroundSchedulePool.cpp:302: DB::BackgroundSchedulePool::threadFunction() @ 0x000000001b3da8e6 in /usr/bin/clickhouse 19. /build/src/Core/BackgroundSchedulePool.cpp:168: DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0::operator()() const @ 0x000000001b3db7d8 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0&>()()) std::__invoke[abi:v15000], StrongTypedef, char const*)::$_0&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&) @ 0x000000001b3db7b5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001b3db799 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&) @ 0x000000001b3db6fd in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()::operator()() @ 0x000000001b3db625 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0>()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&) @ 0x000000001b3db595 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&) @ 0x000000001b3db575 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001b3db555 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001b3db520 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a5c843 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a64ae4 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:08:57.259819 [ 72440 ] {af323050-88c9-49a7-8682-609afced4f55} test_3bcmk3h2.test_table_2 (77c6435a-522e-4add-aba0-242bb7a84fa5): Removing leftovers from table /clickhouse/tables/01305_replica_create_drop_zookeeper_test_3bcmk3h2/alter_table (this might take several minutes) 2024.10.22 11:08:57.261636 [ 72440 ] {af323050-88c9-49a7-8682-609afced4f55} test_3bcmk3h2.test_table_2 (77c6435a-522e-4add-aba0-242bb7a84fa5): The leftovers from table /clickhouse/tables/01305_replica_create_drop_zookeeper_test_3bcmk3h2/alter_table were removed by another replica 2024.10.22 11:08:57.272848 [ 72440 ] {af323050-88c9-49a7-8682-609afced4f55} test_3bcmk3h2.test_table_2 (77c6435a-522e-4add-aba0-242bb7a84fa5): Removing leftovers from table /clickhouse/tables/01305_replica_create_drop_zookeeper_test_3bcmk3h2/alter_table (this might take several minutes) 2024.10.22 11:08:57.274809 [ 72440 ] {af323050-88c9-49a7-8682-609afced4f55} test_3bcmk3h2.test_table_2 (77c6435a-522e-4add-aba0-242bb7a84fa5): The leftovers from table /clickhouse/tables/01305_replica_create_drop_zookeeper_test_3bcmk3h2/alter_table were removed by another replica 2024.10.22 11:08:57.285371 [ 72440 ] {af323050-88c9-49a7-8682-609afced4f55} test_3bcmk3h2.test_table_2 (77c6435a-522e-4add-aba0-242bb7a84fa5): Removing leftovers from table /clickhouse/tables/01305_replica_create_drop_zookeeper_test_3bcmk3h2/alter_table (this might take several minutes) 2024.10.22 11:08:57.286800 [ 72440 ] {af323050-88c9-49a7-8682-609afced4f55} test_3bcmk3h2.test_table_2 (77c6435a-522e-4add-aba0-242bb7a84fa5): The leftovers from table /clickhouse/tables/01305_replica_create_drop_zookeeper_test_3bcmk3h2/alter_table were removed by another replica 2024.10.22 11:08:57.297203 [ 72440 ] {af323050-88c9-49a7-8682-609afced4f55} test_3bcmk3h2.test_table_2 (77c6435a-522e-4add-aba0-242bb7a84fa5): Removing leftovers from table /clickhouse/tables/01305_replica_create_drop_zookeeper_test_3bcmk3h2/alter_table (this might take several minutes) 2024.10.22 11:08:57.298715 [ 72440 ] {af323050-88c9-49a7-8682-609afced4f55} test_3bcmk3h2.test_table_2 (77c6435a-522e-4add-aba0-242bb7a84fa5): The leftovers from table /clickhouse/tables/01305_replica_create_drop_zookeeper_test_3bcmk3h2/alter_table were removed by another replica 2024.10.22 11:08:57.309722 [ 72440 ] {af323050-88c9-49a7-8682-609afced4f55} test_3bcmk3h2.test_table_2 (77c6435a-522e-4add-aba0-242bb7a84fa5): Removing leftovers from table /clickhouse/tables/01305_replica_create_drop_zookeeper_test_3bcmk3h2/alter_table (this might take several minutes) 2024.10.22 11:08:57.311426 [ 72440 ] {af323050-88c9-49a7-8682-609afced4f55} test_3bcmk3h2.test_table_2 (77c6435a-522e-4add-aba0-242bb7a84fa5): The leftovers from table /clickhouse/tables/01305_replica_create_drop_zookeeper_test_3bcmk3h2/alter_table were removed by another replica 2024.10.22 11:09:11.062610 [ 72440 ] {5d2fe6be-9ff5-4dc6-97c8-9a6f08b92208} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 954.70 MiB (attempt to allocate chunk of 8388608 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45906) (comment: 01301_aggregate_state_exception_memory_leak.sh) (in query: SELECT uniqExactState(number) FROM system.numbers_mt GROUP BY number % 10 ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b258aa in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b244a0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b1f8ed in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c21e5eb in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0dad27 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01fdd5 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 11:09:11.174574 [ 72440 ] {5d2fe6be-9ff5-4dc6-97c8-9a6f08b92208} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 954.70 MiB (attempt to allocate chunk of 8388608 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b258aa in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b244a0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b1f8ed in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c21e5eb in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0dad27 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01fdd5 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 11:09:16.451302 [ 72440 ] {526c7752-f94d-4b6d-aa25-ab36bcee1660} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 955.72 MiB (attempt to allocate chunk of 8388608 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45908) (comment: 01301_aggregate_state_exception_memory_leak.sh) (in query: SELECT uniqExactState(number) FROM system.numbers_mt GROUP BY number % 10 ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b258aa in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b244a0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b1f8ed in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c21e5eb in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0dad27 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01fdd5 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 11:09:16.543489 [ 72440 ] {526c7752-f94d-4b6d-aa25-ab36bcee1660} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 955.72 MiB (attempt to allocate chunk of 8388608 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b258aa in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b244a0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b1f8ed in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c21e5eb in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0dad27 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01fdd5 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 11:09:21.935734 [ 72440 ] {1968bc32-b711-4d23-b29f-ee18c3e73acd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 959.37 MiB (attempt to allocate chunk of 8388608 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38138) (comment: 01301_aggregate_state_exception_memory_leak.sh) (in query: SELECT uniqExactState(number) FROM system.numbers_mt GROUP BY number % 10 ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b258aa in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b244a0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b1f8ed in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c21e5eb in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0dad27 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01fdd5 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 11:09:22.025841 [ 72440 ] {1968bc32-b711-4d23-b29f-ee18c3e73acd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 959.37 MiB (attempt to allocate chunk of 8388608 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b258aa in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b244a0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b1f8ed in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c21e5eb in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0dad27 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01fdd5 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 11:09:26.878285 [ 72440 ] {e571d025-9e40-492b-a4af-4e0baf0bdd22} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 958.88 MiB (attempt to allocate chunk of 8388608 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38142) (comment: 01301_aggregate_state_exception_memory_leak.sh) (in query: SELECT uniqExactState(number) FROM system.numbers_mt GROUP BY number % 10 ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b258aa in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b244a0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b1f8ed in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c21e5eb in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0dad27 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01fdd5 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 11:09:26.970006 [ 72440 ] {e571d025-9e40-492b-a4af-4e0baf0bdd22} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 958.88 MiB (attempt to allocate chunk of 8388608 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b258aa in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b244a0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b1f8ed in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c21e5eb in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0dad27 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01fdd5 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 11:09:32.207251 [ 72440 ] {b63e3bb5-b1d7-4748-b70c-b91969361a6e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 959.24 MiB (attempt to allocate chunk of 8388608 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59860) (comment: 01301_aggregate_state_exception_memory_leak.sh) (in query: SELECT uniqExactState(number) FROM system.numbers_mt GROUP BY number % 10 ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b258aa in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b244a0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b1f8ed in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c21e5eb in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0dad27 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01fdd5 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 11:09:32.302199 [ 72440 ] {b63e3bb5-b1d7-4748-b70c-b91969361a6e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 959.24 MiB (attempt to allocate chunk of 8388608 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b258aa in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b244a0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b1f8ed in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c21e5eb in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0dad27 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01fdd5 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 11:09:37.428969 [ 72440 ] {f9e710f7-0d9e-425e-9763-60984cdb21c5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 954.16 MiB (attempt to allocate chunk of 8388608 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59876) (comment: 01301_aggregate_state_exception_memory_leak.sh) (in query: SELECT uniqExactState(number) FROM system.numbers_mt GROUP BY number % 10 ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b258aa in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b244a0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b1f8ed in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c21e5eb in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0dad27 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01fdd5 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 11:09:37.527054 [ 72440 ] {f9e710f7-0d9e-425e-9763-60984cdb21c5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 954.16 MiB (attempt to allocate chunk of 8388608 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x0000000013881edb in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x00000000138820e1 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:169: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013881026 in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:364: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x000000001461d564 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b258aa in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b244a0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b1f8ed in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c21e5eb in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0dad27 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c01fdd5 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c02520d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 2024.10.22 11:09:39.351903 [ 72440 ] {10a36d52-882e-4143-8ba2-90fd9c436f32} executeQuery: Code: 199. DB::Exception: There is no quota `q2_01297` in user directories. (UNKNOWN_QUOTA) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:32950) (comment: 01297_create_quota.sql) (in query: SHOW CREATE QUOTA q2_01297;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0f9899 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:76: ? @ 0x000000001b0f97d3 in /usr/bin/clickhouse 8. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:331: DB::InterpreterShowCreateAccessEntityQuery::getEntities() const @ 0x000000001d190423 in /usr/bin/clickhouse 9. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:341: DB::InterpreterShowCreateAccessEntityQuery::getCreateQueries() const @ 0x000000001d18f5d8 in /usr/bin/clickhouse 10. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:253: DB::InterpreterShowCreateAccessEntityQuery::executeImpl() @ 0x000000001d18ee1b in /usr/bin/clickhouse 11. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:245: DB::InterpreterShowCreateAccessEntityQuery::execute() @ 0x000000001d18ed4b in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:09:39.352588 [ 72440 ] {10a36d52-882e-4143-8ba2-90fd9c436f32} TCPHandler: Code: 199. DB::Exception: There is no quota `q2_01297` in user directories. (UNKNOWN_QUOTA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0f9899 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:76: ? @ 0x000000001b0f97d3 in /usr/bin/clickhouse 8. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:331: DB::InterpreterShowCreateAccessEntityQuery::getEntities() const @ 0x000000001d190423 in /usr/bin/clickhouse 9. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:341: DB::InterpreterShowCreateAccessEntityQuery::getCreateQueries() const @ 0x000000001d18f5d8 in /usr/bin/clickhouse 10. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:253: DB::InterpreterShowCreateAccessEntityQuery::executeImpl() @ 0x000000001d18ee1b in /usr/bin/clickhouse 11. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:245: DB::InterpreterShowCreateAccessEntityQuery::execute() @ 0x000000001d18ed4b in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:09:42.704288 [ 72440 ] {9b7f3cac-810d-426e-b6fe-34098498c41b} executeQuery: Code: 523. DB::Exception: There is no row policy `p2_01295 ON db.table` in user directories. (UNKNOWN_ROW_POLICY) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:32960) (comment: 01295_create_row_policy.sql) (in query: SHOW CREATE ROW POLICY p2_01295 ON db.table;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0f9899 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.h:252: std::shared_ptr DB::IAccessStorage::read(String const&, bool) const @ 0x000000001d19250b in /usr/bin/clickhouse 8. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:304: DB::InterpreterShowCreateAccessEntityQuery::getEntities() const @ 0x000000001d18ff55 in /usr/bin/clickhouse 9. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:341: DB::InterpreterShowCreateAccessEntityQuery::getCreateQueries() const @ 0x000000001d18f5d8 in /usr/bin/clickhouse 10. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:253: DB::InterpreterShowCreateAccessEntityQuery::executeImpl() @ 0x000000001d18ee1b in /usr/bin/clickhouse 11. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:245: DB::InterpreterShowCreateAccessEntityQuery::execute() @ 0x000000001d18ed4b in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:09:42.705119 [ 72440 ] {9b7f3cac-810d-426e-b6fe-34098498c41b} TCPHandler: Code: 523. DB::Exception: There is no row policy `p2_01295 ON db.table` in user directories. (UNKNOWN_ROW_POLICY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0fafac in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0f9899 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.h:252: std::shared_ptr DB::IAccessStorage::read(String const&, bool) const @ 0x000000001d19250b in /usr/bin/clickhouse 8. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:304: DB::InterpreterShowCreateAccessEntityQuery::getEntities() const @ 0x000000001d18ff55 in /usr/bin/clickhouse 9. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:341: DB::InterpreterShowCreateAccessEntityQuery::getCreateQueries() const @ 0x000000001d18f5d8 in /usr/bin/clickhouse 10. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:253: DB::InterpreterShowCreateAccessEntityQuery::executeImpl() @ 0x000000001d18ee1b in /usr/bin/clickhouse 11. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:245: DB::InterpreterShowCreateAccessEntityQuery::execute() @ 0x000000001d18ed4b in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:09:47.509622 [ 72440 ] {17e53998-5a13-471a-a2f7-86c175e34197} executeQuery: Code: 60. DB::Exception: Table test_jmzrwzan.table_that_do_not_exists does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42634) (comment: 01281_unsucceeded_insert_select_queries_counter.sql) (in query: -- Failed insert before execution INSERT INTO table_that_do_not_exists VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:121: DB::InterpreterInsertQuery::getTable(DB::ASTInsertQuery&) @ 0x000000001ca83452 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:380: DB::InterpreterInsertQuery::execute() @ 0x000000001ca85446 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:09:47.510290 [ 72440 ] {17e53998-5a13-471a-a2f7-86c175e34197} TCPHandler: Code: 60. DB::Exception: Table test_jmzrwzan.table_that_do_not_exists does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:121: DB::InterpreterInsertQuery::getTable(DB::ASTInsertQuery&) @ 0x000000001ca83452 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:380: DB::InterpreterInsertQuery::execute() @ 0x000000001ca85446 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:09:47.699813 [ 72440 ] {be6f9841-4e67-4e21-84bf-644d6b0ab190} executeQuery: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(1 :: 0) -> throwIf(1) UInt8 : 1'. (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42634) (comment: 01281_unsucceeded_insert_select_queries_counter.sql) (in query: -- Failed insert in execution INSERT INTO to_insert SELECT throwIf(1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x0000000012606806 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126055bd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 24. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e6d2ac7 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6d2a35 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&) @ 0x000000001e6d2a15 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6d29f5 in /usr/bin/clickhouse 2024.10.22 11:09:47.701033 [ 72440 ] {be6f9841-4e67-4e21-84bf-644d6b0ab190} TCPHandler: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(1 :: 0) -> throwIf(1) UInt8 : 1'. (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x0000000012606806 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126055bd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6d2e3d in /usr/bin/clickhouse 24. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e6d2cca in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e6d2c75 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6d2c59 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e6d2bbd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e6d2ac7 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6d2a35 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&) @ 0x000000001e6d2a15 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6d29f5 in /usr/bin/clickhouse 2024.10.22 11:09:47.757257 [ 72440 ] {006fbdcf-a1a0-4d16-bc39-69f554e6eb2d} executeQuery: Code: 60. DB::Exception: Table test_jmzrwzan.table_that_do_not_exists does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42634) (comment: 01281_unsucceeded_insert_select_queries_counter.sql) (in query: -- Failed select before execution SELECT * FROM table_that_do_not_exists;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:09:47.757943 [ 72440 ] {006fbdcf-a1a0-4d16-bc39-69f554e6eb2d} TCPHandler: Code: 60. DB::Exception: Table test_jmzrwzan.table_that_do_not_exists does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:09:47.818384 [ 72440 ] {719d86a5-c4df-42df-83d4-546a8747826a} executeQuery: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(1 :: 0) -> throwIf(1) UInt8 : 1'. (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42634) (comment: 01281_unsucceeded_insert_select_queries_counter.sql) (in query: -- Failed select in execution SELECT throwIf(1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x0000000012606806 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126055bd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 2024.10.22 11:09:47.819308 [ 72440 ] {719d86a5-c4df-42df-83d4-546a8747826a} TCPHandler: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(1 :: 0) -> throwIf(1) UInt8 : 1'. (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x0000000012606806 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000126055bd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b19adad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf0cfa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf1d86 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abf2c95 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:617: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf886d1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:734: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf87aed in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001ebce004 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017bf4ae2 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e6b5ed2 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e6d4db1 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d43b6 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6f7c66 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e6f7aff in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e6f7a75 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6f7a59 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e6f79bd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e6f78c7 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e6f7835 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e6f7815 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e6f77f5 in /usr/bin/clickhouse 2024.10.22 11:10:55.704627 [ 72440 ] {d2805dc7-4209-4b23-8f8e-1cf950bb5f33} executeQuery: Code: 36. DB::Exception: It does not make sense to have codec NONE along with other compression codecs: NONE, NONE. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53926) (comment: 01272_suspicious_codecs.sql) (in query: -- test what should not work CREATE TABLE codecs (a UInt8 CODEC(NONE, NONE)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:192: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6903 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:55.705435 [ 72440 ] {d2805dc7-4209-4b23-8f8e-1cf950bb5f33} TCPHandler: Code: 36. DB::Exception: It does not make sense to have codec NONE along with other compression codecs: NONE, NONE. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:192: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6903 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:55.713155 [ 72440 ] {3214097e-e429-46eb-b82e-98677d131ab9} executeQuery: Code: 36. DB::Exception: It does not make sense to have codec NONE along with other compression codecs: NONE, LZ4. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53926) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a UInt8 CODEC(NONE, LZ4)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:192: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6903 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:55.713771 [ 72440 ] {3214097e-e429-46eb-b82e-98677d131ab9} TCPHandler: Code: 36. DB::Exception: It does not make sense to have codec NONE along with other compression codecs: NONE, LZ4. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:192: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6903 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:55.720682 [ 72440 ] {46ac4640-80b4-4ced-8fbd-bb837bcba6d3} executeQuery: Code: 36. DB::Exception: It does not make sense to have codec NONE along with other compression codecs: LZ4, NONE. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53926) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a UInt8 CODEC(LZ4, NONE)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:192: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6903 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:55.721237 [ 72440 ] {46ac4640-80b4-4ced-8fbd-bb837bcba6d3} TCPHandler: Code: 36. DB::Exception: It does not make sense to have codec NONE along with other compression codecs: LZ4, NONE. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:192: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6903 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:55.815925 [ 72440 ] {f0430f85-30e5-4a2f-a04b-20dc5f71658c} executeQuery: Code: 36. DB::Exception: The combination of compression codecs LZ4, LZ4 is meaningless, because it does not make sense to apply any transformations after generic compression algorithm. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53926) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a UInt8 CODEC(LZ4, LZ4)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:237: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6ee9 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:55.816838 [ 72440 ] {f0430f85-30e5-4a2f-a04b-20dc5f71658c} TCPHandler: Code: 36. DB::Exception: The combination of compression codecs LZ4, LZ4 is meaningless, because it does not make sense to apply any transformations after generic compression algorithm. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:237: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6ee9 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:55.824604 [ 72440 ] {70ca60c1-7527-451b-b845-1cb3e5b33d3a} executeQuery: Code: 36. DB::Exception: The combination of compression codecs LZ4, ZSTD(1) is meaningless, because it does not make sense to apply any transformations after generic compression algorithm. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53926) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a UInt8 CODEC(LZ4, ZSTD)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:237: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6ee9 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:55.825200 [ 72440 ] {70ca60c1-7527-451b-b845-1cb3e5b33d3a} TCPHandler: Code: 36. DB::Exception: The combination of compression codecs LZ4, ZSTD(1) is meaningless, because it does not make sense to apply any transformations after generic compression algorithm. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:237: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6ee9 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:55.924661 [ 72440 ] {7c30c11b-3b58-4654-b91f-4bcddd0ed105} executeQuery: Code: 36. DB::Exception: Compression codec Delta(1) does not compress anything. You may want to add generic compression algorithm after other transformations, like: Delta(1), LZ4. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53926) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a UInt8 CODEC(Delta)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&) @ 0x00000000124f632c in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:201: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6a26 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:55.925395 [ 72440 ] {7c30c11b-3b58-4654-b91f-4bcddd0ed105} TCPHandler: Code: 36. DB::Exception: Compression codec Delta(1) does not compress anything. You may want to add generic compression algorithm after other transformations, like: Delta(1), LZ4. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&) @ 0x00000000124f632c in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:201: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6a26 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:55.933410 [ 72440 ] {b7c86638-1703-4fc2-b49b-5acce0aa1f46} executeQuery: Code: 36. DB::Exception: Compression codec Delta(1), Delta(1) does not compress anything. You may want to add generic compression algorithm after other transformations, like: Delta(1), Delta(1), LZ4. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53926) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a UInt8 CODEC(Delta, Delta)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&) @ 0x00000000124f632c in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:201: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6a26 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:55.934260 [ 72440 ] {b7c86638-1703-4fc2-b49b-5acce0aa1f46} TCPHandler: Code: 36. DB::Exception: Compression codec Delta(1), Delta(1) does not compress anything. You may want to add generic compression algorithm after other transformations, like: Delta(1), Delta(1), LZ4. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&) @ 0x00000000124f632c in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:201: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6a26 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:55.941376 [ 72440 ] {28627485-7eed-4515-ad07-4195118298f5} executeQuery: Code: 36. DB::Exception: The combination of compression codecs LZ4, Delta(1) is meaningless, because it does not make sense to apply any transformations after generic compression algorithm. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53926) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a UInt8 CODEC(LZ4, Delta)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:237: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6ee9 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:55.942042 [ 72440 ] {28627485-7eed-4515-ad07-4195118298f5} TCPHandler: Code: 36. DB::Exception: The combination of compression codecs LZ4, Delta(1) is meaningless, because it does not make sense to apply any transformations after generic compression algorithm. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:237: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6ee9 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:56.041734 [ 72440 ] {d9b492a1-e5ca-46c2-9150-338f12924fdc} executeQuery: Code: 36. DB::Exception: The combination of compression codecs Gorilla is meaningless, because it does not make sense to apply a floating-point time series codec to non-floating-point columns (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53926) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a UInt8 CODEC(Gorilla)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:219: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6ca7 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:56.042516 [ 72440 ] {d9b492a1-e5ca-46c2-9150-338f12924fdc} TCPHandler: Code: 36. DB::Exception: The combination of compression codecs Gorilla is meaningless, because it does not make sense to apply a floating-point time series codec to non-floating-point columns (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:219: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6ca7 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:56.050345 [ 72440 ] {46cc9956-d6c8-46f3-8e50-dc95fdfac21e} executeQuery: Code: 36. DB::Exception: The combination of compression codecs Gorilla is meaningless, because it does not make sense to apply a floating-point time series codec to non-floating-point columns (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53926) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a FixedString(2) CODEC(Gorilla)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:219: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6ca7 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:56.050982 [ 72440 ] {46cc9956-d6c8-46f3-8e50-dc95fdfac21e} TCPHandler: Code: 36. DB::Exception: The combination of compression codecs Gorilla is meaningless, because it does not make sense to apply a floating-point time series codec to non-floating-point columns (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:219: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6ca7 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:56.057926 [ 72440 ] {41b45901-7a09-46a0-baf9-683a588da138} executeQuery: Code: 36. DB::Exception: The combination of compression codecs Gorilla is meaningless, because it does not make sense to apply a floating-point time series codec to non-floating-point columns (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53926) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a Decimal(15,5) CODEC(Gorilla)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:219: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6ca7 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:56.058554 [ 72440 ] {41b45901-7a09-46a0-baf9-683a588da138} TCPHandler: Code: 36. DB::Exception: The combination of compression codecs Gorilla is meaningless, because it does not make sense to apply a floating-point time series codec to non-floating-point columns (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:219: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6ca7 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:56.163604 [ 72440 ] {1bf72543-e087-48f8-a73d-cdae104633c6} executeQuery: Code: 36. DB::Exception: The combination of compression codecs Delta(8), Gorilla is meaningless, because floating point time series codecs do delta compression implicitly by themselves. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53926) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a Float64 CODEC(Delta, Gorilla)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:228: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6dbf in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:56.164616 [ 72440 ] {1bf72543-e087-48f8-a73d-cdae104633c6} TCPHandler: Code: 36. DB::Exception: The combination of compression codecs Delta(8), Gorilla is meaningless, because floating point time series codecs do delta compression implicitly by themselves. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:228: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6dbf in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:56.172991 [ 72440 ] {f5109c39-df10-4aa6-9bb1-775c5f3dcc42} executeQuery: Code: 36. DB::Exception: The combination of compression codecs DoubleDelta, FPC(12) is meaningless, because floating point time series codecs do delta compression implicitly by themselves. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:53926) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a Float32 CODEC(DoubleDelta, FPC)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:228: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6dbf in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:56.173585 [ 72440 ] {f5109c39-df10-4aa6-9bb1-775c5f3dcc42} TCPHandler: Code: 36. DB::Exception: The combination of compression codecs DoubleDelta, FPC(12) is meaningless, because floating point time series codecs do delta compression implicitly by themselves. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b910e53 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:228: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8b6dbf in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:635: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7ed008 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:693: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ed7e8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:59.051026 [ 72440 ] {d157d336-4c31-42de-96a1-0353088d6df2} executeQuery: Code: 487. DB::Exception: Dictionary `dict_db_01225.no_such_dict` doesn't exist. (CANNOT_GET_CREATE_DICTIONARY_QUERY) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38748) (comment: 01225_show_create_table_from_dictionary.sql) (in query: SHOW CREATE TABLE dict_db_01225_dictionary.`dict_db_01225.no_such_dict`;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseDictionary.cpp:102: DB::DatabaseDictionary::getCreateTableQueryImpl(String const&, std::shared_ptr, bool) const @ 0x000000001c864f56 in /usr/bin/clickhouse 7. /build/src/Databases/IDatabase.h:275: DB::IDatabase::getCreateTableQuery(String const&, std::shared_ptr) const @ 0x000000001b334817 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterShowCreateQuery.cpp:61: DB::InterpreterShowCreateQuery::executeImpl() @ 0x000000001cbd5f16 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterShowCreateQuery.cpp:29: DB::InterpreterShowCreateQuery::execute() @ 0x000000001cbd5a0b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:10:59.051852 [ 72440 ] {d157d336-4c31-42de-96a1-0353088d6df2} TCPHandler: Code: 487. DB::Exception: Dictionary `dict_db_01225.no_such_dict` doesn't exist. (CANNOT_GET_CREATE_DICTIONARY_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseDictionary.cpp:102: DB::DatabaseDictionary::getCreateTableQueryImpl(String const&, std::shared_ptr, bool) const @ 0x000000001c864f56 in /usr/bin/clickhouse 7. /build/src/Databases/IDatabase.h:275: DB::IDatabase::getCreateTableQuery(String const&, std::shared_ptr) const @ 0x000000001b334817 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterShowCreateQuery.cpp:61: DB::InterpreterShowCreateQuery::executeImpl() @ 0x000000001cbd5f16 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterShowCreateQuery.cpp:29: DB::InterpreterShowCreateQuery::execute() @ 0x000000001cbd5a0b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:11:06.516901 [ 72440 ] {404c371a-c004-432f-8274-b132ee0e99a1} executeQuery: Code: 80. DB::Exception: Ordinary database engine does not support UUID. (INCORRECT_QUERY) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:38792) (comment: 01192_rename_database_zookeeper.sh) (in query: CREATE DATABASE test_01192 UUID '00001192-0000-4000-8000-000000000001' ENGINE=Ordinary), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [47]) @ 0x000000000b5b9e5e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:224: DB::InterpreterCreateQuery::createDatabase(DB::ASTCreateQuery&) @ 0x000000001c7e8b46 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1728: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd43f in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:11:06.518568 [ 72440 ] {404c371a-c004-432f-8274-b132ee0e99a1} TCPHandler: Code: 80. DB::Exception: Ordinary database engine does not support UUID. (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [47]) @ 0x000000000b5b9e5e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:224: DB::InterpreterCreateQuery::createDatabase(DB::ASTCreateQuery&) @ 0x000000001c7e8b46 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1728: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd43f in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:11:14.429196 [ 75722 ] {391523dd-8b4f-4632-80f2-642c86914683} executeQuery: Code: 82. DB::Exception: Database default already exists. (DATABASE_ALREADY_EXISTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56338) (comment: 01192_rename_database_zookeeper.sh) (in query: RENAME DATABASE test_01192 TO default), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/DatabaseCatalog.cpp:528: DB::DatabaseCatalog::assertDatabaseDoesntExistUnlocked(String const&) const @ 0x000000001bee652d in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:521: DB::DatabaseCatalog::assertDatabaseDoesntExist(String const&) const @ 0x000000001bee63b2 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterRenameQuery.cpp:177: DB::InterpreterRenameQuery::executeToDatabase(DB::ASTRenameQuery const&, std::vector> const&) @ 0x000000001ca9b746 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterRenameQuery.cpp:73: DB::InterpreterRenameQuery::execute() @ 0x000000001ca9af1b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:11:14.430759 [ 75722 ] {391523dd-8b4f-4632-80f2-642c86914683} TCPHandler: Code: 82. DB::Exception: Database default already exists. (DATABASE_ALREADY_EXISTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/DatabaseCatalog.cpp:528: DB::DatabaseCatalog::assertDatabaseDoesntExistUnlocked(String const&) const @ 0x000000001bee652d in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:521: DB::DatabaseCatalog::assertDatabaseDoesntExist(String const&) const @ 0x000000001bee63b2 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterRenameQuery.cpp:177: DB::InterpreterRenameQuery::executeToDatabase(DB::ASTRenameQuery const&, std::vector> const&) @ 0x000000001ca9b746 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterRenameQuery.cpp:73: DB::InterpreterRenameQuery::execute() @ 0x000000001ca9af1b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 19. ? @ 0x00007f1a0debbac3 in ? 20. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:11:15.970158 [ 75722 ] {d6cfede1-7551-4362-9608-6affcfd90981} executeQuery: Code: 81. DB::Exception: Database test_01192_notexisting does not exist. (UNKNOWN_DATABASE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:56348) (comment: 01192_rename_database_zookeeper.sh) (in query: RENAME DATABASE test_01192_notexisting TO test_01192_renamed), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/DatabaseCatalog.cpp:650: DB::DatabaseCatalog::getDatabase(String const&) const @ 0x000000001bee82a4 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterRenameQuery.cpp:173: DB::InterpreterRenameQuery::executeToDatabase(DB::ASTRenameQuery const&, std::vector> const&) @ 0x000000001ca9b71b in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterRenameQuery.cpp:73: DB::InterpreterRenameQuery::execute() @ 0x000000001ca9af1b in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:11:15.971959 [ 75722 ] {d6cfede1-7551-4362-9608-6affcfd90981} TCPHandler: Code: 81. DB::Exception: Database test_01192_notexisting does not exist. (UNKNOWN_DATABASE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/DatabaseCatalog.cpp:650: DB::DatabaseCatalog::getDatabase(String const&) const @ 0x000000001bee82a4 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterRenameQuery.cpp:173: DB::InterpreterRenameQuery::executeToDatabase(DB::ASTRenameQuery const&, std::vector> const&) @ 0x000000001ca9b71b in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterRenameQuery.cpp:73: DB::InterpreterRenameQuery::execute() @ 0x000000001ca9af1b in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:11:48.287907 [ 72440 ] {fffe13fd-a724-4873-aaae-18c14590732d} executeQuery: Code: 60. DB::Exception: Table test_01192.rmt does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52000) (comment: 01192_rename_database_zookeeper.sh) (in query: SELECT count(n), sum(n) FROM test_01192_atomic.mv), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Storages/StorageMaterializedView.cpp:409: DB::StorageMaterializedView::getTargetTable() const @ 0x000000001d72e989 in /usr/bin/clickhouse 10. /build/src/Storages/StorageMaterializedView.cpp:420: DB::StorageMaterializedView::getVirtuals() const @ 0x000000001d731784 in /usr/bin/clickhouse 11. /build/src/Storages/StorageSnapshot.cpp:22: DB::StorageSnapshot::init() @ 0x000000001d9fe187 in /usr/bin/clickhouse 12. /build/src/Storages/StorageSnapshot.h:36: DB::StorageSnapshot::StorageSnapshot(DB::IStorage const&, std::shared_ptr) @ 0x000000001a9b5f9e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageSnapshot* std::construct_at[abi:v15000] const&, DB::StorageSnapshot*>(DB::StorageSnapshot*, DB::IStorage const&, std::shared_ptr const&) @ 0x000000001a9b5ee7 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, void, void>(std::allocator&, DB::StorageSnapshot*, DB::IStorage const&, std::shared_ptr const&) @ 0x000000001a9b5c89 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&>(std::allocator, DB::IStorage const&, std::shared_ptr const&) @ 0x000000001a9b598f in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::IStorage const&, std::shared_ptr const&, void>(std::allocator const&, DB::IStorage const&, std::shared_ptr const&) @ 0x000000001a9b5802 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, void>(DB::IStorage const&, std::shared_ptr const&) @ 0x000000001a9b578e in /usr/bin/clickhouse 18. /build/src/Storages/IStorage.h:662: DB::IStorage::getStorageSnapshot(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001a9b4e45 in /usr/bin/clickhouse 19. /build/src/Storages/IStorage.h:668: DB::IStorage::getStorageSnapshotForQuery(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr) const @ 0x000000001a9b4ef8 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:445: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabffa in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 11:11:48.289744 [ 72440 ] {fffe13fd-a724-4873-aaae-18c14590732d} TCPHandler: Code: 60. DB::Exception: Table test_01192.rmt does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Storages/StorageMaterializedView.cpp:409: DB::StorageMaterializedView::getTargetTable() const @ 0x000000001d72e989 in /usr/bin/clickhouse 10. /build/src/Storages/StorageMaterializedView.cpp:420: DB::StorageMaterializedView::getVirtuals() const @ 0x000000001d731784 in /usr/bin/clickhouse 11. /build/src/Storages/StorageSnapshot.cpp:22: DB::StorageSnapshot::init() @ 0x000000001d9fe187 in /usr/bin/clickhouse 12. /build/src/Storages/StorageSnapshot.h:36: DB::StorageSnapshot::StorageSnapshot(DB::IStorage const&, std::shared_ptr) @ 0x000000001a9b5f9e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageSnapshot* std::construct_at[abi:v15000] const&, DB::StorageSnapshot*>(DB::StorageSnapshot*, DB::IStorage const&, std::shared_ptr const&) @ 0x000000001a9b5ee7 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, void, void>(std::allocator&, DB::StorageSnapshot*, DB::IStorage const&, std::shared_ptr const&) @ 0x000000001a9b5c89 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&>(std::allocator, DB::IStorage const&, std::shared_ptr const&) @ 0x000000001a9b598f in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::IStorage const&, std::shared_ptr const&, void>(std::allocator const&, DB::IStorage const&, std::shared_ptr const&) @ 0x000000001a9b5802 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, void>(DB::IStorage const&, std::shared_ptr const&) @ 0x000000001a9b578e in /usr/bin/clickhouse 18. /build/src/Storages/IStorage.h:662: DB::IStorage::getStorageSnapshot(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001a9b4e45 in /usr/bin/clickhouse 19. /build/src/Storages/IStorage.h:668: DB::IStorage::getStorageSnapshotForQuery(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr) const @ 0x000000001a9b4ef8 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:445: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabffa in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 2024.10.22 11:11:57.531979 [ 75722 ] {e22ec3bb-5e6d-42a7-8eed-4d6080e33bde} executeQuery: Code: 48. DB::Exception: Ordinary: RENAME DATABASE is not supported. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49382) (comment: 01192_rename_database_zookeeper.sh) (in query: RENAME DATABASE test_01192 TO test_01192_renamed), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.h:303: DB::IDatabase::renameDatabase(std::shared_ptr, String const&) @ 0x000000001babf577 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterRenameQuery.cpp:178: DB::InterpreterRenameQuery::executeToDatabase(DB::ASTRenameQuery const&, std::vector> const&) @ 0x000000001ca9b7b0 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterRenameQuery.cpp:73: DB::InterpreterRenameQuery::execute() @ 0x000000001ca9af1b in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:11:57.533451 [ 75722 ] {e22ec3bb-5e6d-42a7-8eed-4d6080e33bde} TCPHandler: Code: 48. DB::Exception: Ordinary: RENAME DATABASE is not supported. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.h:303: DB::IDatabase::renameDatabase(std::shared_ptr, String const&) @ 0x000000001babf577 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterRenameQuery.cpp:178: DB::InterpreterRenameQuery::executeToDatabase(DB::ASTRenameQuery const&, std::vector> const&) @ 0x000000001ca9b7b0 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterRenameQuery.cpp:73: DB::InterpreterRenameQuery::execute() @ 0x000000001ca9af1b in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:12:22.818404 [ 72440 ] {c650d360-df75-488e-99a1-fb98a46890fa} executeQuery: Code: 48. DB::Exception: ATTACH ... FROM ... query is not supported for Memory table engine, because such tables do not store any data on disk. Use CREATE instead. (NOT_IMPLEMENTED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35416) (comment: 01188_attach_table_from_path.sql) (in query: attach table test from 'some/path' (n UInt8) engine=Memory;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1468: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fb056 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:12:22.819117 [ 72440 ] {c650d360-df75-488e-99a1-fb98a46890fa} TCPHandler: Code: 48. DB::Exception: ATTACH ... FROM ... query is not supported for Memory table engine, because such tables do not store any data on disk. Use CREATE instead. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1468: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fb056 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:12:22.902713 [ 72440 ] {8d8893d2-1e63-420a-a0ad-e257200b282b} executeQuery: Code: 481. DB::Exception: Data directory /etc/passwd must be inside /var/lib/clickhouse/user_files/ to attach it. (PATH_ACCESS_DENIED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35416) (comment: 01188_attach_table_from_path.sql) (in query: attach table test from '/etc/passwd' (s String) engine=File(TSVRaw);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1152: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f35ce in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:12:22.903438 [ 72440 ] {8d8893d2-1e63-420a-a0ad-e257200b282b} TCPHandler: Code: 481. DB::Exception: Data directory /etc/passwd must be inside /var/lib/clickhouse/user_files/ to attach it. (PATH_ACCESS_DENIED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1152: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f35ce in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:12:22.910595 [ 72440 ] {e8327049-e926-46d6-9a28-2b6cf7035305} executeQuery: Code: 481. DB::Exception: Data directory /etc/passwd must be inside /var/lib/clickhouse/user_files/ to attach it. (PATH_ACCESS_DENIED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35416) (comment: 01188_attach_table_from_path.sql) (in query: attach table test from '../../../../../../../../../etc/passwd' (s String) engine=File(TSVRaw);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1152: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f35ce in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:12:22.911142 [ 72440 ] {e8327049-e926-46d6-9a28-2b6cf7035305} TCPHandler: Code: 481. DB::Exception: Data directory /etc/passwd must be inside /var/lib/clickhouse/user_files/ to attach it. (PATH_ACCESS_DENIED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1152: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f35ce in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:12:35.216145 [ 72440 ] {a3788869-fc46-4d89-8b38-b8866a7d54af} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34276) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:12:35.216810 [ 72440 ] {a3788869-fc46-4d89-8b38-b8866a7d54af} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:13:43.931973 [ 72440 ] {c3a82587-c208-45ce-bb81-6597b0ee8e6c} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack string into column with type UInt64.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47206) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x UInt64')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:264: DB::insertString(DB::IColumn&, std::shared_ptr, char const*, unsigned long, bool) @ 0x000000001e8d7bcd in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:367: DB::MsgPackVisitor::visit_bin(char const*, unsigned long) @ 0x000000001e8d7d00 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:591: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f3328 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 2024.10.22 11:13:43.939292 [ 72440 ] {c3a82587-c208-45ce-bb81-6597b0ee8e6c} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack string into column with type UInt64.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:264: DB::insertString(DB::IColumn&, std::shared_ptr, char const*, unsigned long, bool) @ 0x000000001e8d7bcd in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:367: DB::MsgPackVisitor::visit_bin(char const*, unsigned long) @ 0x000000001e8d7d00 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:591: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f3328 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 2024.10.22 11:13:45.842744 [ 72440 ] {7987e821-e16f-4e8c-b69f-6d86afaa0fa4} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack string into column with type Float32.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47222) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x Float32')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:264: DB::insertString(DB::IColumn&, std::shared_ptr, char const*, unsigned long, bool) @ 0x000000001e8d7bcd in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:367: DB::MsgPackVisitor::visit_bin(char const*, unsigned long) @ 0x000000001e8d7d00 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:591: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f3328 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 2024.10.22 11:13:45.848626 [ 72440 ] {7987e821-e16f-4e8c-b69f-6d86afaa0fa4} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack string into column with type Float32.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:264: DB::insertString(DB::IColumn&, std::shared_ptr, char const*, unsigned long, bool) @ 0x000000001e8d7bcd in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:367: DB::MsgPackVisitor::visit_bin(char const*, unsigned long) @ 0x000000001e8d7d00 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:591: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f3328 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 2024.10.22 11:13:47.676671 [ 72440 ] {dbf71b67-3e65-47c2-81d3-521c6454aa68} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack string into column with type Array(UInt32).: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35968) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x Array(UInt32)')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:264: DB::insertString(DB::IColumn&, std::shared_ptr, char const*, unsigned long, bool) @ 0x000000001e8d7bcd in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:367: DB::MsgPackVisitor::visit_bin(char const*, unsigned long) @ 0x000000001e8d7d00 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:591: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f3328 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 2024.10.22 11:13:47.683276 [ 72440 ] {dbf71b67-3e65-47c2-81d3-521c6454aa68} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack string into column with type Array(UInt32).: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:264: DB::insertString(DB::IColumn&, std::shared_ptr, char const*, unsigned long, bool) @ 0x000000001e8d7bcd in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:367: DB::MsgPackVisitor::visit_bin(char const*, unsigned long) @ 0x000000001e8d7d00 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:591: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f3328 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 2024.10.22 11:13:49.552167 [ 72440 ] {a3cc7420-4ac9-4bf9-a3e0-59c08932ddd0} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack string into column with type Map(UInt64, UInt64).: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35984) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x Map(UInt64, UInt64)')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:264: DB::insertString(DB::IColumn&, std::shared_ptr, char const*, unsigned long, bool) @ 0x000000001e8d7bcd in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:367: DB::MsgPackVisitor::visit_bin(char const*, unsigned long) @ 0x000000001e8d7d00 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:591: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f3328 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 2024.10.22 11:13:49.558998 [ 72440 ] {a3cc7420-4ac9-4bf9-a3e0-59c08932ddd0} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack string into column with type Map(UInt64, UInt64).: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:264: DB::insertString(DB::IColumn&, std::shared_ptr, char const*, unsigned long, bool) @ 0x000000001e8d7bcd in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:367: DB::MsgPackVisitor::visit_bin(char const*, unsigned long) @ 0x000000001e8d7d00 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:591: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f3328 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 2024.10.22 11:13:53.359869 [ 72440 ] {f16cf474-7f1e-4487-b1cc-2bc5fbc950c9} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack integer into column with type Float32.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35994) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x Float32')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:197: DB::insertInteger(DB::IColumn&, std::shared_ptr, unsigned long) @ 0x000000001e8d746c in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:349: DB::MsgPackVisitor::visit_positive_integer(unsigned long) @ 0x000000001e8d6f72 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:264: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1ea8 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 2024.10.22 11:13:53.365190 [ 72440 ] {f16cf474-7f1e-4487-b1cc-2bc5fbc950c9} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack integer into column with type Float32.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:197: DB::insertInteger(DB::IColumn&, std::shared_ptr, unsigned long) @ 0x000000001e8d746c in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:349: DB::MsgPackVisitor::visit_positive_integer(unsigned long) @ 0x000000001e8d6f72 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:264: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1ea8 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 2024.10.22 11:13:55.239984 [ 72440 ] {b5538d35-fb43-4293-b200-716c68cf5070} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack integer into column with type String.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:35998) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x String')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:197: DB::insertInteger(DB::IColumn&, std::shared_ptr, unsigned long) @ 0x000000001e8d746c in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:349: DB::MsgPackVisitor::visit_positive_integer(unsigned long) @ 0x000000001e8d6f72 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:264: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1ea8 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 2024.10.22 11:13:55.247226 [ 72440 ] {b5538d35-fb43-4293-b200-716c68cf5070} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack integer into column with type String.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:197: DB::insertInteger(DB::IColumn&, std::shared_ptr, unsigned long) @ 0x000000001e8d746c in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:349: DB::MsgPackVisitor::visit_positive_integer(unsigned long) @ 0x000000001e8d6f72 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:264: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1ea8 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 2024.10.22 11:13:57.166299 [ 72440 ] {770b3be6-4084-48a4-919e-c90dbfeb40c1} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack integer into column with type Array(UInt64).: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59620) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x Array(UInt64)')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:197: DB::insertInteger(DB::IColumn&, std::shared_ptr, unsigned long) @ 0x000000001e8d746c in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:349: DB::MsgPackVisitor::visit_positive_integer(unsigned long) @ 0x000000001e8d6f72 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:264: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1ea8 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 2024.10.22 11:13:57.173186 [ 72440 ] {770b3be6-4084-48a4-919e-c90dbfeb40c1} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack integer into column with type Array(UInt64).: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:197: DB::insertInteger(DB::IColumn&, std::shared_ptr, unsigned long) @ 0x000000001e8d746c in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:349: DB::MsgPackVisitor::visit_positive_integer(unsigned long) @ 0x000000001e8d6f72 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:264: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1ea8 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 2024.10.22 11:13:59.017639 [ 72440 ] {785a7aac-d3ee-4b6d-af42-47f341eee152} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack integer into column with type Map(UInt64, UInt64).: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59634) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x Map(UInt64, UInt64)')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:197: DB::insertInteger(DB::IColumn&, std::shared_ptr, unsigned long) @ 0x000000001e8d746c in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:349: DB::MsgPackVisitor::visit_positive_integer(unsigned long) @ 0x000000001e8d6f72 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:264: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1ea8 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 2024.10.22 11:13:59.029314 [ 72440 ] {785a7aac-d3ee-4b6d-af42-47f341eee152} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack integer into column with type Map(UInt64, UInt64).: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:197: DB::insertInteger(DB::IColumn&, std::shared_ptr, unsigned long) @ 0x000000001e8d746c in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:349: DB::MsgPackVisitor::visit_positive_integer(unsigned long) @ 0x000000001e8d6f72 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:264: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1ea8 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 2024.10.22 11:14:03.048329 [ 72440 ] {7b00521f-c501-455d-af91-87510310756e} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack array into column with type Float32: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59646) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x Float32')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:414: DB::MsgPackVisitor::start_array(unsigned long) @ 0x000000001e8d89ab in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:113: msgpack::v3::detail::context>::array_sv::operator()(unsigned int) const @ 0x000000001e8f48c8 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::array_sv, msgpack::v3::detail::context>::array_ev>(msgpack::v3::detail::context>::array_sv const&, msgpack::v3::detail::context>::array_ev const&, char const*, unsigned long&) @ 0x000000001e8f3901 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:318: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f211e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 2024.10.22 11:14:03.054214 [ 72440 ] {7b00521f-c501-455d-af91-87510310756e} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack array into column with type Float32: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:414: DB::MsgPackVisitor::start_array(unsigned long) @ 0x000000001e8d89ab in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:113: msgpack::v3::detail::context>::array_sv::operator()(unsigned int) const @ 0x000000001e8f48c8 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::array_sv, msgpack::v3::detail::context>::array_ev>(msgpack::v3::detail::context>::array_sv const&, msgpack::v3::detail::context>::array_ev const&, char const*, unsigned long&) @ 0x000000001e8f3901 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:318: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f211e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 2024.10.22 11:14:04.967620 [ 72440 ] {be5644bc-0119-4de3-b4be-2ca013296de4} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack array into column with type String: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59660) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x String')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:414: DB::MsgPackVisitor::start_array(unsigned long) @ 0x000000001e8d89ab in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:113: msgpack::v3::detail::context>::array_sv::operator()(unsigned int) const @ 0x000000001e8f48c8 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::array_sv, msgpack::v3::detail::context>::array_ev>(msgpack::v3::detail::context>::array_sv const&, msgpack::v3::detail::context>::array_ev const&, char const*, unsigned long&) @ 0x000000001e8f3901 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:318: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f211e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 2024.10.22 11:14:04.978213 [ 72440 ] {be5644bc-0119-4de3-b4be-2ca013296de4} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack array into column with type String: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:414: DB::MsgPackVisitor::start_array(unsigned long) @ 0x000000001e8d89ab in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:113: msgpack::v3::detail::context>::array_sv::operator()(unsigned int) const @ 0x000000001e8f48c8 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::array_sv, msgpack::v3::detail::context>::array_ev>(msgpack::v3::detail::context>::array_sv const&, msgpack::v3::detail::context>::array_ev const&, char const*, unsigned long&) @ 0x000000001e8f3901 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:318: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f211e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 2024.10.22 11:14:06.847518 [ 72440 ] {66649adc-454a-4928-a38f-c0034909191c} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack array into column with type UInt64: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49216) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x UInt64')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:414: DB::MsgPackVisitor::start_array(unsigned long) @ 0x000000001e8d89ab in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:113: msgpack::v3::detail::context>::array_sv::operator()(unsigned int) const @ 0x000000001e8f48c8 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::array_sv, msgpack::v3::detail::context>::array_ev>(msgpack::v3::detail::context>::array_sv const&, msgpack::v3::detail::context>::array_ev const&, char const*, unsigned long&) @ 0x000000001e8f3901 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:318: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f211e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 2024.10.22 11:14:06.857765 [ 72440 ] {66649adc-454a-4928-a38f-c0034909191c} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack array into column with type UInt64: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:414: DB::MsgPackVisitor::start_array(unsigned long) @ 0x000000001e8d89ab in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:113: msgpack::v3::detail::context>::array_sv::operator()(unsigned int) const @ 0x000000001e8f48c8 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::array_sv, msgpack::v3::detail::context>::array_ev>(msgpack::v3::detail::context>::array_sv const&, msgpack::v3::detail::context>::array_ev const&, char const*, unsigned long&) @ 0x000000001e8f3901 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:318: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f211e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 2024.10.22 11:14:08.730328 [ 72440 ] {7be5a2f2-6bbc-4827-aad4-818608093318} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack array into column with type Map(UInt64, UInt64): While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49226) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x Map(UInt64, UInt64)')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:414: DB::MsgPackVisitor::start_array(unsigned long) @ 0x000000001e8d89ab in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:113: msgpack::v3::detail::context>::array_sv::operator()(unsigned int) const @ 0x000000001e8f48c8 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::array_sv, msgpack::v3::detail::context>::array_ev>(msgpack::v3::detail::context>::array_sv const&, msgpack::v3::detail::context>::array_ev const&, char const*, unsigned long&) @ 0x000000001e8f3901 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:318: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f211e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 2024.10.22 11:14:08.737882 [ 72440 ] {7be5a2f2-6bbc-4827-aad4-818608093318} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack array into column with type Map(UInt64, UInt64): While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:414: DB::MsgPackVisitor::start_array(unsigned long) @ 0x000000001e8d89ab in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:113: msgpack::v3::detail::context>::array_sv::operator()(unsigned int) const @ 0x000000001e8f48c8 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::array_sv, msgpack::v3::detail::context>::array_ev>(msgpack::v3::detail::context>::array_sv const&, msgpack::v3::detail::context>::array_ev const&, char const*, unsigned long&) @ 0x000000001e8f3901 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:318: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f211e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 2024.10.22 11:14:12.751192 [ 72440 ] {2625c3ed-8dc7-44fd-ba66-dbcdae242de5} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack map into column with type Float32.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49248) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x Float32')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:439: DB::MsgPackVisitor::start_map(unsigned int) @ 0x000000001e8d8c14 in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:130: msgpack::v3::detail::context>::map_sv::operator()(unsigned int) const @ 0x000000001e8f4e46 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::map_sv, msgpack::v3::detail::context>::map_ev>(msgpack::v3::detail::context>::map_sv const&, msgpack::v3::detail::context>::map_ev const&, char const*, unsigned long&) @ 0x000000001e8f3b21 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:321: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f21be in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 2024.10.22 11:14:12.756953 [ 72440 ] {2625c3ed-8dc7-44fd-ba66-dbcdae242de5} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack map into column with type Float32.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:439: DB::MsgPackVisitor::start_map(unsigned int) @ 0x000000001e8d8c14 in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:130: msgpack::v3::detail::context>::map_sv::operator()(unsigned int) const @ 0x000000001e8f4e46 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::map_sv, msgpack::v3::detail::context>::map_ev>(msgpack::v3::detail::context>::map_sv const&, msgpack::v3::detail::context>::map_ev const&, char const*, unsigned long&) @ 0x000000001e8f3b21 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:321: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f21be in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 2024.10.22 11:14:14.734999 [ 72440 ] {6643c8df-d20c-494e-bda2-1ee0e381add6} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack map into column with type String.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:49260) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x String')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:439: DB::MsgPackVisitor::start_map(unsigned int) @ 0x000000001e8d8c14 in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:130: msgpack::v3::detail::context>::map_sv::operator()(unsigned int) const @ 0x000000001e8f4e46 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::map_sv, msgpack::v3::detail::context>::map_ev>(msgpack::v3::detail::context>::map_sv const&, msgpack::v3::detail::context>::map_ev const&, char const*, unsigned long&) @ 0x000000001e8f3b21 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:321: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f21be in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 2024.10.22 11:14:14.741741 [ 72440 ] {6643c8df-d20c-494e-bda2-1ee0e381add6} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack map into column with type String.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:439: DB::MsgPackVisitor::start_map(unsigned int) @ 0x000000001e8d8c14 in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:130: msgpack::v3::detail::context>::map_sv::operator()(unsigned int) const @ 0x000000001e8f4e46 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::map_sv, msgpack::v3::detail::context>::map_ev>(msgpack::v3::detail::context>::map_sv const&, msgpack::v3::detail::context>::map_ev const&, char const*, unsigned long&) @ 0x000000001e8f3b21 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:321: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f21be in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 2024.10.22 11:14:16.786072 [ 72440 ] {67205507-773e-4d94-814b-e11fbc78361e} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack map into column with type UInt64.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58116) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x UInt64')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:439: DB::MsgPackVisitor::start_map(unsigned int) @ 0x000000001e8d8c14 in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:130: msgpack::v3::detail::context>::map_sv::operator()(unsigned int) const @ 0x000000001e8f4e46 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::map_sv, msgpack::v3::detail::context>::map_ev>(msgpack::v3::detail::context>::map_sv const&, msgpack::v3::detail::context>::map_ev const&, char const*, unsigned long&) @ 0x000000001e8f3b21 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:321: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f21be in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 2024.10.22 11:14:16.812030 [ 72440 ] {67205507-773e-4d94-814b-e11fbc78361e} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack map into column with type UInt64.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:439: DB::MsgPackVisitor::start_map(unsigned int) @ 0x000000001e8d8c14 in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:130: msgpack::v3::detail::context>::map_sv::operator()(unsigned int) const @ 0x000000001e8f4e46 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::map_sv, msgpack::v3::detail::context>::map_ev>(msgpack::v3::detail::context>::map_sv const&, msgpack::v3::detail::context>::map_ev const&, char const*, unsigned long&) @ 0x000000001e8f3b21 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:321: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f21be in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 2024.10.22 11:14:18.725074 [ 72440 ] {83cc97da-8153-4421-83bd-55d96ed98b10} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack map into column with type Array(UInt64).: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58120) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x Array(UInt64)')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:439: DB::MsgPackVisitor::start_map(unsigned int) @ 0x000000001e8d8c14 in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:130: msgpack::v3::detail::context>::map_sv::operator()(unsigned int) const @ 0x000000001e8f4e46 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::map_sv, msgpack::v3::detail::context>::map_ev>(msgpack::v3::detail::context>::map_sv const&, msgpack::v3::detail::context>::map_ev const&, char const*, unsigned long&) @ 0x000000001e8f3b21 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:321: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f21be in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 2024.10.22 11:14:18.731972 [ 72440 ] {83cc97da-8153-4421-83bd-55d96ed98b10} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack map into column with type Array(UInt64).: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:439: DB::MsgPackVisitor::start_map(unsigned int) @ 0x000000001e8d8c14 in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:130: msgpack::v3::detail::context>::map_sv::operator()(unsigned int) const @ 0x000000001e8f4e46 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::map_sv, msgpack::v3::detail::context>::map_ev>(msgpack::v3::detail::context>::map_sv const&, msgpack::v3::detail::context>::map_ev const&, char const*, unsigned long&) @ 0x000000001e8f3b21 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:321: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f21be in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8f1d6d in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e8de6b1 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e8d9c90 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:140: DB::IRowInputFormat::generate() @ 0x000000001e7ac9d9 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e6d56d9 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e6fafde in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6b54ba in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e6b9010 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e6b8d0b in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 2024.10.22 11:14:20.836587 [ 72440 ] {0a82fd09-5bd4-4665-a0ad-ad27458a3b7b} executeQuery: Code: 47. DB::Exception: Missing columns: 'nonexistentsomething' while processing query: 'SELECT nonexistentsomething', required columns: 'nonexistentsomething'. (UNKNOWN_IDENTIFIER) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58124) (comment: 01083_expressions_in_engine_arguments.sql) (in query: -- The following line is needed just to disable checking stderr for emptiness SELECT nonexistentsomething;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:14:20.837365 [ 72440 ] {0a82fd09-5bd4-4665-a0ad-ad27458a3b7b} TCPHandler: Code: 47. DB::Exception: Missing columns: 'nonexistentsomething' while processing query: 'SELECT nonexistentsomething', required columns: 'nonexistentsomething'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b21c369 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cfa0719 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cfa1c10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001cab21cf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caaf282 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 25. ? @ 0x00007f1a0debbac3 in ? 26. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:14:20.895480 [ 72440 ] {affb25f5-1638-44a8-9da6-714b5993d6e3} DNSResolver: Cannot resolve host (localhosx), error 0: Host not found. 2024.10.22 11:14:21.010070 [ 72440 ] {affb25f5-1638-44a8-9da6-714b5993d6e3} Cluster: Code: 198. DB::Exception: Not found address of host: localhosx. (DNS_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Common/DNSResolver.cpp:114: DB::(anonymous namespace)::hostByName(String const&) @ 0x00000000138846a8 in /usr/bin/clickhouse 7. /build/src/Common/DNSResolver.cpp:139: DB::(anonymous namespace)::resolveIPAddressImpl(String const&) @ 0x0000000013883188 in /usr/bin/clickhouse 8. /build/src/Common/DNSResolver.cpp:146: DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0::operator()() const @ 0x0000000013886700 in /usr/bin/clickhouse 9. /build/src/Common/CacheBase.h:152: std::pair>>, bool> DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>::getOrSet>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0>(String const&, DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0&&) @ 0x000000001388646f in /usr/bin/clickhouse 10. /build/src/Common/DNSResolver.cpp:146: DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&) @ 0x00000000138832fc in /usr/bin/clickhouse 11. /build/src/Common/DNSResolver.cpp:239: DB::DNSResolver::resolveAddress(String const&, unsigned short) @ 0x000000001388398f in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:73: DB::Cluster::Address::getResolvedAddress() const @ 0x000000001bda96a6 in /usr/bin/clickhouse 13. /build/src/Interpreters/Cluster.cpp:86: DB::Cluster::Address::isLocal(unsigned short) const @ 0x000000001bda97c4 in /usr/bin/clickhouse 14. /build/src/Interpreters/Cluster.cpp:165: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa69a in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 19. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 25. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 26. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:787: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7eebd5 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:14:21.040747 [ 72440 ] {affb25f5-1638-44a8-9da6-714b5993d6e3} DNSResolver: Cannot resolve host (localhosy), error 0: Host not found. 2024.10.22 11:14:21.041692 [ 72440 ] {affb25f5-1638-44a8-9da6-714b5993d6e3} Cluster: Code: 198. DB::Exception: Not found address of host: localhosy. (DNS_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Common/DNSResolver.cpp:114: DB::(anonymous namespace)::hostByName(String const&) @ 0x00000000138846a8 in /usr/bin/clickhouse 7. /build/src/Common/DNSResolver.cpp:139: DB::(anonymous namespace)::resolveIPAddressImpl(String const&) @ 0x0000000013883188 in /usr/bin/clickhouse 8. /build/src/Common/DNSResolver.cpp:146: DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0::operator()() const @ 0x0000000013886700 in /usr/bin/clickhouse 9. /build/src/Common/CacheBase.h:152: std::pair>>, bool> DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>::getOrSet>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0>(String const&, DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0&&) @ 0x000000001388646f in /usr/bin/clickhouse 10. /build/src/Common/DNSResolver.cpp:146: DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&) @ 0x00000000138832fc in /usr/bin/clickhouse 11. /build/src/Common/DNSResolver.cpp:239: DB::DNSResolver::resolveAddress(String const&, unsigned short) @ 0x000000001388398f in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:73: DB::Cluster::Address::getResolvedAddress() const @ 0x000000001bda96a6 in /usr/bin/clickhouse 13. /build/src/Interpreters/Cluster.cpp:86: DB::Cluster::Address::isLocal(unsigned short) const @ 0x000000001bda97c4 in /usr/bin/clickhouse 14. /build/src/Interpreters/Cluster.cpp:165: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa69a in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 19. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 25. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 26. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:787: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7eebd5 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterCreateQuery.cpp:1200: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f4904 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:14:21.322008 [ 72440 ] {affb25f5-1638-44a8-9da6-714b5993d6e3} DNSResolver: Cannot resolve host (localhosx), error 0: Host not found. 2024.10.22 11:14:21.447051 [ 72440 ] {affb25f5-1638-44a8-9da6-714b5993d6e3} Cluster: Code: 198. DB::Exception: Not found address of host: localhosx. (DNS_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Common/DNSResolver.cpp:114: DB::(anonymous namespace)::hostByName(String const&) @ 0x00000000138846a8 in /usr/bin/clickhouse 7. /build/src/Common/DNSResolver.cpp:139: DB::(anonymous namespace)::resolveIPAddressImpl(String const&) @ 0x0000000013883188 in /usr/bin/clickhouse 8. /build/src/Common/DNSResolver.cpp:146: DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0::operator()() const @ 0x0000000013886700 in /usr/bin/clickhouse 9. /build/src/Common/CacheBase.h:152: std::pair>>, bool> DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>::getOrSet>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0>(String const&, DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0&&) @ 0x000000001388646f in /usr/bin/clickhouse 10. /build/src/Common/DNSResolver.cpp:146: DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&) @ 0x00000000138832fc in /usr/bin/clickhouse 11. /build/src/Common/DNSResolver.cpp:239: DB::DNSResolver::resolveAddress(String const&, unsigned short) @ 0x000000001388398f in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:73: DB::Cluster::Address::getResolvedAddress() const @ 0x000000001bda96a6 in /usr/bin/clickhouse 13. /build/src/Interpreters/Cluster.cpp:86: DB::Cluster::Address::isLocal(unsigned short) const @ 0x000000001bda97c4 in /usr/bin/clickhouse 14. /build/src/Interpreters/Cluster.cpp:165: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa69a in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 19. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 25. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 26. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:1437: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fa64c in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:14:21.478124 [ 72440 ] {affb25f5-1638-44a8-9da6-714b5993d6e3} DNSResolver: Cannot resolve host (localhosy), error 0: Host not found. 2024.10.22 11:14:21.478849 [ 72440 ] {affb25f5-1638-44a8-9da6-714b5993d6e3} Cluster: Code: 198. DB::Exception: Not found address of host: localhosy. (DNS_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Common/DNSResolver.cpp:114: DB::(anonymous namespace)::hostByName(String const&) @ 0x00000000138846a8 in /usr/bin/clickhouse 7. /build/src/Common/DNSResolver.cpp:139: DB::(anonymous namespace)::resolveIPAddressImpl(String const&) @ 0x0000000013883188 in /usr/bin/clickhouse 8. /build/src/Common/DNSResolver.cpp:146: DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0::operator()() const @ 0x0000000013886700 in /usr/bin/clickhouse 9. /build/src/Common/CacheBase.h:152: std::pair>>, bool> DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>::getOrSet>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0>(String const&, DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0&&) @ 0x000000001388646f in /usr/bin/clickhouse 10. /build/src/Common/DNSResolver.cpp:146: DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&) @ 0x00000000138832fc in /usr/bin/clickhouse 11. /build/src/Common/DNSResolver.cpp:239: DB::DNSResolver::resolveAddress(String const&, unsigned short) @ 0x000000001388398f in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:73: DB::Cluster::Address::getResolvedAddress() const @ 0x000000001bda96a6 in /usr/bin/clickhouse 13. /build/src/Interpreters/Cluster.cpp:86: DB::Cluster::Address::isLocal(unsigned short) const @ 0x000000001bda97c4 in /usr/bin/clickhouse 14. /build/src/Interpreters/Cluster.cpp:165: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bdaa69a in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9e61 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9dd9 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb9d36 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdb2e40 in /usr/bin/clickhouse 19. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bdaedfd in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957954 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a9578d1 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a957857 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a95776a in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a952e96 in /usr/bin/clickhouse 25. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94f80e in /usr/bin/clickhouse 26. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac19063 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:1437: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fa64c in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:14:22.258442 [ 72440 ] {08d9fc59-e66f-4f3f-a78c-6088eb1a7edd} StorageBuffer (test_obf9fn1k.buffer): Destination table test_obf9fn1k.file doesn't exist. Block of data is discarded. 2024.10.22 11:14:24.665090 [ 72440 ] {d2d32225-01ae-478c-b8e5-94e235c63962} executeQuery: Code: 80. DB::Exception: Cannot MATERIALIZE TTL as there is no TTL set for table test_qz5y4y7z.ttl (94860f00-a975-489a-9e6e-9483d9caaba6). (INCORRECT_QUERY) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58130) (comment: 01070_materialize_ttl.sql) (in query: alter table ttl materialize ttl;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterAlterQuery.cpp:141: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7d96f6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:14:24.665774 [ 72440 ] {d2d32225-01ae-478c-b8e5-94e235c63962} TCPHandler: Code: 80. DB::Exception: Cannot MATERIALIZE TTL as there is no TTL set for table test_qz5y4y7z.ttl (94860f00-a975-489a-9e6e-9483d9caaba6). (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterAlterQuery.cpp:141: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7d96f6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7d7ce8 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:14:35.344078 [ 72440 ] {ee62bd5b-8329-4dc6-930e-6cf5e0ca5d7d} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:45902) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:14:35.344908 [ 72440 ] {ee62bd5b-8329-4dc6-930e-6cf5e0ca5d7d} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d6a51cb in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5f0441 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001cabfc6f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001cab7c3e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cab6d9d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbd0d94 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbd18e0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 22. ? @ 0x00007f1a0debbac3 in ? 23. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:14:57.760801 [ 1013 ] {} ExternalDictionariesLoader: Could not check if external dictionary '63326cdf-b93a-40ce-9ad4-bfc6a38db001' was modified: Code: 60. DB::Exception: Table dictdb_01041_01040.dict_invalidate does not exist. Maybe you meant invalidate?. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:29: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb578d3 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Dictionaries/ClickHouseDictionarySource.cpp:194: DB::ClickHouseDictionarySource::doInvalidateQuery(String const&) const @ 0x0000000017c2734b in /usr/bin/clickhouse 20. /build/src/Dictionaries/ClickHouseDictionarySource.cpp:0: DB::ClickHouseDictionarySource::isModified() const @ 0x0000000017c2677f in /usr/bin/clickhouse 21. /build/src/Dictionaries/IDictionary.h:314: DB::IDictionary::isModified() const @ 0x0000000017d07091 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExternalLoader.cpp:679: DB::ExternalLoader::LoadingDispatcher::reloadOutdated() @ 0x000000001c562981 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExternalLoader.cpp:1271: DB::ExternalLoader::PeriodicUpdater::doPeriodicUpdates() @ 0x000000001c5623e3 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:359: decltype(*std::declval().*std::declval()()) std::__invoke[abi:v15000](void (DB::ExternalLoader::PeriodicUpdater::*&)(), DB::ExternalLoader::PeriodicUpdater*&) @ 0x000000001c566d09 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&, 0ul>(void (DB::ExternalLoader::PeriodicUpdater::*&)(), std::tuple&, std::__tuple_indices<0ul>) @ 0x000000001c566c8d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(void (DB::ExternalLoader::PeriodicUpdater::*&)(), std::tuple&) @ 0x000000001c566bdd in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(void (DB::ExternalLoader::PeriodicUpdater::*&&)(), DB::ExternalLoader::PeriodicUpdater*&&)::'lambda'()::operator()() @ 0x000000001c566af5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(void (DB::ExternalLoader::PeriodicUpdater::*&&)(), DB::ExternalLoader::PeriodicUpdater*&&)::'lambda'()&>(void (DB::ExternalLoader::PeriodicUpdater::*&&)(), DB::ExternalLoader::PeriodicUpdater*&&) @ 0x000000001c566a55 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(void (DB::ExternalLoader::PeriodicUpdater::*&&)(), DB::ExternalLoader::PeriodicUpdater*&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(void (DB::ExternalLoader::PeriodicUpdater::*&&)(), DB::ExternalLoader::PeriodicUpdater*&&)::'lambda'()&) @ 0x000000001c566a35 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(void (DB::ExternalLoader::PeriodicUpdater::*&&)(), DB::ExternalLoader::PeriodicUpdater*&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001c566a15 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(void (DB::ExternalLoader::PeriodicUpdater::*&&)(), DB::ExternalLoader::PeriodicUpdater*&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001c5669e0 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:14:57.909483 [ 63978 ] {} ExternalDictionariesLoader: Could not update external dictionary '63326cdf-b93a-40ce-9ad4-bfc6a38db001', leaving the previous version, next update is scheduled at 2024-10-22 11:15:02: Code: 60. DB::Exception: Table dictdb_01041_01040.dict_invalidate does not exist. Maybe you meant invalidate?. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:29: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb578d3 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Dictionaries/ClickHouseDictionarySource.cpp:171: DB::ClickHouseDictionarySource::createStreamForQuery(String const&) @ 0x0000000017c262d1 in /usr/bin/clickhouse 20. /build/src/Dictionaries/ClickHouseDictionarySource.cpp:113: DB::ClickHouseDictionarySource::loadAll() @ 0x0000000017c261aa in /usr/bin/clickhouse 21. /build/src/Dictionaries/FlatDictionary.cpp:434: DB::FlatDictionary::loadData() @ 0x0000000017d46403 in /usr/bin/clickhouse 22. /build/src/Dictionaries/FlatDictionary.cpp:45: DB::FlatDictionary::FlatDictionary(DB::StorageID const&, DB::DictionaryStructure const&, std::shared_ptr, DB::FlatDictionary::Configuration, std::shared_ptr) @ 0x0000000017d4613e in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::FlatDictionary* std::construct_at[abi:v15000], DB::FlatDictionary::Configuration const&, std::shared_ptr const&, DB::FlatDictionary*>(DB::FlatDictionary*, DB::StorageID&&, DB::DictionaryStructure const&, std::shared_ptr&&, DB::FlatDictionary::Configuration const&, std::shared_ptr const&) @ 0x0000000017d905b4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000], DB::FlatDictionary::Configuration const&, std::shared_ptr const&, void, void>(std::allocator&, DB::FlatDictionary*, DB::StorageID&&, DB::DictionaryStructure const&, std::shared_ptr&&, DB::FlatDictionary::Configuration const&, std::shared_ptr const&) @ 0x0000000017d902e1 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000], DB::FlatDictionary::Configuration const&, std::shared_ptr const&>(std::allocator, DB::StorageID&&, DB::DictionaryStructure const&, std::shared_ptr&&, DB::FlatDictionary::Configuration const&, std::shared_ptr const&) @ 0x0000000017d8ffad in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID, DB::DictionaryStructure const&, std::shared_ptr, DB::FlatDictionary::Configuration const&, std::shared_ptr const&, void>(std::allocator const&, DB::StorageID&&, DB::DictionaryStructure const&, std::shared_ptr&&, DB::FlatDictionary::Configuration const&, std::shared_ptr const&) @ 0x0000000017d8fe00 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000], DB::FlatDictionary::Configuration const&, std::shared_ptr const&, void>(DB::StorageID&&, DB::DictionaryStructure const&, std::shared_ptr&&, DB::FlatDictionary::Configuration const&, std::shared_ptr const&) @ 0x0000000017d8fd06 in /usr/bin/clickhouse 28. /build/src/Dictionaries/FlatDictionary.h:61: DB::FlatDictionary::clone() const @ 0x0000000017d6fa67 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExternalLoader.cpp:1522: DB::ExternalLoader::createObject(String const&, DB::ExternalLoader::ObjectConfig const&, std::shared_ptr const&) const @ 0x000000001c539f68 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExternalLoader.cpp:1288: auto DB::ExternalLoader::ExternalLoader(String const&, Poco::Logger*)::$_0::operator() const&>(String const&, DB::ExternalLoader::ObjectConfig const&, std::shared_ptr const&) const @ 0x000000001c53ccf0 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval const&>())) std::__invoke[abi:v15000] const&>(DB::ExternalLoader::ExternalLoader(String const&, Poco::Logger*)::$_0&, String const&, DB::ExternalLoader::ObjectConfig const&, std::shared_ptr const&) @ 0x000000001c53cc8d in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:15:50.773662 [ 77533 ] {9adc1927-0b5f-4cfe-a9fc-398c27fca402} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59542) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:50.775283 [ 77533 ] {9adc1927-0b5f-4cfe-a9fc-398c27fca402} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:50.776550 [ 77336 ] {21bf41d8-e324-4b07-8369-981b9071bc0f} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. Maybe you meant dict2?. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59488) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:29: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb578d3 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:50.793787 [ 77336 ] {21bf41d8-e324-4b07-8369-981b9071bc0f} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. Maybe you meant dict2?. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b242d28 in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:29: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb578d3 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:50.796572 [ 77553 ] {3640e4ff-cc5c-49e3-8018-c489c3f3ca21} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59558) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:50.798005 [ 77553 ] {3640e4ff-cc5c-49e3-8018-c489c3f3ca21} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:50.862730 [ 77581 ] {8911a3c6-94d9-4f0d-802f-dc1252b763f2} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59560) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:50.864269 [ 77581 ] {8911a3c6-94d9-4f0d-802f-dc1252b763f2} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:51.190108 [ 77344 ] {b2dc01b7-bbb4-4b91-bc7b-335df988dc8a} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59568) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:51.191617 [ 77344 ] {b2dc01b7-bbb4-4b91-bc7b-335df988dc8a} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:51.358424 [ 77380 ] {8159fad9-7679-4af4-a883-20ba2d6f0cd6} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59592) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:51.359740 [ 77380 ] {8159fad9-7679-4af4-a883-20ba2d6f0cd6} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:51.525648 [ 72440 ] {f17b302e-c0da-4854-8d84-6e80024f07b6} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59602) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:51.526934 [ 72440 ] {f17b302e-c0da-4854-8d84-6e80024f07b6} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:51.536222 [ 77336 ] {c5192c3d-74f6-438f-9a06-e245bc4908e7} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59618) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:51.537722 [ 77336 ] {c5192c3d-74f6-438f-9a06-e245bc4908e7} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:51.592064 [ 77394 ] {7edeeb42-3ec8-43e8-935d-187de9cf846c} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59646) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:51.593407 [ 77394 ] {7edeeb42-3ec8-43e8-935d-187de9cf846c} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:51.819157 [ 77344 ] {b55a4be8-b490-481b-8f45-13a3338504aa} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59658) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:51.820562 [ 77344 ] {b55a4be8-b490-481b-8f45-13a3338504aa} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:52.038396 [ 77336 ] {eae05b32-2b2f-4c7e-8aa4-75b4328a5bbc} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59670) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:52.039671 [ 77336 ] {eae05b32-2b2f-4c7e-8aa4-75b4328a5bbc} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:52.660698 [ 77380 ] {3e29e08a-f5dd-4b36-b9f6-87a672a088a9} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59686) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:52.662299 [ 77380 ] {3e29e08a-f5dd-4b36-b9f6-87a672a088a9} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:52.747382 [ 77533 ] {da05da7c-20a4-4678-8596-e52964faa89b} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59700) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:52.748932 [ 77533 ] {da05da7c-20a4-4678-8596-e52964faa89b} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:53.081891 [ 77395 ] {b21a4c50-1ff7-43be-8e3b-6da13ed03a25} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59710) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:53.083951 [ 77395 ] {b21a4c50-1ff7-43be-8e3b-6da13ed03a25} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:53.092320 [ 77336 ] {604041e1-c77c-418d-b496-101e4ef2cb97} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59716) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:53.093996 [ 77336 ] {604041e1-c77c-418d-b496-101e4ef2cb97} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:53.221804 [ 77533 ] {1cae9101-dd2f-4603-8533-73aa6e200695} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59744) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:53.223873 [ 77533 ] {1cae9101-dd2f-4603-8533-73aa6e200695} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:53.799301 [ 77380 ] {02b9d2e0-5a1e-4705-b2b8-ca4228cdd330} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59770) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:53.800676 [ 77380 ] {02b9d2e0-5a1e-4705-b2b8-ca4228cdd330} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:53.910657 [ 77395 ] {307a25f5-7e27-4cc2-935b-8223b0e4d1a0} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59778) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:53.912097 [ 77395 ] {307a25f5-7e27-4cc2-935b-8223b0e4d1a0} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:54.120693 [ 77533 ] {91851dfa-1188-4189-867d-820dea9700fa} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59790) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:54.121982 [ 77533 ] {91851dfa-1188-4189-867d-820dea9700fa} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:54.203719 [ 77581 ] {d65b7627-4f5b-4283-bb71-325550f8d0ac} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59812) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:54.205199 [ 77581 ] {d65b7627-4f5b-4283-bb71-325550f8d0ac} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:54.560015 [ 77380 ] {f350d29b-0886-4292-b89f-f533802d345f} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59830) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:54.562018 [ 77380 ] {f350d29b-0886-4292-b89f-f533802d345f} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:54.805658 [ 77533 ] {b50cb0eb-310c-41d4-8963-3fe54ced8400} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59856) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:54.807049 [ 77533 ] {b50cb0eb-310c-41d4-8963-3fe54ced8400} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:54.872368 [ 77395 ] {e22344d5-5864-4bd7-a8a9-4cda4ef2560a} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59846) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:54.874498 [ 77395 ] {e22344d5-5864-4bd7-a8a9-4cda4ef2560a} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:55.070305 [ 77553 ] {45be38f1-0079-4e5c-b4c5-bee0592c085f} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59868) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:55.071906 [ 77553 ] {45be38f1-0079-4e5c-b4c5-bee0592c085f} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:55.324096 [ 77533 ] {598e348a-003e-4021-8b6a-3ff34449993b} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59904) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:55.326187 [ 77533 ] {598e348a-003e-4021-8b6a-3ff34449993b} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:55.397574 [ 72440 ] {1d319a6d-84bd-4317-b60d-e1588f47e912} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59890) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:55.398934 [ 72440 ] {1d319a6d-84bd-4317-b60d-e1588f47e912} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:55.913375 [ 77533 ] {eb9edf43-869e-422b-b3eb-57366c9c89d5} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59950) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:55.914992 [ 77533 ] {eb9edf43-869e-422b-b3eb-57366c9c89d5} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:55.993590 [ 77380 ] {8ffed51b-5bd5-4e8c-9728-e6f1a833d3b8} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59930) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:55.995064 [ 77380 ] {8ffed51b-5bd5-4e8c-9728-e6f1a833d3b8} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:56.134156 [ 77553 ] {70b89e9d-f2b8-43b3-86de-932aebe93772} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59954) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:56.135426 [ 77553 ] {70b89e9d-f2b8-43b3-86de-932aebe93772} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:56.217599 [ 77581 ] {4b107bc5-e040-4f53-bf9d-f33650925972} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:59960) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:56.218963 [ 77581 ] {4b107bc5-e040-4f53-bf9d-f33650925972} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:56.493815 [ 77394 ] {025e56cd-2ce1-4867-86c0-acaf630a84d0} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60000) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:56.495790 [ 77394 ] {025e56cd-2ce1-4867-86c0-acaf630a84d0} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:56.833817 [ 72440 ] {a9f232e7-a490-43d9-9ace-34130b723cba} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60010) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:56.835181 [ 72440 ] {a9f232e7-a490-43d9-9ace-34130b723cba} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:56.852357 [ 77336 ] {d0b6c0a4-4d69-4e56-9682-89b95876e34c} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:60018) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:56.853818 [ 77336 ] {d0b6c0a4-4d69-4e56-9682-89b95876e34c} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:57.019676 [ 77581 ] {7ccb7429-d638-4048-bc0a-2902fbe9afa5} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39528) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:57.021681 [ 77581 ] {7ccb7429-d638-4048-bc0a-2902fbe9afa5} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:57.427503 [ 77367 ] {1296959a-19a8-4553-a2cd-ce94f324881c} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39542) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:57.428806 [ 77367 ] {1296959a-19a8-4553-a2cd-ce94f324881c} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:57.472894 [ 77394 ] {72c1f00d-e72e-4bbf-ac31-a5580d050783} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39554) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:57.474744 [ 77394 ] {72c1f00d-e72e-4bbf-ac31-a5580d050783} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:57.568679 [ 77395 ] {e90ccc2e-2054-4649-ad52-9cc06a4ca022} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39578) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:57.578011 [ 77395 ] {e90ccc2e-2054-4649-ad52-9cc06a4ca022} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:57.591210 [ 72440 ] {b87e899b-926d-45d1-a9b6-7f1edf8248ca} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39586) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:57.592713 [ 72440 ] {b87e899b-926d-45d1-a9b6-7f1edf8248ca} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:58.447953 [ 72440 ] {3b4bafbc-8156-4303-953b-ccdd6dee7866} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39612) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:58.449343 [ 72440 ] {3b4bafbc-8156-4303-953b-ccdd6dee7866} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:58.454870 [ 77367 ] {05882ce9-2aaa-4db3-b63e-0d6812876694} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39628) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:58.456138 [ 77367 ] {05882ce9-2aaa-4db3-b63e-0d6812876694} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:58.828242 [ 77380 ] {d2d63d24-42d0-4fec-8133-9377fcba922a} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39674) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:58.829511 [ 77380 ] {d2d63d24-42d0-4fec-8133-9377fcba922a} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea2d8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8b97c1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8b8e54 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8b86ce in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 21. ? @ 0x00007f1a0debbac3 in ? 22. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:58.874833 [ 77336 ] {c39179c3-2af5-48dd-bc89-c1867dcf1b3b} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:39672) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:58.876228 [ 77336 ] {c39179c3-2af5-48dd-bc89-c1867dcf1b3b} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b19d78c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb576b2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bee4fd3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001beea0e3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc247f6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caabab4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001caaafc6 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbd2681 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbd0149 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbcf5c5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca5e854 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca5c648 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b459d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 26. ? @ 0x00007f1a0debbac3 in ? 27. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:15:58.900249 [ 77394 ] {} ServerErrorHandler: Code: 210. DB::NetException: Connection reset by peer, while reading from socket ([::1]:39660). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000013cf152c in /usr/bin/clickhouse 6. /build/src/IO/ReadBufferFromPocoSocket.cpp:86: DB::ReadBufferFromPocoSocket::nextImpl() @ 0x0000000013cf07a0 in /usr/bin/clickhouse 7. /build/src/IO/ReadBuffer.h:71: DB::ReadBuffer::next() @ 0x000000000b21bd7c in /usr/bin/clickhouse 8. /build/src/IO/ReadBuffer.h:105: DB::TCPHandler::runImpl() @ 0x000000001e6467c1 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 10. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 12. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 15. ? @ 0x00007f1a0debbac3 in ? 16. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:16:11.744144 [ 77581 ] {9ec2d067-46d0-4773-8a1e-3362ce88493c} executeQuery: Code: 489. DB::Exception: Unknown key attribute 'non_existing_column'. (INCORRECT_DICTIONARY_DEFINITION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:44940) (comment: 01018_ddl_dictionaries_bad_queries.sh) (in query: CREATE DICTIONARY dict1 ( key1 UInt64, key2 UInt64, value String ) PRIMARY KEY non_existing_column LAYOUT(HASHED()) SOURCE(CLICKHOUSE(HOST 'localhost' PORT tcpPort() USER 'default' TABLE 'table_for_dict1' DB 'test_6qvc1xae')) LIFETIME(MIN 1 MAX 10) ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:570: DB::(anonymous namespace)::checkPrimaryKey(std::unordered_map, std::equal_to, std::allocator>> const&, std::vector> const&) @ 0x000000001abe6d6b in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:616: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abe5b10 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d651cb0 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65199d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65193d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d6518fd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d6518c5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:16:11.746226 [ 77581 ] {9ec2d067-46d0-4773-8a1e-3362ce88493c} TCPHandler: Code: 489. DB::Exception: Unknown key attribute 'non_existing_column'. (INCORRECT_DICTIONARY_DEFINITION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:570: DB::(anonymous namespace)::checkPrimaryKey(std::unordered_map, std::equal_to, std::allocator>> const&, std::vector> const&) @ 0x000000001abe6d6b in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:616: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abe5b10 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d651cb0 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65199d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65193d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d6518fd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d6518c5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:16:13.541238 [ 77581 ] {f07cf3b3-0acf-4ee6-8d44-772287ee833b} executeQuery: Code: 489. DB::Exception: Unknown key attribute 'non_existing_column'. (INCORRECT_DICTIONARY_DEFINITION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:44954) (comment: 01018_ddl_dictionaries_bad_queries.sh) (in query: CREATE DICTIONARY dict1 ( key1 UInt64, key2 UInt64, value String ) PRIMARY KEY non_existing_column, key1 LAYOUT(COMPLEX_KEY_HASHED()) SOURCE(CLICKHOUSE(HOST 'localhost' PORT tcpPort() USER 'default' TABLE 'table_for_dict1' DB 'test_6qvc1xae')) LIFETIME(MIN 1 MAX 10) ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:570: DB::(anonymous namespace)::checkPrimaryKey(std::unordered_map, std::equal_to, std::allocator>> const&, std::vector> const&) @ 0x000000001abe6d6b in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:616: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abe5b10 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d651cb0 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65199d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65193d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d6518fd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d6518c5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:16:13.543073 [ 77581 ] {f07cf3b3-0acf-4ee6-8d44-772287ee833b} TCPHandler: Code: 489. DB::Exception: Unknown key attribute 'non_existing_column'. (INCORRECT_DICTIONARY_DEFINITION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b911313 in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:570: DB::(anonymous namespace)::checkPrimaryKey(std::unordered_map, std::equal_to, std::allocator>> const&, std::vector> const&) @ 0x000000001abe6d6b in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:616: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abe5b10 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d651cb0 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65199d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65193d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d6518fd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d6518c5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:16:15.520064 [ 77581 ] {6d5c6359-06b1-4940-a57d-ae604c63b4e5} executeQuery: Code: 489. DB::Exception: Cannot create dictionary with empty layout. (INCORRECT_DICTIONARY_DEFINITION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:44958) (comment: 01018_ddl_dictionaries_bad_queries.sh) (in query: CREATE DICTIONARY dict1 ( key1 UInt64, key2 UInt64, value String ) PRIMARY KEY key2, key1 SOURCE(CLICKHOUSE(HOST 'localhost' PORT tcpPort() USER 'default' TABLE 'table_for_dict1' DB 'test_6qvc1xae')) LIFETIME(MIN 1 MAX 10) ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [43]) @ 0x000000000b1fea7e in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:552: DB::(anonymous namespace)::checkAST(DB::ASTCreateQuery const&) @ 0x000000001abe6570 in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:579: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abe5039 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d651cb0 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65199d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65193d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d6518fd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d6518c5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:16:15.521925 [ 77581 ] {6d5c6359-06b1-4940-a57d-ae604c63b4e5} TCPHandler: Code: 489. DB::Exception: Cannot create dictionary with empty layout. (INCORRECT_DICTIONARY_DEFINITION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [43]) @ 0x000000000b1fea7e in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:552: DB::(anonymous namespace)::checkAST(DB::ASTCreateQuery const&) @ 0x000000001abe6570 in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:579: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abe5039 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d651cb0 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65199d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65193d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d6518fd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d6518c5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:16:17.466809 [ 77581 ] {0cde9184-1c5a-4b20-ac03-cb3a720a7ed2} executeQuery: Code: 489. DB::Exception: Cannot create dictionary without primary key. (INCORRECT_DICTIONARY_DEFINITION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:57994) (comment: 01018_ddl_dictionaries_bad_queries.sh) (in query: CREATE DICTIONARY dict1 ( key1 UInt64, key2 UInt64, value String ) LAYOUT(COMPLEX_KEY_HASHED()) SOURCE(CLICKHOUSE(HOST 'localhost' PORT tcpPort() USER 'default' TABLE 'table_for_dict1' DB 'test_6qvc1xae')) LIFETIME(MIN 1 MAX 10) ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [45]) @ 0x000000000b25659e in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:560: DB::(anonymous namespace)::checkAST(DB::ASTCreateQuery const&) @ 0x000000001abe66ef in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:579: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abe5039 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d651cb0 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65199d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65193d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d6518fd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d6518c5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:16:17.468541 [ 77581 ] {0cde9184-1c5a-4b20-ac03-cb3a720a7ed2} TCPHandler: Code: 489. DB::Exception: Cannot create dictionary without primary key. (INCORRECT_DICTIONARY_DEFINITION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [45]) @ 0x000000000b25659e in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:560: DB::(anonymous namespace)::checkAST(DB::ASTCreateQuery const&) @ 0x000000001abe66ef in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:579: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abe5039 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d651cb0 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65199d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65193d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d6518fd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d6518c5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:16:19.412129 [ 77581 ] {c9b66a90-e6c2-4efd-a26b-fea1a11c707b} executeQuery: Code: 489. DB::Exception: Cannot create dictionary with empty lifetime. (INCORRECT_DICTIONARY_DEFINITION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58006) (comment: 01018_ddl_dictionaries_bad_queries.sh) (in query: CREATE DICTIONARY dict1 ( key1 UInt64, key2 UInt64, value String ) PRIMARY KEY key2, key1 LAYOUT(COMPLEX_KEY_HASHED()) SOURCE(CLICKHOUSE(HOST 'localhost' PORT tcpPort() USER 'default' TABLE 'table_for_dict1' DB 'test_6qvc1xae')) ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [45]) @ 0x000000000b25659e in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:557: DB::(anonymous namespace)::checkAST(DB::ASTCreateQuery const&) @ 0x000000001abe6672 in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:579: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abe5039 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d651cb0 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65199d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65193d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d6518fd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d6518c5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:16:19.414018 [ 77581 ] {c9b66a90-e6c2-4efd-a26b-fea1a11c707b} TCPHandler: Code: 489. DB::Exception: Cannot create dictionary with empty lifetime. (INCORRECT_DICTIONARY_DEFINITION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [45]) @ 0x000000000b25659e in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:557: DB::(anonymous namespace)::checkAST(DB::ASTCreateQuery const&) @ 0x000000001abe6672 in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:579: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abe5039 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d651cb0 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65199d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65193d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d6518fd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d6518c5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:16:21.370607 [ 77581 ] {6474d8f1-1693-4561-b2bd-d57119bb737c} executeQuery: Code: 489. DB::Exception: Cannot create dictionary with empty source. (INCORRECT_DICTIONARY_DEFINITION) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58018) (comment: 01018_ddl_dictionaries_bad_queries.sh) (in query: CREATE DICTIONARY dict1 ( key1 UInt64, key2 UInt64, value String ) PRIMARY KEY non_existing_column, key1 LAYOUT(COMPLEX_KEY_HASHED()) LIFETIME(MIN 1 MAX 10) ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [43]) @ 0x000000000b1fea7e in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:563: DB::(anonymous namespace)::checkAST(DB::ASTCreateQuery const&) @ 0x000000001abe6767 in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:579: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abe5039 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d651cb0 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65199d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65193d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d6518fd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d6518c5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:16:21.372317 [ 77581 ] {6474d8f1-1693-4561-b2bd-d57119bb737c} TCPHandler: Code: 489. DB::Exception: Cannot create dictionary with empty source. (INCORRECT_DICTIONARY_DEFINITION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [43]) @ 0x000000000b1fea7e in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:563: DB::(anonymous namespace)::checkAST(DB::ASTCreateQuery const&) @ 0x000000001abe6767 in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:579: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abe5039 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d651cb0 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65199d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d65193d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d6518fd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d6518c5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d6a013e in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d69ea1d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d69d126 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1446: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7fab88 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 28. ? @ 0x00007f1a0debbac3 in ? 29. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:16:32.180835 [ 77581 ] {32ce4cff-0d8b-4f8c-979a-cbe7d7afeaac} executeQuery: Code: 57. DB::Exception: Table test_lazy_01014_concurrent_test_qe9a7kxb.slog already exists. (TABLE_ALREADY_EXISTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42386) (comment: 01014_lazy_database_concurrent_recreate_reattach_and_show_tables.sh) (in query: ATTACH TABLE test_lazy_01014_concurrent_test_qe9a7kxb.slog; ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x0000000018447be8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1349: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7f8915 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:16:32.182680 [ 77581 ] {32ce4cff-0d8b-4f8c-979a-cbe7d7afeaac} TCPHandler: Code: 57. DB::Exception: Table test_lazy_01014_concurrent_test_qe9a7kxb.slog already exists. (TABLE_ALREADY_EXISTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x0000000018447be8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1349: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7f8915 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:17:01.494350 [ 72440 ] {847c351d-6d49-4bc6-872a-56683caf03e3} executeQuery: Code: 57. DB::Exception: Table test_lazy_01014_concurrent_test_qe9a7kxb.log already exists. (TABLE_ALREADY_EXISTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:44656) (comment: 01014_lazy_database_concurrent_recreate_reattach_and_show_tables.sh) (in query: ATTACH TABLE test_lazy_01014_concurrent_test_qe9a7kxb.log;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x0000000018447be8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1349: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7f8915 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:17:01.495777 [ 72440 ] {847c351d-6d49-4bc6-872a-56683caf03e3} TCPHandler: Code: 57. DB::Exception: Table test_lazy_01014_concurrent_test_qe9a7kxb.log already exists. (TABLE_ALREADY_EXISTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x0000000018447be8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1349: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7f8915 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:17:04.717686 [ 72440 ] {f39971cc-3675-475e-a910-ddf7152a645d} executeQuery: Code: 57. DB::Exception: Table test_lazy_01014_concurrent_test_qe9a7kxb.tlog already exists. (TABLE_ALREADY_EXISTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:44674) (comment: 01014_lazy_database_concurrent_recreate_reattach_and_show_tables.sh) (in query: ATTACH TABLE test_lazy_01014_concurrent_test_qe9a7kxb.tlog;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x0000000018447be8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1349: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7f8915 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:17:04.719276 [ 72440 ] {f39971cc-3675-475e-a910-ddf7152a645d} TCPHandler: Code: 57. DB::Exception: Table test_lazy_01014_concurrent_test_qe9a7kxb.tlog already exists. (TABLE_ALREADY_EXISTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x0000000018447be8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1349: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7f8915 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:17:06.407874 [ 72440 ] {69c974bd-4a93-4121-b273-50f85d853113} executeQuery: Code: 57. DB::Exception: Table test_lazy_01014_concurrent_test_qe9a7kxb.tlog2 already exists. (TABLE_ALREADY_EXISTS) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:44678) (comment: 01014_lazy_database_concurrent_recreate_reattach_and_show_tables.sh) (in query: ATTACH TABLE test_lazy_01014_concurrent_test_qe9a7kxb.tlog2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x0000000018447be8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1349: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7f8915 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:17:06.409420 [ 72440 ] {69c974bd-4a93-4121-b273-50f85d853113} TCPHandler: Code: 57. DB::Exception: Table test_lazy_01014_concurrent_test_qe9a7kxb.tlog2 already exists. (TABLE_ALREADY_EXISTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x0000000018447be8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1349: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7f8915 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1275: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7f5ba6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7fd496 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:17:15.442309 [ 72440 ] {90aff3c4-91fb-439f-a335-9db580e1be50} InterpreterSystemQuery: SYNC REPLICA test_rorpytiu.table_1013_2 (beee4da1-f956-44f7-ad58-c6b905c8bff1): Timed out! 2024.10.22 11:17:15.538210 [ 72440 ] {90aff3c4-91fb-439f-a335-9db580e1be50} executeQuery: Code: 159. DB::Exception: SYNC REPLICA test_rorpytiu.table_1013_2 (beee4da1-f956-44f7-ad58-c6b905c8bff1): command timed out. See the 'receive_timeout' setting. (TIMEOUT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:52130) (comment: 01013_sync_replica_timeout_zookeeper.sh) (in query: SYSTEM SYNC REPLICA table_1013_2 ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSystemQuery.cpp:1008: DB::InterpreterSystemQuery::syncReplica(DB::ASTSystemQuery&) @ 0x000000001cbea2c9 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSystemQuery.cpp:583: DB::InterpreterSystemQuery::execute() @ 0x000000001cbe0d45 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:17:15.539703 [ 72440 ] {90aff3c4-91fb-439f-a335-9db580e1be50} TCPHandler: Code: 159. DB::Exception: SYNC REPLICA test_rorpytiu.table_1013_2 (beee4da1-f956-44f7-ad58-c6b905c8bff1): command timed out. See the 'receive_timeout' setting. (TIMEOUT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b198653 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSystemQuery.cpp:1008: DB::InterpreterSystemQuery::syncReplica(DB::ASTSystemQuery&) @ 0x000000001cbea2c9 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSystemQuery.cpp:583: DB::InterpreterSystemQuery::execute() @ 0x000000001cbe0d45 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0b4f37 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1224: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d0b0244 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e64796d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e659f85 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 17. ? @ 0x00007f1a0debbac3 in ? 18. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:17:34.876797 [ 72440 ] {ce02b679-d5f9-4289-b81a-33a173e70390} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 984.51 MiB (attempt to allocate chunk of 0 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:47954) (comment: 00877_memory_limit_for_new_delete.sql) (in query: SELECT sum(ignore(*)) FROM ( SELECT number, argMax(number, (number, toFixedString(toString(number), 1024))) FROM numbers(1000000) GROUP BY number ) -- { serverError 241 } ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 11:17:38.643832 [ 72440 ] {ce02b679-d5f9-4289-b81a-33a173e70390} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 984.51 MiB (attempt to allocate chunk of 0 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x000000001390103d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff510 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138ff862 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x0000000013882099 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c013d17 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c0253f3 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb8e1b3 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb8bad9 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 2024.10.22 11:18:46.745234 [ 62326 ] {cd5ef0bd-eafc-44f9-965f-cbfeb6c3a822} executeQuery: Code: 24. DB::Exception: Cannot write to ostream at offset 1188: While executing TabSeparatedRowOutputFormat. (CANNOT_WRITE_TO_OSTREAM) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:42898) (in query: SELECT message_format_string, count(), any(message) AS any_message FROM system.text_log WHERE (now() - toIntervalMinute(240)) < event_time AND (message NOT LIKE (replaceRegexpAll(message_format_string, '{[:.0-9dfx]*}', '%') AS s)) AND (message NOT LIKE concat('%Exception: ', s, '%')) GROUP BY message_format_string ORDER BY count() DESC LIMIT 20 FORMAT TSVWithNamesAndTypes ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9214f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b6580f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e671dff in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IOutputFormat.cpp:111: DB::IOutputFormat::flush() @ 0x000000001e7055dc in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IOutputFormat.cpp:0: DB::IOutputFormat::work() @ 0x000000001e705354 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse 2024.10.22 11:18:46.758463 [ 62326 ] {cd5ef0bd-eafc-44f9-965f-cbfeb6c3a822} DynamicQueryHandler: Code: 24. DB::Exception: Cannot write to ostream at offset 1188: While executing TabSeparatedRowOutputFormat. (CANNOT_WRITE_TO_OSTREAM), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9214f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b6580f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e671dff in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IOutputFormat.cpp:111: DB::IOutputFormat::flush() @ 0x000000001e7055dc in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IOutputFormat.cpp:0: DB::IOutputFormat::work() @ 0x000000001e705354 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:18:46.841753 [ 62326 ] {cd5ef0bd-eafc-44f9-965f-cbfeb6c3a822} DynamicQueryHandler: Cannot send exception to client: Code: 24. DB::Exception: Cannot write to ostream at offset 1377. (CANNOT_WRITE_TO_OSTREAM), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9214f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b6580f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e671dff in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:950: DB::HTTPHandler::trySendExceptionToClient(String const&, int, DB::HTTPServerRequest&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&) @ 0x000000001e5c680e in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1088: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8d95 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:18:47.058892 [ 62326 ] {} ServerErrorHandler: Poco::Exception. Code: 1000, e.code() = 32, I/O error: Broken pipe, Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/base/poco/Foundation/src/Exception.cpp:145: Poco::RuntimeException::RuntimeException(String const&, int) @ 0x000000002495e5e7 in /usr/bin/clickhouse 4. /build/base/poco/Foundation/src/Exception.cpp:164: Poco::IOException::IOException(String const&, int) @ 0x0000000024962727 in /usr/bin/clickhouse 5. /build/base/poco/Net/src/SocketImpl.cpp:1008: Poco::Net::SocketImpl::error(int, String const&) @ 0x000000002477928d in /usr/bin/clickhouse 6. /build/base/poco/Net/src/SocketImpl.cpp:927: Poco::Net::SocketImpl::error(int) @ 0x0000000024779924 in /usr/bin/clickhouse 7. /build/base/poco/Net/src/SocketImpl.cpp:0: Poco::Net::SocketImpl::sendBytes(void const*, int, int) @ 0x000000002477a512 in /usr/bin/clickhouse 8. /build/base/poco/Net/src/StreamSocketImpl.cpp:63: Poco::Net::StreamSocketImpl::sendBytes(void const*, int, int) @ 0x00000000247821be in /usr/bin/clickhouse 9. /build/base/poco/Net/src/StreamSocket.cpp:114: Poco::Net::StreamSocket::sendBytes(void const*, int, int) @ 0x000000002477e012 in /usr/bin/clickhouse 10. /build/base/poco/Net/src/HTTPSession.cpp:144: Poco::Net::HTTPSession::write(char const*, long) @ 0x0000000024758a8e in /usr/bin/clickhouse 11. /build/base/poco/Net/src/HTTPChunkedStream.cpp:146: Poco::Net::HTTPChunkedStreamBuf::writeToDevice(char const*, long) @ 0x0000000024742e34 in /usr/bin/clickhouse 12. /build/base/poco/Foundation/include/Poco/BufferedStreamBuf.h:130: Poco::BasicBufferedStreamBuf, Poco::BufferAllocator>::flushBuffer() @ 0x00000000245fab0d in /usr/bin/clickhouse 13. /build/base/poco/Foundation/include/Poco/BufferedStreamBuf.h:111: Poco::BasicBufferedStreamBuf, Poco::BufferAllocator>::sync() @ 0x00000000245fa719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/HTTPChunkedStream.cpp:54: Poco::Net::HTTPChunkedStreamBuf::close() @ 0x00000000247425f3 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/HTTPChunkedStream.cpp:166: Poco::Net::HTTPChunkedIOS::~HTTPChunkedIOS() @ 0x0000000024742fda in /usr/bin/clickhouse 16. /build/base/poco/Net/src/HTTPChunkedStream.cpp:208: Poco::Net::HTTPChunkedOutputStream::~HTTPChunkedOutputStream() @ 0x00000000247436c1 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/HTTPChunkedStream.cpp:207: Poco::Net::HTTPChunkedOutputStream::~HTTPChunkedOutputStream() @ 0x0000000024743700 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:64: void std::__destroy_at[abi:v15000](Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e66ec6d in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:89: void std::destroy_at[abi:v15000](Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e66ec15 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:321: void std::allocator_traits>::destroy[abi:v15000](std::allocator&, Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e66ebf9 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:309: std::__shared_ptr_emplace>::__on_zero_shared() @ 0x000000001e66ea6e in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:175: std::__shared_count::__release_shared[abi:v15000]() @ 0x000000000b196dd4 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:215: std::__shared_weak_count::__release_shared[abi:v15000]() @ 0x000000000b196d79 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:703: std::shared_ptr>>::~shared_ptr[abi:v15000]() @ 0x000000001e5d17cc in /usr/bin/clickhouse 25. /build/src/Server/HTTP/HTTPServerResponse.h:16: DB::HTTPServerResponse::~HTTPServerResponse() @ 0x000000001e668f5b in /usr/bin/clickhouse 26. /build/src/Server/HTTP/HTTPServerConnection.cpp:88: DB::HTTPServerConnection::run() @ 0x000000001e668a98 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:19:17.845263 [ 72440 ] {6a375845-5492-474a-8925-3b51026454fe} executeQuery: Code: 24. DB::Exception: Cannot write to ostream at offset 1188: While executing TabSeparatedRowOutputFormat. (CANNOT_WRITE_TO_OSTREAM) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:41594) (in query: SELECT message_format_string, count(), any(message) AS any_message FROM system.text_log WHERE (now() - toIntervalMinute(240)) < event_time AND (message NOT LIKE (replaceRegexpAll(message_format_string, '{[:.0-9dfx]*}', '%') AS s)) AND (message NOT LIKE concat('%Exception: ', s, '%')) GROUP BY message_format_string ORDER BY count() DESC LIMIT 20 FORMAT TSVWithNamesAndTypes ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9214f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b6580f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e671dff in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IOutputFormat.cpp:111: DB::IOutputFormat::flush() @ 0x000000001e7055dc in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IOutputFormat.cpp:0: DB::IOutputFormat::work() @ 0x000000001e705354 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse 2024.10.22 11:19:17.858901 [ 72440 ] {6a375845-5492-474a-8925-3b51026454fe} DynamicQueryHandler: Code: 24. DB::Exception: Cannot write to ostream at offset 1188: While executing TabSeparatedRowOutputFormat. (CANNOT_WRITE_TO_OSTREAM), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9214f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b6580f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e671dff in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IOutputFormat.cpp:111: DB::IOutputFormat::flush() @ 0x000000001e7055dc in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IOutputFormat.cpp:0: DB::IOutputFormat::work() @ 0x000000001e705354 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:19:17.859631 [ 72440 ] {6a375845-5492-474a-8925-3b51026454fe} DynamicQueryHandler: Cannot send exception to client: Code: 24. DB::Exception: Cannot write to ostream at offset 1377. (CANNOT_WRITE_TO_OSTREAM), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9214f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b6580f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e671dff in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:950: DB::HTTPHandler::trySendExceptionToClient(String const&, int, DB::HTTPServerRequest&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&) @ 0x000000001e5c680e in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1088: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8d95 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:19:17.861259 [ 72440 ] {} ServerErrorHandler: Poco::Exception. Code: 1000, e.code() = 32, I/O error: Broken pipe, Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/base/poco/Foundation/src/Exception.cpp:145: Poco::RuntimeException::RuntimeException(String const&, int) @ 0x000000002495e5e7 in /usr/bin/clickhouse 4. /build/base/poco/Foundation/src/Exception.cpp:164: Poco::IOException::IOException(String const&, int) @ 0x0000000024962727 in /usr/bin/clickhouse 5. /build/base/poco/Net/src/SocketImpl.cpp:1008: Poco::Net::SocketImpl::error(int, String const&) @ 0x000000002477928d in /usr/bin/clickhouse 6. /build/base/poco/Net/src/SocketImpl.cpp:927: Poco::Net::SocketImpl::error(int) @ 0x0000000024779924 in /usr/bin/clickhouse 7. /build/base/poco/Net/src/SocketImpl.cpp:0: Poco::Net::SocketImpl::sendBytes(void const*, int, int) @ 0x000000002477a512 in /usr/bin/clickhouse 8. /build/base/poco/Net/src/StreamSocketImpl.cpp:63: Poco::Net::StreamSocketImpl::sendBytes(void const*, int, int) @ 0x00000000247821be in /usr/bin/clickhouse 9. /build/base/poco/Net/src/StreamSocket.cpp:114: Poco::Net::StreamSocket::sendBytes(void const*, int, int) @ 0x000000002477e012 in /usr/bin/clickhouse 10. /build/base/poco/Net/src/HTTPSession.cpp:144: Poco::Net::HTTPSession::write(char const*, long) @ 0x0000000024758a8e in /usr/bin/clickhouse 11. /build/base/poco/Net/src/HTTPChunkedStream.cpp:146: Poco::Net::HTTPChunkedStreamBuf::writeToDevice(char const*, long) @ 0x0000000024742e34 in /usr/bin/clickhouse 12. /build/base/poco/Foundation/include/Poco/BufferedStreamBuf.h:130: Poco::BasicBufferedStreamBuf, Poco::BufferAllocator>::flushBuffer() @ 0x00000000245fab0d in /usr/bin/clickhouse 13. /build/base/poco/Foundation/include/Poco/BufferedStreamBuf.h:111: Poco::BasicBufferedStreamBuf, Poco::BufferAllocator>::sync() @ 0x00000000245fa719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/HTTPChunkedStream.cpp:54: Poco::Net::HTTPChunkedStreamBuf::close() @ 0x00000000247425f3 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/HTTPChunkedStream.cpp:166: Poco::Net::HTTPChunkedIOS::~HTTPChunkedIOS() @ 0x0000000024742fda in /usr/bin/clickhouse 16. /build/base/poco/Net/src/HTTPChunkedStream.cpp:208: Poco::Net::HTTPChunkedOutputStream::~HTTPChunkedOutputStream() @ 0x00000000247436c1 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/HTTPChunkedStream.cpp:207: Poco::Net::HTTPChunkedOutputStream::~HTTPChunkedOutputStream() @ 0x0000000024743700 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:64: void std::__destroy_at[abi:v15000](Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e66ec6d in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:89: void std::destroy_at[abi:v15000](Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e66ec15 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:321: void std::allocator_traits>::destroy[abi:v15000](std::allocator&, Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e66ebf9 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:309: std::__shared_ptr_emplace>::__on_zero_shared() @ 0x000000001e66ea6e in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:175: std::__shared_count::__release_shared[abi:v15000]() @ 0x000000000b196dd4 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:215: std::__shared_weak_count::__release_shared[abi:v15000]() @ 0x000000000b196d79 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:703: std::shared_ptr>>::~shared_ptr[abi:v15000]() @ 0x000000001e5d17cc in /usr/bin/clickhouse 25. /build/src/Server/HTTP/HTTPServerResponse.h:16: DB::HTTPServerResponse::~HTTPServerResponse() @ 0x000000001e668f5b in /usr/bin/clickhouse 26. /build/src/Server/HTTP/HTTPServerConnection.cpp:88: DB::HTTPServerConnection::run() @ 0x000000001e668a98 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:19:49.199041 [ 77367 ] {c3702f5f-0b80-4711-b7ad-9d5e47337310} executeQuery: Code: 24. DB::Exception: Cannot write to ostream at offset 1188: While executing TabSeparatedRowOutputFormat. (CANNOT_WRITE_TO_OSTREAM) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:37566) (in query: SELECT message_format_string, count(), any(message) AS any_message FROM system.text_log WHERE (now() - toIntervalMinute(240)) < event_time AND (message NOT LIKE (replaceRegexpAll(message_format_string, '{[:.0-9dfx]*}', '%') AS s)) AND (message NOT LIKE concat('%Exception: ', s, '%')) GROUP BY message_format_string ORDER BY count() DESC LIMIT 20 FORMAT TSVWithNamesAndTypes ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9214f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b6580f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e671dff in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IOutputFormat.cpp:111: DB::IOutputFormat::flush() @ 0x000000001e7055dc in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IOutputFormat.cpp:0: DB::IOutputFormat::work() @ 0x000000001e705354 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse 2024.10.22 11:19:49.212225 [ 77367 ] {c3702f5f-0b80-4711-b7ad-9d5e47337310} DynamicQueryHandler: Code: 24. DB::Exception: Cannot write to ostream at offset 1188: While executing TabSeparatedRowOutputFormat. (CANNOT_WRITE_TO_OSTREAM), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9214f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b6580f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e671dff in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IOutputFormat.cpp:111: DB::IOutputFormat::flush() @ 0x000000001e7055dc in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IOutputFormat.cpp:0: DB::IOutputFormat::work() @ 0x000000001e705354 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:19:49.212937 [ 77367 ] {c3702f5f-0b80-4711-b7ad-9d5e47337310} DynamicQueryHandler: Cannot send exception to client: Code: 24. DB::Exception: Cannot write to ostream at offset 1377. (CANNOT_WRITE_TO_OSTREAM), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9214f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b6580f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e671dff in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:950: DB::HTTPHandler::trySendExceptionToClient(String const&, int, DB::HTTPServerRequest&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&) @ 0x000000001e5c680e in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1088: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8d95 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:19:49.214758 [ 77367 ] {} ServerErrorHandler: Poco::Exception. Code: 1000, e.code() = 32, I/O error: Broken pipe, Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/base/poco/Foundation/src/Exception.cpp:145: Poco::RuntimeException::RuntimeException(String const&, int) @ 0x000000002495e5e7 in /usr/bin/clickhouse 4. /build/base/poco/Foundation/src/Exception.cpp:164: Poco::IOException::IOException(String const&, int) @ 0x0000000024962727 in /usr/bin/clickhouse 5. /build/base/poco/Net/src/SocketImpl.cpp:1008: Poco::Net::SocketImpl::error(int, String const&) @ 0x000000002477928d in /usr/bin/clickhouse 6. /build/base/poco/Net/src/SocketImpl.cpp:927: Poco::Net::SocketImpl::error(int) @ 0x0000000024779924 in /usr/bin/clickhouse 7. /build/base/poco/Net/src/SocketImpl.cpp:0: Poco::Net::SocketImpl::sendBytes(void const*, int, int) @ 0x000000002477a512 in /usr/bin/clickhouse 8. /build/base/poco/Net/src/StreamSocketImpl.cpp:63: Poco::Net::StreamSocketImpl::sendBytes(void const*, int, int) @ 0x00000000247821be in /usr/bin/clickhouse 9. /build/base/poco/Net/src/StreamSocket.cpp:114: Poco::Net::StreamSocket::sendBytes(void const*, int, int) @ 0x000000002477e012 in /usr/bin/clickhouse 10. /build/base/poco/Net/src/HTTPSession.cpp:144: Poco::Net::HTTPSession::write(char const*, long) @ 0x0000000024758a8e in /usr/bin/clickhouse 11. /build/base/poco/Net/src/HTTPChunkedStream.cpp:146: Poco::Net::HTTPChunkedStreamBuf::writeToDevice(char const*, long) @ 0x0000000024742e34 in /usr/bin/clickhouse 12. /build/base/poco/Foundation/include/Poco/BufferedStreamBuf.h:130: Poco::BasicBufferedStreamBuf, Poco::BufferAllocator>::flushBuffer() @ 0x00000000245fab0d in /usr/bin/clickhouse 13. /build/base/poco/Foundation/include/Poco/BufferedStreamBuf.h:111: Poco::BasicBufferedStreamBuf, Poco::BufferAllocator>::sync() @ 0x00000000245fa719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/HTTPChunkedStream.cpp:54: Poco::Net::HTTPChunkedStreamBuf::close() @ 0x00000000247425f3 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/HTTPChunkedStream.cpp:166: Poco::Net::HTTPChunkedIOS::~HTTPChunkedIOS() @ 0x0000000024742fda in /usr/bin/clickhouse 16. /build/base/poco/Net/src/HTTPChunkedStream.cpp:208: Poco::Net::HTTPChunkedOutputStream::~HTTPChunkedOutputStream() @ 0x00000000247436c1 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/HTTPChunkedStream.cpp:207: Poco::Net::HTTPChunkedOutputStream::~HTTPChunkedOutputStream() @ 0x0000000024743700 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:64: void std::__destroy_at[abi:v15000](Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e66ec6d in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:89: void std::destroy_at[abi:v15000](Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e66ec15 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:321: void std::allocator_traits>::destroy[abi:v15000](std::allocator&, Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e66ebf9 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:309: std::__shared_ptr_emplace>::__on_zero_shared() @ 0x000000001e66ea6e in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:175: std::__shared_count::__release_shared[abi:v15000]() @ 0x000000000b196dd4 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:215: std::__shared_weak_count::__release_shared[abi:v15000]() @ 0x000000000b196d79 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:703: std::shared_ptr>>::~shared_ptr[abi:v15000]() @ 0x000000001e5d17cc in /usr/bin/clickhouse 25. /build/src/Server/HTTP/HTTPServerResponse.h:16: DB::HTTPServerResponse::~HTTPServerResponse() @ 0x000000001e668f5b in /usr/bin/clickhouse 26. /build/src/Server/HTTP/HTTPServerConnection.cpp:88: DB::HTTPServerConnection::run() @ 0x000000001e668a98 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:20:23.053021 [ 72440 ] {9435075b-42f8-42cc-a21c-9708560d1d3d} executeQuery: Code: 24. DB::Exception: Cannot write to ostream at offset 1188: While executing TabSeparatedRowOutputFormat. (CANNOT_WRITE_TO_OSTREAM) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:58154) (in query: SELECT message_format_string, count(), any(message) AS any_message FROM system.text_log WHERE (now() - toIntervalMinute(240)) < event_time AND (message NOT LIKE (replaceRegexpAll(message_format_string, '{[:.0-9dfx]*}', '%') AS s)) AND (message NOT LIKE concat('%Exception: ', s, '%')) GROUP BY message_format_string ORDER BY count() DESC LIMIT 20 FORMAT TSVWithNamesAndTypes ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9214f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b6580f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e671dff in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IOutputFormat.cpp:111: DB::IOutputFormat::flush() @ 0x000000001e7055dc in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IOutputFormat.cpp:0: DB::IOutputFormat::work() @ 0x000000001e705354 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse 2024.10.22 11:20:23.072032 [ 72440 ] {9435075b-42f8-42cc-a21c-9708560d1d3d} DynamicQueryHandler: Code: 24. DB::Exception: Cannot write to ostream at offset 1188: While executing TabSeparatedRowOutputFormat. (CANNOT_WRITE_TO_OSTREAM), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9214f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b6580f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e671dff in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IOutputFormat.cpp:111: DB::IOutputFormat::flush() @ 0x000000001e7055dc in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IOutputFormat.cpp:0: DB::IOutputFormat::work() @ 0x000000001e705354 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e6f0e63 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e6f0ba0 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e6d5bc1 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6d5f57 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e6d6c98 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bf5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e6d6bd5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e6d6bb5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e6d6b80 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013953756 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013952c35 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a5ff63 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a6a7c4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a6a795 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a6a779 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a6a6dd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a6a5e5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a6a555 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a6a535 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a6a515 in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:20:23.072881 [ 72440 ] {9435075b-42f8-42cc-a21c-9708560d1d3d} DynamicQueryHandler: Cannot send exception to client: Code: 24. DB::Exception: Cannot write to ostream at offset 1377. (CANNOT_WRITE_TO_OSTREAM), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9214f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b6580f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e671dff in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:950: DB::HTTPHandler::trySendExceptionToClient(String const&, int, DB::HTTPServerRequest&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&) @ 0x000000001e5c680e in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1088: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8d95 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:20:23.074859 [ 72440 ] {} ServerErrorHandler: Poco::Exception. Code: 1000, e.code() = 32, I/O error: Broken pipe, Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/base/poco/Foundation/src/Exception.cpp:145: Poco::RuntimeException::RuntimeException(String const&, int) @ 0x000000002495e5e7 in /usr/bin/clickhouse 4. /build/base/poco/Foundation/src/Exception.cpp:164: Poco::IOException::IOException(String const&, int) @ 0x0000000024962727 in /usr/bin/clickhouse 5. /build/base/poco/Net/src/SocketImpl.cpp:1008: Poco::Net::SocketImpl::error(int, String const&) @ 0x000000002477928d in /usr/bin/clickhouse 6. /build/base/poco/Net/src/SocketImpl.cpp:927: Poco::Net::SocketImpl::error(int) @ 0x0000000024779924 in /usr/bin/clickhouse 7. /build/base/poco/Net/src/SocketImpl.cpp:0: Poco::Net::SocketImpl::sendBytes(void const*, int, int) @ 0x000000002477a512 in /usr/bin/clickhouse 8. /build/base/poco/Net/src/StreamSocketImpl.cpp:63: Poco::Net::StreamSocketImpl::sendBytes(void const*, int, int) @ 0x00000000247821be in /usr/bin/clickhouse 9. /build/base/poco/Net/src/StreamSocket.cpp:114: Poco::Net::StreamSocket::sendBytes(void const*, int, int) @ 0x000000002477e012 in /usr/bin/clickhouse 10. /build/base/poco/Net/src/HTTPSession.cpp:144: Poco::Net::HTTPSession::write(char const*, long) @ 0x0000000024758a8e in /usr/bin/clickhouse 11. /build/base/poco/Net/src/HTTPChunkedStream.cpp:146: Poco::Net::HTTPChunkedStreamBuf::writeToDevice(char const*, long) @ 0x0000000024742e34 in /usr/bin/clickhouse 12. /build/base/poco/Foundation/include/Poco/BufferedStreamBuf.h:130: Poco::BasicBufferedStreamBuf, Poco::BufferAllocator>::flushBuffer() @ 0x00000000245fab0d in /usr/bin/clickhouse 13. /build/base/poco/Foundation/include/Poco/BufferedStreamBuf.h:111: Poco::BasicBufferedStreamBuf, Poco::BufferAllocator>::sync() @ 0x00000000245fa719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/HTTPChunkedStream.cpp:54: Poco::Net::HTTPChunkedStreamBuf::close() @ 0x00000000247425f3 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/HTTPChunkedStream.cpp:166: Poco::Net::HTTPChunkedIOS::~HTTPChunkedIOS() @ 0x0000000024742fda in /usr/bin/clickhouse 16. /build/base/poco/Net/src/HTTPChunkedStream.cpp:208: Poco::Net::HTTPChunkedOutputStream::~HTTPChunkedOutputStream() @ 0x00000000247436c1 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/HTTPChunkedStream.cpp:207: Poco::Net::HTTPChunkedOutputStream::~HTTPChunkedOutputStream() @ 0x0000000024743700 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:64: void std::__destroy_at[abi:v15000](Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e66ec6d in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:89: void std::destroy_at[abi:v15000](Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e66ec15 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:321: void std::allocator_traits>::destroy[abi:v15000](std::allocator&, Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e66ebf9 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:309: std::__shared_ptr_emplace>::__on_zero_shared() @ 0x000000001e66ea6e in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:175: std::__shared_count::__release_shared[abi:v15000]() @ 0x000000000b196dd4 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:215: std::__shared_weak_count::__release_shared[abi:v15000]() @ 0x000000000b196d79 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:703: std::shared_ptr>>::~shared_ptr[abi:v15000]() @ 0x000000001e5d17cc in /usr/bin/clickhouse 25. /build/src/Server/HTTP/HTTPServerResponse.h:16: DB::HTTPServerResponse::~HTTPServerResponse() @ 0x000000001e668f5b in /usr/bin/clickhouse 26. /build/src/Server/HTTP/HTTPServerConnection.cpp:88: DB::HTTPServerConnection::run() @ 0x000000001e668a98 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:20:54.345941 [ 669 ] {} Application: Closed all listening sockets. Waiting for 18 outstanding connections. 2024.10.22 11:20:54.887970 [ 77367 ] {2b17545d-2d69-47a9-8c88-465dfb51860d} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.16.42.altinitystable (altinity build)) (from [::1]:34296) (in query: SELECT message_format_string, count(), any(message) AS any_message FROM system.text_log WHERE (now() - toIntervalMinute(240)) < event_time AND (message NOT LIKE (replaceRegexpAll(message_format_string, '{[:.0-9dfx]*}', '%') AS s)) AND (message NOT LIKE concat('%Exception: ', s, '%')) GROUP BY message_format_string ORDER BY count() DESC LIMIT 20 FORMAT TSVWithNamesAndTypes ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001ccae2fb in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e6d4ca0 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e6d537c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d4c16 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:110: DB::CompletedPipelineExecutor::execute() @ 0x000000001e6d23e8 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1420: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b7f80 in /usr/bin/clickhouse 12. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 13. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 14. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? 2024.10.22 11:20:54.902812 [ 77367 ] {2b17545d-2d69-47a9-8c88-465dfb51860d} DynamicQueryHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8fcbfe in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001ccae2fb in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e6d4ca0 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e6d537c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6d4c16 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:110: DB::CompletedPipelineExecutor::execute() @ 0x000000001e6d23e8 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1420: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0b7f80 in /usr/bin/clickhouse 12. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e5c54d1 in /usr/bin/clickhouse 13. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8007 in /usr/bin/clickhouse 14. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 20. ? @ 0x00007f1a0debbac3 in ? 21. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:20:54.903888 [ 77367 ] {2b17545d-2d69-47a9-8c88-465dfb51860d} DynamicQueryHandler: Cannot send exception to client: Code: 24. DB::Exception: Cannot write to ostream at offset 122. (CANNOT_WRITE_TO_OSTREAM), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b1a6742 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b1a670d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002495b180 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138e1a6e in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b19878a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9214f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b6580f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e671dff in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b207e8d in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:950: DB::HTTPHandler::trySendExceptionToClient(String const&, int, DB::HTTPServerRequest&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&) @ 0x000000001e5c680e in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1088: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e5c8d95 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e6688fc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x00000000247837b9 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000024783ffc in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249d8674 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249d541a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249d411e in /usr/bin/clickhouse 18. ? @ 0x00007f1a0debbac3 in ? 19. ? @ 0x00007f1a0df4ca04 in ? (version 23.8.16.42.altinitystable (altinity build)) 2024.10.22 11:20:59.252328 [ 669 ] {} Application: Closed connections. But 10 remain. Tip: To increase wait time add to config: 60 2024.10.22 11:20:59.252481 [ 669 ] {} Application: Will shutdown forcefully.